MUX (Multiplexer 2→1)

Inputs

PinTypeDescription
AbitFirst input signal
BbitSecond input signal
SelbitSelector: 0 → A, 1 → B

Outputs

PinTypeDescription
QbitSel=0 → A, Sel=1 → B

How It Works

MUX (Multiplexer) is a digital switch. It routes one of two input signals to the output based on the selector bit.

Boolean formula: Q = (A ∧ ¬Sel) ∨ (B ∧ Sel)

Truth Table

SelABQ
0000
0010
0101
0111
1000
1011
1100
1111

Usage

Introduced in Level 9. Used for data routing — selecting which signal to pass through. Multiple MUXes can be cascaded to build larger selectors (e.g. 4→1, 8→1).