- Asked 4/22
- 2082 Shrawan · 4 marks
Full subtractor using a 2×4 decoder
Short answer
Apply A,B to a 2×4 decoder. OR decoder outputs to form A⊕B (from Y1,Y2) and A⊙B (from Y0,Y3). Then D = (A⊕B) ⊕ Bin, and Bout = Y1 + (A⊙B)·Bin using one XOR, one AND, and OR gates.
Realize a full-subtractor circuit using a single 2×4 decoder and necessary logic gates.
A full subtractor computes , giving difference and borrow . A single 2×4 decoder has only two inputs, so feed it and ; its outputs are the minterms of , and is combined with gates.
Truth table grouped by AB
| A | B | D | ||
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 1 | 1 |
| 0 | 1 | 0 | 1 | 1 |
| 0 | 1 | 1 | 0 | 1 |
| 1 | 0 | 0 | 1 | 0 |
| 1 | 0 | 1 | 0 | 0 |
| 1 | 1 | 0 | 0 | 0 |
| 1 | 1 | 1 | 1 | 1 |
| AB | Decoder line | D | |
|---|---|---|---|
| 00 | |||
| 01 | 1 | ||
| 10 | 0 | ||
| 11 |
Equations
(Here and .)
+--------+
A ----->| 2x4 Y0|---> E (OR)
B ----->| Y1|---> P (OR), Bout (OR)
| Y2|---> P (OR)
| Y3|---> E (OR)
+--------+
Y0, Y3 ---[OR]--- E (= A xnor B)
Y1, Y2 ---[OR]--- P (= A xor B)
P, Bin ---[XOR]------------------ D
E, Bin ---[AND]--- E.Bin --+
Y1 ------------------------+-[OR]-- Bout
Gates: 2 OR (2-input), 1 XOR, 1 AND, 1 OR.
Check: : , , , ; indeed , i.e. with borrow 1. All 8 rows were verified.
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- Full subtractor using a 1:4 DEMUX · Digital Logic, chapter 4 · asked 6×
- Full subtractor using decoder; combinational circuit · Digital Logic, chapter 4
- Full adder using a 2×4 decoder · Digital Logic, chapter 4 · asked 2×
- Full adder using decoder; (57−43) by 2's complement · Digital Logic, chapter 4
- Full adder using a single 1:4 DEMUX · Digital Logic, chapter 4 · asked 5×
- Decoder; 2-to-4 decoder as a full adder · Digital Logic, chapter 4
- Full subtractor from half subtractors · Digital Logic, chapter 5
- Short note: Logic gates · Basic Electrical and Electronics Engineering, chapter 3
- Choppers; single-phase full bridge inverter · Advanced Electronics, chapter 7 · asked 2×
- Single-phase full converter, 10 A, α = 30° · Power Electronics, chapter 2 · asked 4×