A MUX tree builds a big multiplexer out of small ones, like a knockout tournament. At each level, pairs of signals compete and one survivor moves on.
With 2:1 MUXes, a 4:1 MUX looks like this:
- Level 1: two 2:1 MUXes, both with select S0. One picks between I0 and I1, the other between I2 and I3.
- Level 2: one 2:1 MUX with select S1 picks between those two winners.
Why S0 goes first: I0 and I1 differ only in S0 (codes 00 and 01), and so do I2 and I3. So S0 settles each pair, and S1 then chooses the pair.
Counting: each 2:1 MUX removes exactly one candidate. Starting with 2ⁿ inputs and ending with 1, a tree needs 2ⁿ − 1 MUXes:
- 4:1 → 2 + 1 = 3
- 8:1 → 4 + 2 + 1 = 7
- 16:1 → 8 + 4 + 2 + 1 = 15
The select lines run from the LSB at the first level to the MSB at the last. Trees can also use bigger pieces, such as 4:1 MUXes feeding another 4:1.