- 2081 Baisakh · 2+5 marks
DEMUX vs decoder; 4×16 decoder from 2×4
Short answer
A demux has a data input plus select lines, output equals data; a decoder only selects one output based on code (fixed active level). A 4×16 decoder is built with five 2×4 decoders: the first decoder (A,B) enables one of four output decoders (C,D), each producing four outputs.
Differentiate between de-multiplexer and decoder. Construct 4×16 line decoder using 2×4 line decoders with enable.
DEMUX vs decoder
| Point | Demultiplexer | Decoder |
|---|---|---|
| Inputs | 1 data + select lines | code inputs (+ enable) |
| Outputs | ||
| Job | Routes the data bit to one output | Activates the output for the input code |
| Output value | Equals the data input | Fixed active level (1 or 0) |
| Typical use | Data distribution | Address decoding, code conversion |
A decoder with enable becomes a DEMUX when the enable pin is used as the data input; e.g. 74138 serves both roles.
4×16 decoder from 2×4 decoders with enable
A 4×16 decoder has inputs ( = MSB) and outputs –. Use five 2×4 decoders:
- Decoder 0 (control): inputs ; enable tied to 1 (or to an overall enable ). Its outputs – enable one of the four output decoders.
- Decoders 1–4: inputs ; each enable comes from one output of decoder 0. Each produces four of the final outputs.
A B C D
+--------+ +--------+
E ->|E O0 |------------>|E DEC1 |--> Y0 .. Y3
| O1 |---------+ +--------+
| DEC0 | | +--------+
| O2 |------+ +-->|E DEC2 |--> Y4 .. Y7
| O3 |---+ | +--------+
+--------+ | | +--------+
| +----->|E DEC3 |--> Y8 .. Y11
| +--------+
| +--------+
+-------->|E DEC4 |--> Y12 .. Y15
+--------+
(C, D go to all of DEC1 - DEC4)
Connections: DEC1, DEC2, DEC3, DEC4 (all enables).
| AB | Enabled decoder | Outputs for CD = 00…11 |
|---|---|---|
| 00 | DEC1 | – |
| 01 | DEC2 | – |
| 10 | DEC3 | – |
| 11 | DEC4 | – |
Working
Input : decoder 0 sees and enables DEC4 only; DEC4 decodes and makes its second output high, i.e. . The disabled decoders keep all their outputs at 0, so exactly one of the 16 lines is active, giving .
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- Multiplexer tree; 1:16 DEMUX from 1:4 · Digital Logic, chapter 4
- Encoder; 4×16 decoder from 2×4 decoders · Digital Logic, chapter 4
- Decoder; 3×8 decoder from two 2×4 decoders · Digital Logic, chapter 4
- 5×32 decoder using 3×8 decoders · Digital Logic, chapter 4 · asked 3×
- DEMUX vs decoder; seven-segment "b" segment · Digital Logic, chapter 4
- Multiplexer tree; 16:1 MUX from 4:1 · Digital Logic, chapter 4
- Inductance of twin-bundle line, 16 mm radius · Power System Analysis I, chapter 4 · asked 3×
- Delta modulation encoder/decoder; PCM vs DM · Communication Systems, chapter 4
- Uniform vs non-uniform quantization; 16-level PCM numerical · Communication Systems, chapter 4
- 8255 port addresses from decoder figure · Instrumentation II, chapter 2