1 / 16

Conversion and Coding

Conversion and Coding. (12) 10. Conversion and Coding. (12) 10. 1100. Conversion. Conversion and Coding. (12) 10. Coding (using BCD code for each digit). 0001 0010. 1100. Conversion. BCD Adder. Design a circuit that calculates the Arithmetic addition of two decimal digits. 9. +.

aqua
Download Presentation

Conversion and Coding

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. Conversion and Coding (12)10

  2. Conversion and Coding (12)10 1100 Conversion

  3. Conversion and Coding (12)10 Coding (using BCD code for each digit) 00010010 1100 Conversion

  4. BCD Adder Design a circuit that calculates the Arithmetic addition of two decimal digits. 9 + 3 1 2 carry

  5. BCD Adder • Maximum sum is 9+9 + 1 = 19 Max digit Carry from previous digits

  6. BCD adder (sum up to 9)

  7. BCD adder (sum up to 9) The sum is the same with BCD adder

  8. BCD adder (sum is 10 to 19)

  9. BCD adder (sum is 10 to 19) Binary sum BCD adder sum

  10. BCD adder (sum is 10 to 19) Binary sum BCD adder sum

  11. BCD adder (sum is 10 to 19) Binary sum BCD adder sum +6

  12. Algorithm for BCD Adder • If sum is up to 9 • Use the regular Adder. • If the sum > 9 • Use the regular adder and add 6 to the result

  13. When is the result > 9 Binary sum C = K +

  14. When is the result > 9 Binary sum C = K + Z8*Z4+

  15. When is the result > 9 Binary sum C = K + Z8*Z4+ Z8*Z2

  16. BCD Adder 4-bit Adder Cin z4 z2 z1 z8 0 0 4-bit Adder s4 s2 s1 s8 K

More Related