Exercises — Demultiplexers
Before we start, one reminder of the single equation everything rests on.
Figure 1 below shows a 1-to-4 DEMUX with data fixed at and select ; watch how only the red output carries the data while the three black outputs sit at . Refer back to it whenever a problem asks "which single line goes high".

Level 1 — Recognition
Goal: can you identify the parts and read the definition?
L1-Q1
A demultiplexer has select lines. How many outputs does it have, and how many data inputs?
Recall Solution
Outputs: . Data inputs: always exactly . Why: Each output corresponds to one distinct binary code on the select lines. Three bits give different codes, hence 8 outputs. The "many" side of a DEMUX is the output side, never the input. Answer: 8 outputs, 1 data input.
L1-Q2
Which of these is the correct one-line description of a DEMUX? (a) many inputs → one output (b) one input → many outputs (c) one input → one output.
Recall Solution
(b) one input → many outputs. Why: Read the name — DEliver to MUltiple eXits. Option (a) describes a multiplexer, the mirror twin.
L1-Q3
For a 1-to-2 DEMUX with select line , write the two output equations.
Recall Solution
Why: is chosen when , and "" is written (read "NOT S", equals 1 when is 0). is chosen when , written plainly as . In both, the data is ANDed in so the output only carries data when its line is selected.
Level 2 — Application
Goal: plug numbers into and get every output right.
L2-Q1
A 1-to-4 DEMUX has and select . List all four outputs .
Recall Solution
Step 1 — decode the select. . So the destination is . Step 2 — confirm with the formula. All others have a minterm equal to 0, so they are 0. Answer: .
L2-Q2
Same 1-to-4 DEMUX, but now and . List all outputs.
Recall Solution
. Every output has as a factor, and , so all outputs are 0. Lesson: The select lines pick where the data goes; the data decides what arrives. If no data (), even the chosen door stays 0. The DEMUX never invents a 1.
L2-Q3
A 1-to-8 DEMUX has , . Which single output is high?
Recall Solution
Decode: . So is high. Confirm: . All others 0. Answer: .
L2-Q4
Write the minterm expression for output of a 1-to-8 DEMUX (selects ).
Recall Solution
Decode 5 into 3 bits: , i.e. . A bit that must be 1 appears plain; a bit that must be 0 appears barred: Check: this equals 1 only when — exactly code 5. ✓
Level 3 — Analysis
Goal: reason about behaviour, build/read truth tables, spot patterns.
L3-Q1
Fill in the truth table for a 1-to-2 DEMUX. Confirm each row matches , .
| 0 | 0 | ? | ? |
| 0 | 1 | ? | ? |
| 1 | 0 | ? | ? |
| 1 | 1 | ? | ? |
Recall Solution
Compute and row by row:
| 0 | 0 | ||
| 0 | 1 | ||
| 1 | 0 | ||
| 1 | 1 |
Read it: the data appears on exactly one output — when , when . Both zero-data rows give all zeros. This is the DEMUX contract, verified.
L3-Q2
Across all 4 outputs of a 1-to-4 DEMUX, how many outputs are 1 at any instant (for )? What if ? What does this tell you about the arithmetic sum ?
Recall Solution
- If : exactly one output is 1 (the selected one), because the select bits name exactly one code and only . Arithmetic sum .
- If : zero outputs are 1. Arithmetic sum . So the arithmetic sum always (here is ordinary addition of the four bit-values, not Boolean OR). The demux spreads but never duplicates or loses the data bit: the total is conserved and equals .
L3-Q3
Prove that for any 1-to- DEMUX, no two outputs can be 1 simultaneously.
Recall Solution
Claim: for any select value, at most one minterm equals 1. Why: Each minterm is 1 only for the single binary code . The select lines hold exactly one binary value at a time (each bit is either 0 or 1, no in-between in the logic model). That value equals exactly one code — call it . Therefore and every other . Since , at most one can be nonzero (and it carries ). ∎ Picture: think of the select value as a single arrow pointing at exactly one door among ; only that door can open.
Level 4 — Synthesis
Goal: build new things — combine equations, design circuits.
L4-Q1
Turn a 1-to-8 DEMUX into a 3-to-8 decoder. Show that with your change, output becomes exactly the decoder minterm for input 5.
Recall Solution
Design move: tie the data input high, , permanently. Then for every — the DEMUX outputs become the pure minterms, which is precisely what an -to- decoder produces. For : , so which is 1 exactly when the 3-bit input is — the decoder's job. Same silicon, different role.
L4-Q2
Build a 1-to-4 DEMUX out of three 1-to-2 DEMUXes (a "tree"). Give the connections and verify that data reaches when .
Recall Solution
Structure (Figure 2 shows this exact wiring):
- Stage 1: one 1-to-2 DEMUX with data , controlled by the MSB . It produces two lines: and .
- Stage 2: two 1-to-2 DEMUXes, both controlled by the LSB .
- Feed into one: gives , .
- Feed into the other: gives , .
Verify (want ): With , ; and since , both ; and . Result: only carries the data — matches the flat 1-to-4 DEMUX. ✓
The general form is exactly the flat minterm expression, so the tree is equivalent.

