← ProblemsCircuits / Combinational Logic / Multiplexers
2-to-1 bus multiplexer
64%muxvectorsBuild a 100-bit wide 2-to-1 multiplexer. A single 1-bit sel chooses which entire bus drives the output:
sel = 0→out = asel = 1→out = b
Note that widening the data path does not change the logic — the same one-line conditional works for any width.