1.★ Midterm past paperLecture 15
For BCD numbers that add up to an invalid BCD number or generate a carry, the number 6 (0110) is added to the invalid number. Why?
Show answerJawab dekhein
A 4-bit binary sum counts in base 16, but a BCD digit must carry at 10. Codes 1010-1111 are invalid, and a carry out of a digit means the sum exceeded 15. Adding 6 skips the six unused codes so the digit wraps correctly and produces the decimal carry. Example: 15 + 9: 0001 0101 + 0000 1001 = 0001 1110 (invalid); adding 0110 to the low digit gives 0010 0100 = 24.
2.★ Midterm past paperLecture 153 marks
What does an 8-bit adder/subtracter circuit do?
Show answerJawab dekhein
It adds or subtracts two 8-bit numbers. Two cascaded 4-bit parallel adders (74LS283) form the 8-bit adder, with the carry-out of the lower adder fed to the carry-in of the upper adder. An Add/Subtract control selects whether B or its 1's complement is applied to the B inputs and is also fed to the first carry-in, so subtraction is done by 2's complement addition (A + B' + 1).
3.★ Midterm Spring 2010Lecture 153 marks
Explain the function of BCD adder using a block diagram
Show answerJawab dekhein
A BCD adder adds two BCD digits and gives a BCD result. Block diagram: a first 4-bit binary adder adds the digits (and carry-in); correction logic detects an invalid result, C = K + Z3Z2 + Z3Z1 (carry out, or sum greater than 9); when C = 1 a second 4-bit adder adds 0110 (6) to the sum, and C is the decimal carry to the next digit. If the sum is 9 or less, 0000 is added and the sum passes unchanged.
4.★ Midterm past paperLecture 153 marks
Draw the block diagram of 4-bit BCD Adder.
Show answerJawab dekhein
Blocks: (1) a 4-bit binary adder adds BCD digits A3-A0 and B3-B0 with carry-in, giving S3-S0 and carry C4. (2) Correction logic produces Cout = C4 + S3S2 + S3S1 (sum > 9). (3) A second 4-bit binary adder adds 0110 (Cout on the 2^2 and 2^1 inputs, 0 on the others) to S3-S0 when Cout = 1, giving the corrected BCD sum digit; Cout is the decimal carry to the next BCD stage.