SECTION 04 / 5

Multiplexers (MUX)

3 min read
On this page 6 headings

Start here A TV has many channels but one screen. The remote’s channel number selects which channel reaches the screen. A multiplexer does exactly this with signals: many inputs, one output, and a select code that picks which input gets through.

Many channels, one screen. The select number decides which input you see.
Many channels, one screen. The select number decides which input you see.
Open image ↗
TV remote as a multiplexer

What a multiplexer does

  • N data inputs, 1 output.
  • log₂N select lines choose which input is sent to the output.
MUX Data inputs Select lines
2:1 2 1
4:1 4 2
8:1 8 3
16:1 16 4

The 2:1 MUX

S Y
0 I0I_{0}
1 I1I_{1}

Equation: Y=S‾⋅I0+S⋅I1Y = \overline{S} \cdot I_{0} + S \cdot I_{1}

Inside a 2:1 MUX: one NOT, two ANDs, one OR. S=0S = 0 lets I0I_{0} through; S=1S = 1 lets I1I_{1} through.
Inside a 2:1 MUX: one NOT, two ANDs, one OR. S=0S = 0 lets I0I_{0} through; S=1S = 1 lets I1I_{1} through.
Open image ↗
2:1 multiplexer inside

2:1 MUX delay (an exam favourite)

The slowest path is S → NOT → AND → OR → Y.

delay = NOT⁡+AND⁡+OR⁡\operatorname{NOT} + \operatorname{AND} + \operatorname{OR}

Gate delays MUX delay
NOT⁡=1,AND⁡/OR⁡=2\operatorname{NOT} = 1 , \operatorname{AND} / \operatorname{OR} = 2 ns 1 + 2 + 2 = 5 ns (2025 T2 Quiz 1)
all gates 1 ns 1 + 1 + 1 = 3 ns (2025 T3 end-term)

The 4:1 MUX

The two select bits S1S0S_{1} S_{0} form a number 0–3, and that input goes out.

S1S_{1} S0S_{0} Y
0 0 I0I_{0}
0 1 I1I_{1}
1 0 I2I_{2}
1 1 I3I_{3}

Y=S1‾S0‾⋅I0+S1‾S0⋅I1+S1S0‾⋅I2+S1S0⋅I3Y = \overline{S_{1}} \overline{S_{0}} \cdot I_{0} + \overline{S_{1}} S_{0} \cdot I_{1} + S_{1} \overline{S_{0}} \cdot I_{2} + S_{1} S_{0} \cdot I_{3}

Each select pattern opens exactly one gate. Notice: the select lines feed a decoder-like set of AND gates.
Each select pattern opens exactly one gate. Notice: the select lines feed a decoder-like set of AND gates.
Open image ↗
4:1 multiplexer

A MUX can build any function

Method 1: all variables on the select lines. An n-variable function needs a2n:1MUX⁡a 2^{n} : 1 \operatorname{MUX}. Put the truth-table output column (0s and 1s) on the data inputs.

Method 2: split on one variable (very useful for 2:1 MUX questions). Pick a variable, say A, for the select line:

F=A‾F = \overline{A}·(F when A = 0) + A·(F when A=1A = 1)

Put A on the select line. Feed the “A=0A = 0” half into I0I_{0} and the “A=1A = 1” half into I1I_{1}.
Put A on the select line. Feed the “A=0A = 0” half into I0I_{0} and the “A=1A = 1” half into I1I_{1}.
Open image ↗
Splitting a function on one variable

Example — F(X,Y,Z)=ΠM(0,4)F \left(X , Y , Z\right) = \Pi M \left(0 , 4\right) (2026 T2 Quiz 1, answer 1) F=0F = 0 only in rows 000 and 100, so F=F = Y+ZY + Z. Put Y on the select line: Y=0→F=ZY = 0 \to F = Z; Y=1→F=1Y = 1 \to F = 1. One 2:1MUX⁡:I0=Z,I1=1,S=Y2 : 1 \operatorname{MUX} : I_{0} = Z , I_{1} = 1 , S = Y. ✔

NOT from a MUX: A‾=MUX⁡(S=A,I0=1,I1=0)\overline{A} = \operatorname{MUX} \left(S = A , I_{0} = 1 , I_{1} = 0\right). It costs one whole MUX.

In one line: A multiplexer sends one of N inputs to the output using log₂N select lines (2:1MUX⁡:Y=S‾I0+SI1)\left(2 : 1 \operatorname{MUX} : Y = \overline{S} I_{0} + S I_{1}\right), and by splitting on one variable at a time a MUX can build any function. Exam words: multiplexer, MUX, select lines, data inputs, 2:1, 4:1, MUX delay, function implementation, Shannon expansion.


Quick check

How many select lines does a 32:1 MUX need? 5 (2⁵ = 32).
2:1 MUX with I0=0,I1=BI_{0} = 0 , I_{1} = B and S=AS = A. What is Y? Y=A‾⋅0+A⋅B=ABY = \overline{A} \cdot 0 + A \cdot B = A B. It’s an AND gate!
2:1 MUX with I0=B,I1=1I_{0} = B , I_{1} = 1 and S=AS = A. What is Y? Y=A‾B+A=A+BY = \overline{A} B + A = A + B. It’s an OR gate!
True or false: “A multiplexer selects one of several inputs and forwards it to a single output.” True.
YOUR STUDY PROGRESS

Finished this section? Save your progress.

Back to top ↑