- 2078 Kartik · 3+3 marks
Full adder using decoder; (57−43) by 2's complement
Short answer
Full adder: Use a 3-to-8 decoder with inputs A,B,C. OR minterms: S = Y1+Y2+Y4+Y7, Cout = Y3+Y5+Y6+Y7. Subtraction: 57-43 in 7-bit: 57 = 0111001, 2's complement of 43 = 1010101; sum = 10001110, discard carry → 0001110₂ = 14₁₀.
Realize full adder circuit using decoder and gates. Subtract (43)₁₀ from (57)₁₀ using 2's complement method.
Full adder using a decoder and gates
A full adder adds , and carry-in :
| A | B | C | S | |
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 1 | 0 |
| 0 | 1 | 0 | 1 | 0 |
| 0 | 1 | 1 | 0 | 1 |
| 1 | 0 | 0 | 1 | 0 |
| 1 | 0 | 1 | 0 | 1 |
| 1 | 1 | 0 | 0 | 1 |
| 1 | 1 | 1 | 1 | 1 |
A 3-to-8 decoder (inputs ) produces every minterm; OR the required lines:
+-------+
A ----->| 2 Y0 |
B ----->| 1 Y1 |---> to S
C ----->| 0 Y2 |---> to S
| Y3 |---> to Co
|3:8 Y4 |---> to S
| Y5 |---> to Co
| Y6 |---> to Co
| Y7 |---> to S and Co
+-------+
Y1,Y2,Y4,Y7 --[OR 4]--> S
Y3,Y5,Y6,Y7 --[OR 4]--> Co
(57)₁₀ − (43)₁₀ by 2's complement
Use 7 bits (57 needs 6 bits; one extra bit for sign safety).
1's complement of 43: . Add 1: 2's complement .
0111001 (+57)
+ 1010101 (2's complement of 43)
---------
1 0001110
^ end carry discarded
An end carry appears, so the result is positive and equals the remaining bits: .
Answer:
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- Full adder using a 2×4 decoder · Digital Logic, chapter 4 · asked 2×
- Decoder; 2-to-4 decoder as a full adder · Digital Logic, chapter 4
- Full subtractor using decoder; combinational circuit · Digital Logic, chapter 4
- Full adder using a single 1:4 DEMUX · Digital Logic, chapter 4 · asked 5×
- Full subtractor using a 2×4 decoder · Digital Logic, chapter 4 · asked 4×
- Full adder using a single 4:1 MUX · Digital Logic, chapter 4
- VHDL models; full adder structural · Embedded System, chapter 9
- VHDL PROCESS; full adder with half adders · Embedded System, chapter 9
- 2's complement subtraction; AND using NOR · Basic Electronics Engineering, chapter 6