- 2076 Asoj
Encoder; 4×16 decoder from 2×4 decoders
Short answer
An encoder converts 2^n input lines to n-bit binary code. A 4×16 decoder is built with five 2×4 decoders: one uses inputs A,B to enable one of four second-level decoders, each using C,D to produce 4 outputs, yielding 16 outputs.
Define encoder. Design 4×16 Decoder using 2×4 Decoder only.
An encoder is a combinational circuit that does the reverse of a decoder: it has (or fewer) input lines and output lines, and gives the binary code of the input line that is active. Example: an 8-to-3 (octal-to-binary) encoder gives when input is high.
4×16 decoder using only 2×4 decoders
Inputs (MSB), , , (LSB). Each 2×4 decoder has an enable input . Five 2×4 decoders are needed, in two levels.
- First level (1 decoder): inputs , . Its four outputs act as enables, selecting one of the second-level decoders.
- Second level (4 decoders): inputs , in common. Only the enabled one gives an active output.
+-------+
C,D ------>| 2x4 #1|--> Y0..Y3
+--->| E |
| +-------+
+--------+ O0--+ +-------+
A-| 2x4 | O1------>| 2x4 #2|--> Y4..Y7
B-| (#0) | O2--+ +-------+
E-| | O3-+| +-------+
+--------+ |+--->| 2x4 #3|--> Y8..Y11
| +-------+
| +-------+
+---->| 2x4 #4|--> Y12..Y15
+-------+
(C,D go to all four second-level decoders)
| AB | Enabled decoder | Outputs active (by CD) |
|---|---|---|
| 00 | #1 | – |
| 01 | #2 | – |
| 10 | #3 | – |
| 11 | #4 | – |
Example: : decoder #0 makes O3 high, enabling #4; makes its second output high, so (since ).
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- 5×32 decoder using 3×8 decoders · Digital Logic, chapter 4 · asked 3×
- Decoder; 3×8 decoder from two 2×4 decoders · Digital Logic, chapter 4
- DEMUX vs decoder; 4×16 decoder from 2×4 · Digital Logic, chapter 4
- Encoder vs decoder; 8-to-3 encoder · Digital Logic, chapter 4
- Octal priority encoder design · Digital Logic, chapter 4 · asked 3×
- Priority encoder; "e" and "f" segments · Digital Logic, chapter 4
- Stereo FM encoder and decoder · Communication Systems, chapter 3 · asked 2×
- Stereo FM encoder and decoder block diagram · Communication Systems, chapter 3
- Delta modulation encoder/decoder; PCM vs DM · Communication Systems, chapter 4
- Use of VHDL; decoder design · Embedded System, chapter 9