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.
| sel | y |
|---|---|
| 0 | a |
| 1 | b |
sel=0 a=8'h12 b=8'h34 -> y=8'h12
sel=1 a=8'h12 b=8'h34 -> y=8'h34Sign up free to solve 2-to-1 Multiplexer in your browser.