- 2080 Bhadra · 4+2 marks
Full subtractor using decoder; combinational circuit
Short answer
With a 3-to-8 decoder, difference D = Y1+Y2+Y4+Y7, borrow Bout = Y1+Y2+Y3+Y7, both via 4-input OR gates. A combinational circuit has outputs depending only on present inputs, with no memory or feedback.
Design the full-subtractor circuit using decoder and required logic gates. What is a combinational logic circuit?
Full subtractor using a decoder
A full subtractor computes and gives the difference and borrow out .
| A | B | D | Minterm | ||
|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 1 | 1 | 1 |
| 0 | 1 | 0 | 1 | 1 | 2 |
| 0 | 1 | 1 | 0 | 1 | 3 |
| 1 | 0 | 0 | 1 | 0 | 4 |
| 1 | 0 | 1 | 0 | 0 | 5 |
| 1 | 1 | 0 | 0 | 0 | 6 |
| 1 | 1 | 1 | 1 | 1 | 7 |
A 3-to-8 decoder with inputs (A = MSB) gives all 8 minterms at –. Each output function is the OR of its minterm lines:
+--------+
A ----->| 2 Y0 |
B ----->| 1 Y1 |---> D, Bout
Bin --->| 0 Y2 |---> D, Bout
| 3:8 Y3 |---> Bout
| Y4 |---> D
| Y5 |
| Y6 |
| Y7 |---> D, Bout
+--------+
Y1, Y2, Y4, Y7 ---[OR 4]---> D
Y1, Y2, Y3, Y7 ---[OR 4]---> Bout
Two 4-input OR gates complete the design (with an active-low decoder like 74138, use 4-input NAND gates instead).
Combinational logic circuit
A combinational logic circuit is a circuit whose outputs at any instant depend only on the present values of its inputs. It has no memory and no feedback from output to input. It is built only from logic gates. Examples: adders, subtractors, multiplexers, decoders, encoders and comparators.
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- Full subtractor using a 2×4 decoder · Digital Logic, chapter 4 · asked 4×
- Define combinational logic circuit · Digital Logic, chapter 3
- Combinational vs sequential; BCD-to-decimal decoder · Digital Logic, chapter 4
- Full subtractor using a 1:4 DEMUX · Digital Logic, chapter 4 · asked 6×
- Full subtractor from half subtractors · Digital Logic, chapter 5
- 2-bit fast adder; full subtractor from half subtractors · Digital Logic, chapter 5
- Short note: Logic gates · Basic Electrical and Electronics Engineering, chapter 3
- Use of VHDL; decoder design · Embedded System, chapter 9
- Combinational vs sequential; JK flip-flop · Basic Electronics Engineering, chapter 6