2-to-1 Multiplexer

Easy · Combinational Logic

Implement an 8-bit 2-to-1 multiplexer.

When sel is 0, the output y must equal a. When sel is 1, y must equal b. The circuit is purely combinational: y must update in the same time step as the inputs change.

sely
0a
1b

Example

sel=0  a=8'h12  b=8'h34   ->  y=8'h12
sel=1  a=8'h12  b=8'h34   ->  y=8'h34

Sign up free to solve 2-to-1 Multiplexer in your browser.

More Combinational Logic problems