- 2080 Baisakh · 2+2+4 marks
Gray→BCD, decimal→Excess-3 and 2's complement addition
Short answer
Gray 1110 → binary 1011 (11₁₀) → BCD 0001 0001. (1430)₁₀ = 0100 0111 0110 0011 in Excess‑3 (add 3 to each digit). In 8‑bit 2’s complement, –28 (1110 0100) + 17 (0001 0001) = 1111 0101, which is –11₁₀.
Perform the following: (i) (1110)gray = ( )BCD (ii) (1430)₁₀ = ( )excess-3 (iii) Use 2's complement method to perform the addition (-28 +17).
(i) to BCD
Gray to binary: MSB is copied; each next binary bit = previous binary bit XOR current Gray bit.
| Step | Gray bit | Binary bit |
|---|---|---|
| MSB | 1 | 1 |
| 2 | 1 | 1 ⊕ 1 = 0 |
| 3 | 1 | 0 ⊕ 1 = 1 |
| LSB | 0 | 1 ⊕ 0 = 1 |
. Each decimal digit in BCD: 1 → 0001, 1 → 0001.
Answer:
(ii) to Excess-3
Add 3 to each digit and write in 4 bits:
| Digit | +3 | XS-3 |
|---|---|---|
| 1 | 4 | 0100 |
| 4 | 7 | 0111 |
| 3 | 6 | 0110 |
| 0 | 3 | 0011 |
Answer:
(iii) (−28) + 17 using 2's complement (8 bits)
- 1's complement ; add 1:
1110 0100 (-28)
+ 0001 0001 (+17)
-----------
1111 0101 (no end carry)
The MSB is 1 and there is no end carry, so the result is negative in 2's complement form. Magnitude: 2's complement of = .
Check: .
Answer:
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- (1110)gray→BCD and (1430)₁₀→Excess-3 · Digital Logic, chapter 1
- 39 to Gray/Excess-3 and 2's complement addition · Digital Logic, chapter 1
- Convert (17)excess-3 to BCD · Digital Logic, chapter 1
- 39 to binary/hex and 2's complement addition · Digital Logic, chapter 1
- 2's complement: (1111)2 − (1110)2 · Basic Electronics Engineering, chapter 6