Presentation is loading. Please wait.

Presentation is loading. Please wait.

Conversion and Coding (12) 10. Conversion and Coding (12) 10 1100 Conversion.

Similar presentations


Presentation on theme: "Conversion and Coding (12) 10. Conversion and Coding (12) 10 1100 Conversion."— Presentation transcript:

1 Conversion and Coding (12) 10

2 Conversion and Coding (12) Conversion

3 Conversion and Coding (12) Conversion Coding (using BCD code for each digit)

4 BCD Adder Design a circuit that calculates the Arithmetic addition of two decimal digits carry

5 BCD Adder Maximum sum is = 19 Max digit Carry from previous digits

6 BCD adder (sum up to 9) NumberCS8S4S2S

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

8 BCD adder (sum is 10 to 19) NumberCS8S4S2S

9 BCD adder (sum is 10 to 19) Number CS8S4S2S KZ8Z4Z2Z Binary sum BCD adder sum

10 BCD adder (sum is 10 to 19) Number CS8S4S2S KZ8Z4Z2Z Binary sum BCD adder sum

11 BCD adder (sum is 10 to 19) Number CS8S4S2S KZ8Z4Z2Z 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 Number KZ8Z4Z2Z Binary sum C = K +

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

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

16 BCD Adder 4-bit Adder 00 z8 z4z2z1 s8 s4s2s1 Cin K


Download ppt "Conversion and Coding (12) 10. Conversion and Coding (12) 10 1100 Conversion."

Similar presentations


Ads by Google