MUXes
A multiplexer, often abbreviated MUX, is a combinational circuit that selects one of several input data lines and forwards the selected input to a single output line. The selection is controlled by one or more select signals. An N-input MUX has N data inputs and uses log2(N) select lines. For example, a 4-to-1 MUX uses two select lines to choose among four inputs.
Implementation commonly uses a layer of AND gates to gate each input with a unique combination of
Data width is a separate consideration: a k-input, w-bit MUX selects one of k w-bit data values,
Relation to demultiplexers: a demultiplexer performs the inverse operation, routing a single input to one of