1 / 9

第 4 章 組合邏輯電路 (Combinational Logic Circuits)

第 4 章 組合邏輯電路 (Combinational Logic Circuits). 4-4. 十進位加法器 (decimal adder). 十進位加法器 (decimal adder). 執行兩個十進位數值的代數相加。 使用 BCD 加法器 (BCD : Binary-Code-Decimal) 來執行此十進位的相加運算 , 亦即使用 4 位元的二進位加法器裡面執行兩個 BCD 數值的加法運算。 在 BCD 加法器裡面,由於每一個輸入值不會超過 9 ,所以輸出端的和不會超過 9+9+1=19 ,這裡 1 代表從前一級來的輸入進位。

brice
Download Presentation

第 4 章 組合邏輯電路 (Combinational Logic Circuits)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 第4章組合邏輯電路(Combinational Logic Circuits) 4-4.十進位加法器(decimal adder)

  2. 十進位加法器 (decimal adder) • 執行兩個十進位數值的代數相加。 • 使用BCD加法器(BCD:Binary-Code-Decimal)來執行此十進位的相加運算,亦即使用4位元的二進位加法器裡面執行兩個BCD數值的加法運算。 • 在BCD加法器裡面,由於每一個輸入值不會超過9,所以輸出端的和不會超過9+9+1=19,這裡1代表從前一級來的輸入進位。 • 使用四位元二進位加法器來實現十進位加法器,因十進位的相加運算逢10要進位,故二進位加法器需要做修正才能執行BCD的加法運算。

  3. 十進位加法器 (decimal adder)

  4. 十進位加法器 (decimal adder) 相加的結果小於或等於9時,BCD和的結果與二進位和的結果是相同的,因此二進位加法器的輸出結果不需要轉換。

  5. 十進位加法器 (decimal adder) 相加的結果大於9以上時,我們發現兩者的輸出不相同,因此必須將二進位加法器的輸出結果做轉換以便得到BCD和的結果。 轉換方法:把二進位加法器的輸出結果再加上0110即可獲得正確的BCD和的結果並且產生一個正確的進位輸出。

  6. 十進位加法器 (decimal adder) 例:將14的二進位值轉換成BCD碼 01110 + 0110 10100

  7. 十進位加法器 (decimal adder) 修正的檢測: 1.二進位和的進位輸出K為1。 2.1010到1111這六種輸出組合也要被修正,進一步的觀察這六種輸出組合,其 都為1,且與不用修正的1000和1001比較,這六種輸出組合至少有一個 或 為1。 2 檢測是否執行修正動作的布林函數: 1

  8. 十進位加法器 (decimal adder) C C=1時,為0110;C=0時,為0000。

  9. Thank for Your Attention

More Related