← ProblemsCircuits / Combinational Logic / Multiplexers

2-to-1 multiplexer

64%mux

Build a 1-bit wide 2-to-1 multiplexer: a circuit that uses sel to choose between its two data inputs.

  • When sel = 0, pass a through to out.
  • When sel = 1, pass b through to out.