組合邏輯的函數 Functions of Combination Logic

Slides:



Advertisements
Similar presentations
FCU, Department of ECE, IC Design Research Lab. TEL: # 4945 Pre-SIm , Post-Sim.
Advertisements

6-1 指標簡介 6-2 指標與陣列 6-3 動態配置記憶體 6-4 本章綜合練習
布林代數的應用--- 全及項(最小項)和全或項(最大項)展開式
: A-Sequence 星級 : ★★☆☆☆ 題組: Online-judge.uva.es PROBLEM SET Volume CIX 題號: Problem D : A-Sequence 解題者:薛祖淵 解題日期: 2006 年 2 月 21 日 題意:一開始先輸入一個.
Section 1.2 Describing Distributions with Numbers 用數字描述分配.
指導教授:陳淑媛 學生:李宗叡 李卿輔.  利用下列三種方法 (Edge Detection 、 Local Binary Pattern 、 Structured Local Edge Pattern) 來判斷是否為場景變換,以方便使用者來 找出所要的片段。
1.1 線性方程式系統簡介 1.2 高斯消去法與高斯-喬登消去法 1.3 線性方程式系統的應用(-Skip-)
邏輯設計 題目:3_8解碼器 姓名:李國豪 學號:B09322001.
:New Land ★★★★☆ 題組: Problem Set Archive with Online Judge 題號: 11871: New Land 解題者:施博修 解題日期: 2011 年 6 月 8 日 題意:國王有一個懶兒子,為了勞動兒子,他想了一個 辦法,令他在某天早上開始走路,直到太陽下山前,靠.
: OPENING DOORS ? 題組: Problem Set Archive with Online Judge 題號: 10606: OPENING DOORS 解題者:侯沛彣 解題日期: 2006 年 6 月 11 日 題意: - 某間學校有 N 個學生,每個學生都有自己的衣物櫃.
: ShellSort ★★☆☆☆ 題組: Problem D 題號: 10152: ShellSort 解題者:林一帆 解題日期: 2006 年 4 月 10 日 題意:烏龜王國的烏龜總是一隻一隻疊在一起。唯一改變烏龜位置 的方法為:一隻烏龜爬出他原來的位置,然後往上爬到最上方。給 你一堆烏龜原來排列的順序,以及我們想要的烏龜的排列順序,你.
Chapter 2 聯立線性方程式與矩陣 緒言 線性方程式組 (systems of linear equations) 出現 在多數線性模式 (linear model) 中。根據以往解 題的經驗,讀者們也許已發現方程式的解僅與 該方程式的係數有關,求解的過程也僅與係數 的運算有關,只要係數間的相關位置不改變,
: Matrix Decompressing ★★★★☆ 題組: Contest Volumes with Online Judge 題號: 11082: Matrix Decompressing 解題者:蔡權昱、劉洙愷 解題日期: 2008 年 4 月 18 日 題意:假設有一矩陣 R*C,
1. 假設以下的敘述為一未提供 “ 捷徑計算 ” 能力的程式段,試用程 式設計的技巧,使此敘述經此改 寫的動作後,具有與 “ 捷徑計算 ” 之 處理方法相同之處理模式。 if and then E1 else E2 endif.
MATLAB 程式設計 第 11 章 多維陣列 多維陣列的定義 在 MATLAB 的資料型態中,向量可視為 一維陣列,矩陣可視二維陣列,對於維 度 (Dimensions) 超過 1 的陣列則均可視 為「多維陣列」 (Multidimesional Arrays , 簡稱 N-D Arrays)
McGraw-Hill/Irwin © 2003 The McGraw-Hill Companies, Inc.,All Rights Reserved. 肆 資料分析與表達.
: The Playboy Chimp ★★☆☆☆ 題組: Problem Set Archive with Online Judge 題號: 10611: The Playboy Chimp 解題者:蔡昇宇 解題日期: 2010 年 2 月 28 日 題意:給一已排序的數列 S( 升冪.
Department of Air-conditioning and Refrigeration Engineering/ National Taipei University of Technology 模糊控制設計使用 MATLAB 李達生.
VHDL 邏輯設計 題目:一對十六解多工器 題目:一對十六解多工器 姓名:李國豪 姓名:李國豪 學號:B09322001 學號:B09322001.
JAVA 程式設計與資料結構 第十章 GUI Introdution III. File Chooser  File Chooser 是一個選擇檔案的圖形介面, 無論我們是要存檔還是要開啟檔案,使 用這個物件都會讓我們覺得容易且舒適。
南投縣社區大學 Excel 實務應用入門 講師 : 林泉成
第 1 章 PC 的基本構造. 本章提要 PC 系統簡介 80x86 系列 CPU 及其暫存器群 記憶體: Memory 80x86 的分節式記憶體管理 80x86 的 I/O 結構 學習組合語言的基本工具.
Introduction to Java Programming Lecture 17 Abstract Classes & Interfaces.
第 5 章 深入 Response 物件 製作. 網頁的轉向與強制輸出 - 讓網頁轉彎的 Redirect 敘述 運用 Response 物件的 Redirect 方法,將瀏覽器顯 示的網頁,導向至其他網頁,語法如下: Response.Redirect 網頁路徑與名稱 此網頁路徑與名稱  若是導向到同一台.
:Problem D: Bit-wise Sequence ★★★☆☆ 題組: Problem Set Archive with Online Judge 題號: 10232: Problem D: Bit-wise Sequence 解題者:李濟宇 解題日期: 2006 年 4 月 16.
: The largest Clique ★★★★☆ 題組: Contest Archive with Online Judge 題號: 11324: The largest Clique 解題者:李重儀 解題日期: 2008 年 11 月 24 日 題意: 簡單來說,給你一個 directed.
: Fast and Easy Data Compressor ★★☆☆☆ 題組: Problem Set Archive with Online Judge 題號: 10043: Fast and Easy Data Compressor 解題者:葉貫中 解題日期: 2007 年 3.
3.1 矩陣的行列式 3.2 使用基本運算求行列式 3.3 行列式的性質 3.4 特徵值介紹 3.5 行列式的應用
行政院國家科學委員會工程技術發展處自動化學門 * 試以國立成功大學製造工程研究所 鄭芳田教授 產學合作計畫 : 智慧預測保養系統之設計與實作 成果報告盤點為範例 國科會工程處專題計畫成果典藏 自動化學門成果報告盤點範例.
資料庫程式設計與系統管理 SQL Server 2005 Express 第六章 進階資料庫設計.
: Ahoy, Pirates! ★★★★☆ 題組: Contest Archive with Online Judge 題號: 11402: Ahoy, Pirates! 解題者:李重儀 解題日期: 2008 年 8 月 26 日 題意:有一個海盜島有 N 個海盜,他們的編號 (id)
: Multisets and Sequences ★★★★☆ 題組: Problem Set Archive with Online Judge 題號: 11023: Multisets and Sequences 解題者:葉貫中 解題日期: 2007 年 4 月 24 日 題意:在這個題目中,我們要定義.
從此處輸入帳號密碼登入到管理頁面. 點選進到檔案管理 點選「上傳檔案」上傳資料 點選瀏覽選擇電腦裡的檔案 可選擇公開或不公開 為平台上的資料夾 此處為檔案分類,可顯示在展示頁面上,若要參加 MY EG 競賽,做品一律上傳到 “ 98 MY EG Contest ” 點選此處確定上傳檔案.
資料結構實習-一 參數傳遞.
第10章 移位暫存器 10-1 移位暫存器的基本功能 10-2 串列輸入/輸出移位暫存器 10-3 其他移位暫存器的線路型態
Management Abstracts Retrieval System; MARS 檢索操作.
: Beautiful Numbers ★★★★☆ 題組: Problem Set Archive with Online Judge 題號: 11472: Beautiful Numbers 解題者:邱經達 解題日期: 2011 年 5 月 5 日 題意: 若一個 N 進位的數用到該.
JAVA 程式設計與資料結構 第二十章 Searching. Sequential Searching Sequential Searching 是最簡單的一種搜尋法,此演 算法可應用在 Array 或是 Linked List 此等資料結構。 Sequential Searching 的 worst-case.
資料結構實習-二.
演算法 8-1 最大數及最小數找法 8-2 排序 8-3 二元搜尋法.
Chapter 3 Entropy : An Additional Balance Equation
Visual Basic 簡介 Visual Basic 基礎語法 東海大學物理系‧施奇廷 《程式設計》
845: Gas Station Numbers ★★★ 題組: Problem Set Archive with Online Judge 題號: 845: Gas Station Numbers. 解題者:張維珊 解題日期: 2006 年 2 月 題意: 將輸入的數字,經過重新排列組合或旋轉數字,得到比原先的數字大,
: Function Overloading ★★★☆☆ 題組: Problem Set Archive with Online Judge 題號: 11032:Function Overloading 解題者:許智祺 解題日期: 2007 年 5 月 8 日 題意:判對輸入之數字是否為.
Chapter 9 Counters 計數器 Asynchronous Counter Operation 非同步式計數器的運作
計算機概論 第6章 數位邏輯設計.
2005/7 Linear system-1 The Linear Equation System and Eliminations.
5 重複迴圈 5.1 增減運算符號 增量運算符號 減量運算符號
國立清華大學資訊工程學系 資訊工程系 2009/11/03P-1 Quiz & Solution 09810CS_ Computer Systems & Application Fall.
電腦的基本單位 類比訊號 (analog signal) 指的是連續的訊號 數位訊號 (digital signal) 指的是以預先定義的符號表示不連續 的訊號 one bit 8 bits=one byte 電腦裡的所有資料,包括文 字、數據、影像、音訊、視 訊,都是用二進位來表示的。
電腦的基本單位 類比訊號 (analog signal) 指的是連續的訊號
: Problem E Antimatter Ray Clearcutting ★★★★☆ 題組: Problem Set Archive with Online Judge 題號: 11008: Problem E Antimatter Ray Clearcutting 解題者:林王智瑞.
Teacher : Ing-Jer Huang TA : Chien-Hung Chen 2015/6/30 Course Embedded Systems : Principles and Implementations Weekly Preview Question CH7.1~CH /12/26.
Visual C++重點複習.
1 Introduction to Java Programming Lecture 3 Mathematical Operators Spring 2008.
:Count the Trees ★★★☆☆ 題組: Problem Set Archive with Online Judge 題號: 10007:Count the Trees 解題者:楊家豪 解題日期: 2006 年 3 月 題意: 給 n 個點, 每一個點有自己的 Label,
數字系統與資料表示法 教師: 陳炯勳 數系轉換 r進制數字 稱為 base r或 radix r 有r個計數符號,計數順序逢r歸零(進位) A n A n - 1 ‥‥A 2 A 1 A 0 ﹒A -1 A -2 ‥‥A -m 其中A n 及A.
第五章IIR數位濾波器設計 濾波器的功能乃對於數位信號進行處理﹐ 以滿足系統的需求規格。其作法為設計一 個系統的轉移函數﹐或者差分方程式﹐使 其頻率響應落在規格的範圍內。本章探討 的是其中一種方法﹐稱為Infinite impulse register(IIR)。 IIR架構說明。 各種不同頻帶(Band)濾波器的設計方法。
: Finding Paths in Grid ★★★★☆ 題組: Contest Archive with Online Judge 題號: 11486: Finding Paths in Grid 解題者:李重儀 解題日期: 2008 年 10 月 14 日 題意:給一個 7 個 column.
:Problem E.Stone Game ★★★☆☆ 題組: Problem Set Archive with Online Judge 題號: 10165: Problem E.Stone Game 解題者:李濟宇 解題日期: 2006 年 3 月 26 日 題意: Jack 與 Jim.
1 Introduction to Java Programming Lecture 3 Mathematical Operators Spring 2009.
第 1 章 PC 的基本構造. 本章提要 PC 系統簡介 80x86 系列 CPU 及其暫存器群 記憶體: Memory 80x86 的分節式記憶體管理 80x86 的 I/O 結構 學習組合語言的基本工具.
VHDL語法(3).
: How many 0's? ★★★☆☆ 題組: Problem Set Archive with Online Judge 題號: 11038: How many 0’s? 解題者:楊鵬宇 解題日期: 2007 年 5 月 15 日 題意:寫下題目給的 m 與 n(m
McGraw-Hill/Irwin © 2003 The McGraw-Hill Companies, Inc.,All Rights Reserved. 肆 資料分析與表達.
1 Chapter 6 Functions of Combinational Logic. 2 Figure 6--1 Logic symbol for a half-adder Adder.
Figure 6–1 Logic symbol for a half-adder. Open file F06-01 to verify operation. Thomas L. Floyd Digital Fundamentals, 9e Copyright ©2006 by Pearson Education,
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Pp 92 Parity Method Pp 94 The parity method.
6-1 基本加法器 6-2 平行二進位加法器 6-3 比較器 6-4 解碼器 6-5 編碼器 6-6 數碼轉換器 6-7 多工器 ( 資料選擇器 ) 6-8 解多工器 6-9 同位元產生器 / 檢 查器.
Summary Half-Adder pp302Basic rules of binary addition are performed by a half adder, which has two binary inputs (A and B) and two binary outputs (Carry.
Presentation transcript:

組合邏輯的函數 Functions of Combination Logic Chapter 6 組合邏輯的函數 Functions of Combination Logic 基本的加法器 並聯二進位加法器 比較器 解碼器 編碼器 轉碼器 多工器(資料選擇器) 解多工器 同位元產生/檢查器 檢修 可程式邏輯 12. 以VHDL編寫邏輯函 數的程式

Figure 6--1 Logic symbol for a half-adder(半加器). 1. 基本的加法器 半加法器 Figure 6--1 Logic symbol for a half-adder(半加器). A B Carry Sum 1 Thomas L. Floyd Digital Fundamentals, 8e

Figure 6--2 Half-adder logic diagram. 1. 基本的加法器 Figure 6--2 Half-adder logic diagram. A B Carry Sum 1 Thomas L. Floyd Digital Fundamentals, 8e

Figure 6--3 Logic symbol for a full-adder (全加器). 1. 基本的加法器 全加法器 Figure 6--3 Logic symbol for a full-adder (全加器). Cin A B Carry Sum 1 Thomas L. Floyd Digital Fundamentals, 8e

Figure 6--4 Full-adder logic. Open file F06-04 to verify operation. 1. 基本的加法器 Figure 6--4 Full-adder logic. Open file F06-04 to verify operation. Cin A B Carry Sum 1 Thomas L. Floyd Digital Fundamentals, 8e

Figure 6--5 Full-adder implemented with half-adders. 以2個半加器來實做全加器 Figure 6--5 Full-adder implemented with half-adders. Thomas L. Floyd Digital Fundamentals, 8e

1. 基本的加法器 例題 6-1 求 圖 6-6 所示的三個全加器的輸出 圖 6-6 例題 6-1 求 圖 6-6 所示的三個全加器的輸出 圖 6-6 Thomas L. Floyd Digital Fundamentals, 8e

2. 二進位平行加法器 Figure 6--7 Block diagram of a basic 2-bit parallel adder using two full-adders. Thomas L. Floyd Digital Fundamentals, 8e

2. 二進位平行加法器 例題 6-2 如圖6-8所示,當輸入的二進位數為101與011時,試求此3位元平行加法器的總合與進位輸出。 Figure 6-8 根據公式計算一下答案! Thomas L. Floyd Digital Fundamentals, 8e

Figure 6--9 A 4-bit parallel adder. 2. 二進位平行加法器 四位元平行加法器 Figure 6--9 A 4-bit parallel adder. Thomas L. Floyd Digital Fundamentals, 8e

進位傳遞(carry propagation) 進位產生 進位傳遞

進位遞迴產生器 C0=輸入進位 C1=G0+P0C0 C2=G1+P1C1=G1+P1G0+P1P0C0 C3=G2+P2C2=G2+P2G2+P1P2G0+P2P1P0C0

Figure A--2 Four-bit parallel adders. 2. 二進位平行加法器 Figure A--2 Four-bit parallel adders. Thomas L. Floyd Digital Fundamentals, 8e

Figure A--3 Characteristics for the 74LS283. pp. A-3 2. 二進位平行加法器 Figure A--3 Characteristics for the 74LS283. pp. A-3 Thomas L. Floyd Digital Fundamentals, 8e

2. 二進位平行加法器

四位元預見進位產生器

Figure 6--10 Examples of adder expansion. 2. 二進位平行加法器 Figure 6--10 Examples of adder expansion. Thomas L. Floyd Digital Fundamentals, 8e

2. 二進位平行加法器 例題6-4 將兩個四位元平行加法器,連接成八位元平行加法器,求輸入下列數值後,所產生之輸出位元 Thomas L. Floyd Digital Fundamentals, 8e Figure 6--11 Two 74LS83A adders connected as an 8-bit parallel adder (pin numbers are in parentheses).

2. 二進位平行加法器 應用範例: 簡單投票系統 Thomas L. Floyd Digital Fundamentals, 8e Figure 6--12 A voting system using full-adders and parallel binary adders.

Figure 6--13 Basic comparator operation. 3. 比較器 相等輸出 Figure 6--13 Basic comparator operation. Thomas L. Floyd Digital Fundamentals, 8e

3. 比較器 A B F 1 Figure 6--14 Logic diagram for equality comparison of two 2-bit numbers. Open file F06-16 to verify operation. Thomas L. Floyd Digital Fundamentals, 8e

3. 比較器 例題6-5 求下列電路的輸出 Figure 6--15 Thomas L. Floyd Digital Fundamentals, 8e

3. 比較器 不相等輸出 1-bit comparator Thomas L. Floyd Digital Fundamentals, 8e

3. 比較器 1 2-bit comparator Thomas L. Floyd Digital Fundamentals, 8e

3. 比較器 Figure 6--16 Logic symbol for a 4-bit comparator with inequality indication. Thomas L. Floyd Digital Fundamentals, 8e

3. 比較器 例題 6-6 求 Figure 6—17 的輸出 Thomas L. Floyd Digital Fundamentals, 8e

3. 比較器 Figure A--4 Pin diagram and logic symbol for the 74HC85 4-bit magnitude comparator (pin numbers are in parentheses). pp. A-4 Thomas L. Floyd Digital Fundamentals, 8e

3. 比較器

Figure 6--19 An 8-bit magnitude comparator using two 74HC85s. 3. 比較器 Figure 6--19 An 8-bit magnitude comparator using two 74HC85s. Thomas L. Floyd Digital Fundamentals, 8e

4. 解碼器 基本的二進制解碼器 Figure 6--20 Decoding logic for the binary code 1001 with an active-HIGH output. Thomas L. Floyd Digital Fundamentals, 8e

4. 解碼器 例題6-8 試設計一個解碼器, 使得當輸入二進碼1011時, 輸出High Figure 6--21 Decoding logic for producing a HIGH output when 1011 is on the inputs. Thomas L. Floyd Digital Fundamentals, 8e

4. 解碼器 四位元解碼器 Figure 6--22 Logic symbol for a 4-line-to-16-line (1-of-16) decoder. Open file F06-24 to verify operation. Thomas L. Floyd Digital Fundamentals, 8e

4. 解碼器 Figure A—5a,b Pin diagram and logic symbol for the 74HC154 1-of-16 decoder. pp. A-5 Thomas L. Floyd Digital Fundamentals, 8e

解多工器 CS1=0 輸出為沒作用 CS1=1 輸出由選擇線選到的為Low Data selector Data input Figure A—5c Pin diagram and logic symbol for the 74HC154 de-multiplexer. pp. A-5 Thomas L. Floyd Digital Fundamentals, 8e

Figure 6--23 A 5-bit decoder using 74HC154s. 4. 解碼器 例題 6-9 某個應用電路需用五位元數值進行解碼,試使用兩個4對16線解碼器實作。 Figure 6--23 A 5-bit decoder using 74HC154s. Thomas L. Floyd Digital Fundamentals, 8e

4. 解碼器 應用範例: 電腦輸入輸出裝置的選擇 Figure 6--24 A simplified computer I/O port system with a port address decoder with only four address lines shown. Thomas L. Floyd Digital Fundamentals, 8e

Figure 6--25 The 74HC42 BCD-to-decimal decoder. 4. 解碼器 例題 6-10 BCD轉十進位解碼器的邏輯圖如圖6-25,如果將圖6-26(a)的輸入波形施加到輸入端,求其輸出波形? Figure 6--25 The 74HC42 BCD-to-decimal decoder. Thomas L. Floyd Digital Fundamentals, 8e

4. 解碼器 Figure 6--26 Thomas L. Floyd Digital Fundamentals, 8e

4. 解碼器 BCD轉7段顯示解碼器 Figure 6--27 Logic symbol for a BCD-to-7-segment decoder/driver with active-LOW outputs. Open file F06-30 to verify operation. Thomas L. Floyd Digital Fundamentals, 8e

4. 解碼器 BI=Blank Input RBI=Ripple BI RBO=Ripple Blank Output Light Test Figure A--6 Pin diagram and logic symbol for the 74LS47 BCD-to-7-segment decoder/driver. pp. A-5 Thomas L. Floyd Digital Fundamentals, 8e

4. 解碼器 Ripple Blanking (消零) 的用法 Figure A—7a Examples of zero suppression using the 74LS47 BCD to 7-segment decoder/driver. pp. A-6 Thomas L. Floyd Digital Fundamentals, 8e

4. 解碼器 Ripple Blanking (消零) 的用法 Figure A—7b Examples of zero suppression using the 74LS47 BCD to 7-segment decoder/driver. pp. A-6 Thomas L. Floyd Digital Fundamentals, 8e

Figure 6--28 Logic symbol for a decimal-to-BCD encoder. 5. 編碼器 十進位轉BCD編碼器 Figure 6--28 Logic symbol for a decimal-to-BCD encoder. Thomas L. Floyd Digital Fundamentals, 8e

Figure 6--29 Basic logic diagram of a decimal-to-BCD encoder. 沒有優先權編碼的缺點:兩輸入同時active會出錯 Figure 6--29 Basic logic diagram of a decimal-to-BCD encoder. A 0-digit input is not needed because the BCD outputs are all LOW when there are no HIGH inputs. Thomas L. Floyd Digital Fundamentals, 8e

編碼器 編碼器:解碼器的反函數 8到3優先權編碼器:

8到3優先權編碼器 c=y7y6y5y4y3y2y1+y7y6y5y4y3+y7y6y5+y7 b=y7y6y5y4y3y2+y7y6y5y4y3+y7y6+y7 =y7+y6+y5y4y3+y5y4y2 a=y7y6y5y4+y7y6y5+y7y6+y7 =y7+y6+y5+y4

8到3優先權編碼器 y7 y6 y5 y4 y3 y2 y1 y0 a b c

10進位轉BCD編碼器 Figure A--8 Pin diagram and logic symbol for the 74HC147 decimal-to-BCD priority encoder (HPRI means highest value input has priority). pp. A-7 Thomas L. Floyd Digital Fundamentals, 8e

5. 編碼器 8對3線 編碼器 No Input Low  EO=low EI=Low  At least one Input Low  GS=low Figure A--9 Logic symbol for the 74F148 8-line-to-3-line encoder. pp. A-8 Thomas L. Floyd Digital Fundamentals, 8e

5. 編碼器 8~15 pin No Input Low  EO=low EI=Low  At least one Input Low  GS=low Figure A--10 A 16-line-to-4 line encoder using 74F148s and external logic. pp. A-8 Thomas L. Floyd Digital Fundamentals, 8e

Figure 6--30 A simplified keyboard encoder. 提升電阻(pull-up resistor): 確保無按鍵時,輸出仍為High 應用範例: 鍵盤編碼器 Figure 6--30 A simplified keyboard encoder. Thomas L. Floyd Digital Fundamentals, 8e

Binary轉Gray 轉碼器 Gray 轉Binary 轉碼器 Figure 6--31 Four-bit binary-to-Gray conversion logic. Open file F06-39 to verify operation. Figure 6--32 Four-bit Gray-to-binary conversion logic. Open file F06-40 to verify operation. Thomas L. Floyd Digital Fundamentals, 8e

Figure 6--33 Thomas L. Floyd Digital Fundamentals, 8e

7. 多工器(資料選擇器) 解多工器 Data selector CS1=Low 則有輸出0 , 否則為 1 Data input Figure 6--36 Logic symbol for a 1-of-4 data selector/multiplexer. pp. A-8 Figure A—5c Pin diagram and logic symbol for the 74HC154 de-multiplexer. pp. A-5 Thomas L. Floyd Digital Fundamentals, 8e Thomas L. Floyd Digital Fundamentals, 8e

7. 多工器(資料選擇器) Figure 6--35 Logic diagram for a 4-input multiplexer. Open file F06-43 to verify operation. Thomas L. Floyd Digital Fundamentals, 8e

7. 多工器(資料選擇器) Figure 6--36 Thomas L. Floyd Digital Fundamentals, 8e

7. 多工器(資料選擇器) Figure A--11 Pin diagram and logic symbol for the 74HC157 A quadruple 2-input data selector/multiplexer. pp. A-9 i.e. 4-bit multiplexer (同時選1A~4A(G1=0時, Y=A) 或 1B~4B(G1=1 時,Y=B) ) Thomas L. Floyd Digital Fundamentals, 8e

7. 多工器(資料選擇器) Figure A--12 Pin diagram and logic symbol for the 74LS151 8-input data selector/multiplexer. pp. A-10 Thomas L. Floyd Digital Fundamentals, 8e

Figure 6--37 A 16-input multiplexer. 7. 多工器(資料選擇器) Figure 6--37 A 16-input multiplexer. Thomas L. Floyd Digital Fundamentals, 8e

Figure 6--38 Simplified 7-segment display multiplexing logic. Thomas L. Floyd Digital Fundamentals, 8e Figure 6--38 Simplified 7-segment display multiplexing logic.

Yin A2 A1 A0 Yout 1 2 3 4 5 6 7 Figure 6--39 Data selector/multiplexer connected as a 3-variable logic function generator. Thomas L. Floyd Digital Fundamentals, 8e

Yin A3 A2 A1 A0 Yout 1 2 A0' 3 4 5 6 7 8 9 10 11 12 13 14 15 Figure 6--40 Data selector/multiplexer connected as a 4-variable logic function generator. Thomas L. Floyd Digital Fundamentals, 8e

Figure 6--41 A 1-line-to-4-line demultiplexer. 8.解多工器 Figure 6--41 A 1-line-to-4-line demultiplexer. Figure 6--42 Thomas L. Floyd Digital Fundamentals, 8e

Figure A—5c The 74HC154 decoder used as a de-multiplexer. pp. A-5 8.解多工器 Figure A—5c The 74HC154 decoder used as a de-multiplexer. pp. A-5 Thomas L. Floyd Digital Fundamentals, 8e

基本同位元邏輯 Figure 6--43 Thomas L. Floyd Digital Fundamentals, 8e

Figure 6--44 The 74LS280 9-bit parity generator/checker. 同位元產生/檢查器 Even parity checker Odd parity generator Figure 6--44 The 74LS280 9-bit parity generator/checker. Thomas L. Floyd Digital Fundamentals, 8e

Figure 6--45 Simplified data transmission system with error detection. 用Decoder 當DeMUX用 Figure 6--45 Simplified data transmission system with error detection. Thomas L. Floyd Digital Fundamentals, 8e

9. 同位元產生/檢查器 Figure 6--46 Example of data transmission with and without error for the system in Figure 6-45. Thomas L. Floyd Digital Fundamentals, 8e

Figure 6--47 Decoder waveforms with output glitches. 10. 檢修 Figure 6--47 Decoder waveforms with output glitches. Thomas L. Floyd Digital Fundamentals, 8e

10. 檢修 Figure 6--48 Decoder waveform displays showing how transitional input states produce glitches in the output waveforms. Thomas L. Floyd Digital Fundamentals, 8e

10. 檢修 去除Glitch的方法之一, 就是用Strobe Figure 6--49 Application of a strobe waveform to eliminate glitches on decoder outputs. Thomas L. Floyd Digital Fundamentals, 8e

Figure 6--61 Typical configuration for conventional PLD programming. 11. 可程式邏輯 Figure 6--61 Typical configuration for conventional PLD programming. Thomas L. Floyd Digital Fundamentals, 8e

位元向量(Bit Vectors)與陣列( Arrays) 12. 以VHDL編寫邏輯函數的程式 位元向量(Bit Vectors)與陣列( Arrays) 位元向量(bit_vector)資料型別允許將若干位元編組成一個陣列。 陣列是具有單一識別字,並且由個別元素所組合的有序集合。 陣列中每一個元素都共用一個識別字,並利用數字索引(index)去存取陣列中元素。 例如:假如以bit vector資料型別去宣告識別字A ,則我們可以A(0) 存取A中第一個元素,以A(1)存取A中下一個元素。 Port(A: in bit_vector(0 to 7)); 表示輸入埠有8個輸入: A(0), A(1), A(2), … A(7)

BCD to 7 segment display decoder X(0) X(1) X(2) X(3) X(4) X(5) X(6)

BCD to 7 segment display 解碼器使用資料流描述法 entity BCD_to_seven_segment is port( A: in bit_vector(0 to 3): X: out bit_vector(0 to 6)); end entity BCD_to_seven_segment architecture decoder of BCD_to_seven_segment is begin X(0) <= (not A(1) and not A(3)) or (not A(1) and A(2)) or (A(1) and A(3)) or A(0); X(1)<= (not A(2) and not A(3)) or (A(2) and A(3)) or not A(1);

BCD to 7 segment display 解碼器使用資料流描述法(續) X(2)<= A(1) or A(3) or not A(2) X(3) <= (not A(1) and A(2)) or (A(1) and not A(2) and A(3)) or (A(2) and not A(3)) or (not A(1) and not A(3)); X(4) <= (A(2) and not A(3)) or (not A(1) and not A(3)); X(5) <= (not A(2) and not A(3)) or (A(1) and not A(2)) or (A(1) and not A(3)) or A(0); X(6) <= (A(1) xor A(2)) or A(0); end architecture decoder

-- 全加器使用資料流描述法. entity FULLADDER is port (X: in bit; Y: in bit; Cin: in bit; Cout: out bit; Sum: out bit); end FULLADDER; architecture full_adder_logic of FULLADDER is begin Sum <= X xor Y xor Cin; Cout <= (X and Y) or (X and Cin) or (Y and Cin); end full_adder_logic;

全加器測試

End of Chapter 6