L4-Q3
A single serial line must be distributed to registers R0…R3 on a bus, one register updated per clock. Which component and which select values load R3?
Recall Solution
Use a 1-to-4 DEMUX: data input = the serial line ; the 4 outputs are the load-enable lines of R0…R3. To load R3, drive the selects to (). Then reaches R3's enable; all other enables are 0, so only R3 captures the bit. This is exactly how address decoding steers data to one word.
Level 5 — Mastery
Goal: fuse ideas, handle edge cases, argue rigorously.
L5-Q1
A 1-to-16 DEMUX is built from a 4-to-16 decoder plus one extra gate per output. What is that gate, how many gates total, and why does this construction work?
Recall Solution
Gate: a 2-input AND on each output — one input is the decoder line , the other is the shared data . Count: AND gates (one per output). Why it works: The decoder already computes every minterm (exactly one is 1). ANDing each with gives — the DEMUX equation. So DEMUX = decoder + one AND-with- per output, the parent note's realisation #1, generalised to .
L5-Q2
Show algebraically that connecting a MUX after a DEMUX (same select lines, same select value on both) recovers the original data, i.e. the pair acts as a transparent wire for the selected path.
Recall Solution
Set-up. Let the shared select value spell the code (a specific number in ). Let the letter below be a running index that ranges over every output number ; it is the "counter" the MUX's summation walks through. DEMUX side: with data and select code , the outputs are . Only ; the rest are 0. MUX side: a -to-1 multiplexer with the same selects computes a Boolean OR over all output lines, each ANDed with its own minterm: (here is Boolean OR, not arithmetic addition). Two facts collapse this sum:
- Orthogonality of minterms: whenever (two different codes can't both be true at once), and for the one matching code.
- Therefore every term with is , and only the term survives: So . The DEMUX fans the bit out onto line ; the MUX with the same address funnels that exact line back. Together they are a selectable through-connection — the basis of routing data across a shared fabric.
L5-Q3
Edge case: A 1-to-4 DEMUX receives a select value that momentarily glitches from to passing through . Assuming held steady, list the sequence of "active output" during the transition, and state why a DEMUX can produce brief unwanted pulses.
Recall Solution
Trace the active output for each select code (D=1):
- active.
- active (the intermediate glitch code).
- active.
So the active line jumps . The transient visit to code briefly pulses even though the intended path never used it. Why: the two select bits do not change at the exact same instant (real wires have different delays). While they disagree, the DEMUX faithfully routes to whatever intermediate code the selects spell — a decoding glitch. In real designs an enable input (a global gate on ) is held low during select changes to suppress these pulses.
Rapid Recall
Recall One-line answers to the whole ladder
- 3 selects → 8 outputs, 1 data input.
- .
- arithmetic sum (data conserved, never duplicated).
- DEMUX with = decoder.
- DEMUX = decoder + one AND-with- per output.
- MUX-after-DEMUX (same selects) = transparent wire, .
Connections
- Multiplexers — the inverse; L5-Q2 chains them into a wire.
- Decoders — L4-Q1 and L5-Q1 show DEMUX ⊃ decoder.
- Minterms and SOP — every used here.
- Encoders — the reverse family.
- Memory Addressing — L4-Q3 routes data to one register.
- Bus Systems — the distribution motivation.
- Back to parent: Demultiplexers.