The 2:1 multiplexer is the basic switch from which bigger multiplexers are built. It has two data inputs, I0 and I1, one select line S, and one output Y.
- S = 0: Y = I0.
- S = 1: Y = I1.
In one equation: Y = .
Read it as two doors. The term is a door for I0 that is open only while S = 0. The term is a door for I1 that is open only while S = 1. Since S can't be 0 and 1 at once, exactly one door is open, and the OR gate passes whatever comes through it. The input behind the closed door has no effect at all.
Why it matters:
- It is the building block of a mux tree: three 2:1 MUXes make a 4:1 MUX, seven make an 8:1.
- Wiring constants or variables to its data inputs turns it into any 2-input gate. It's an example of shannon expansion with one variable.
- In a CPU it chooses between two sources, such as "next instruction" and "jump target" for the program counter.