Worked examples — Multiplexers (2 - 1, 4 - 1, n - 1)
Before anything: three plain words you will keep needing.

The scenario matrix
Every MUX question falls into one of these cells. The worked examples below are each tagged with the cell they cover.
| Cell | Case class | What makes it tricky |
|---|---|---|
| A | Direct selection — read given selects + inputs | convert address correctly, MSB order |
| B | Degenerate select = all-zeros | picks , easy to skip |
| C | Degenerate select = all-ones | picks the last input |
| D | Function on a full MUX | wire inputs = truth-table column |
| E | Function on a smaller MUX (Shannon) | inputs become |
| F | Cascading — build big MUX from small ones | which bit selects the group |
| G | Enable line active/inactive | forces (or high-Z) |
| H | Sizing / limiting — how many selects, how many chips | , ceiling for non-powers of 2 |
| I | Real-world word problem | translate English into address bits |
| J | Exam twist — inputs are variables, not constants | don't confuse input value with select value |
Example 1 — Cell A: plain selection
- Convert the address. . Why this step? The select bits are a base-2 number; that number is the input index. High bit first.
- Pick the input. Address . Why? By definition with the address.
- Read its value. , so .
Verify: Exactly one minterm is 1 for any select value (they are mutually exclusive), so no other input can leak. .
Example 2 — Cell B: all-zero select (degenerate low)
- Address = 0. . Why? Even the all-zero select is a valid address; it names input .
- . Why this step? People assume "zero select = MUX off." Not true — a plain MUX has no off state; it always passes exactly one input. is that input here.
Verify: minterm only when all selects are 0. So . ✅
Example 3 — Cell C: all-one select (degenerate high)
- Address . Why? — the largest index a 2-bit address can name.
- . Why this step? All-ones select always picks the last input , never . This is the mirror of Cell B.
Verify: here, others ; . General rule: all-ones on selects index . ✅
Example 4 — Cell D: any function on a full 4:1 MUX
-
Build the truth table. Compute for each row.
row 0 0 1 1 0 0 1 0 0 1 1 0 1 1 2 1 1 0 1 3 Why this step? A full MUX is a truth-table copier: row of the table = the value you hard-wire onto .
-
Wire inputs = the column. (all constants 0/1). Why? When the actual appear on the selects, the MUX routes exactly that row's constant to .

Verify: Try : selects , and . ✅ Try : selects , . ✅ See Boolean Algebra Minterms for why the SOP form guarantees this.
Example 5 — Cell E: same function, smaller MUX (Shannon on B)
This is Shannon Expansion: split into the case and the case , and let the leftover variable live in the data inputs.
- Write the 2:1 equation with as select. Why this step? Whatever we put on is what equals when ; is what equals when .
- Case . . So . Why? Fix and simplify — the result is a function of the leftover variable (here it collapses to the constant 1).
- Case . . So . Why? Same, with . Now the leftover survives as a live wire — an input can be a variable, not just 0/1.
Verify: : ; . ✅ : ; . ✅ : ; . ✅ Matches the full table in Example 4.
Example 6 — Cell F: cascading (build an 8:1 from 4:1 + 2:1)
- Split by the top bit. Low group , high group . Why this step? is worth . Indices all have ; indices all have . So separates the two halves.
- Feed to both 4:1 MUXes. MUX-L outputs from the low group; MUX-H outputs . Why? chooses the position within a group of four (the low 2 bits of the address).
- The 2:1 MUX (select ) picks a group. .

Trace : , so MUX-L emits and MUX-H emits . , so the 2:1 forwards MUX-H .
Verify: , and we got . The group bit and the within-group bits reassembled the full address. ✅
Example 7 — Cell G: the enable line
- Compute the inner MUX value. Address inner . Why? The bracket is just the ordinary 4:1 expression from Example 1.
- (a) : . Why? Enable-high passes the MUX result unchanged.
- (b) : . Why this step? multiplies everything; a single 0 factor kills the product. On a tri-state part this becomes high-Z (the output floats off the bus) instead of a hard 0.
Verify: ; regardless of inputs. This is exactly what lets many MUXes share one bus. ✅
Example 8 — Cell H: sizing and limiting behaviour
The rule from the parent: for inputs, selects (the smallest integer ).
- (a) 16 inputs. exactly 4 selects. Why the log? bits address inputs; invert that to get .
- (b) 12 inputs. , not an integer. 4 selects. Why the ceiling? 3 bits only address inputs — too few for 12. You must round up; 4 addresses cover (the extra 4 addresses go unused).
- (c) 16:1 from 4:1s. Four 4:1 MUXes fan into one 4:1 selector 5 MUXes. Why? Bottom 2 select bits drive the four data MUXes (each covers 4 inputs); top 2 bits drive the selector that picks among the four groups. inputs, select bits.
Verify: , , chip count . ✅
Example 9 — Cell I: real-world word problem
- Identify the parts. 4 sensors = data inputs; 2 switches = select lines; 1 shared bus = output . This is literally a 4:1 MUX. Why this step? "Many sources, one shared wire, a control that picks one" is the exact signature of a MUX — the same reason a MUX exists (a shared bus can't carry all four at once).
- Convert the switches. . Why? is the MSB, worth 2.
- Read the wiring map. Address 2 temperature.
Verify: , mapped to temp. If the switches read we'd get RPM instead — sanity-checks against the mapping. ✅
Example 10 — Cell J: exam twist (variable input)
- Substitute carefully. . Why this step? Replace each symbol with its wired value — , , are all -expressions here.
- Simplify with . and , so . Why? A variable ANDed with its own complement is always 0 — they can't both be 1.
- Conclusion: , the constant zero function.
Verify: : . : . Constant 0 confirmed. ✅ (Moral: an input being a variable is fine — but always substitute, never eyeball.)
Recall Case coverage self-test
- All-zero select on an 8:1 picks? ::: .
- All-one select on an 8:1 picks? ::: (the last input).
- Selects for a 12:1 MUX? ::: .
- On a full 4:1 MUX, what do you wire the inputs to? ::: the truth-table output column of the function.
- Shannon on a 2:1 MUX: what can each input be? ::: one of .
- Which bit selects the group when cascading to an 8:1? ::: the MSB .
- on an active-high MUX gives? ::: (or high-Z on tri-state).
Connections
- Multiplexers (2 - 1, 4 - 1, n - 1) — the parent: definitions and derivations these examples exercise.
- Boolean Algebra Minterms — why the SOP wiring in Example 4 is exact.
- Shannon Expansion — the shrink trick in Example 5.
- Decoders — the minterm generator inside the MUX.
- Demultiplexers — the inverse, for contrast in word problems.
- Tri-state Buffers — what really does on a shared bus (Example 7).
- Combinational Logic Design — MUX as a universal building block.