DigiFlop

Two select bits, four inputs, one output.

Verilog Coding Exercise · Combinational II
4:1 Multiplexer
Two select bits, four inputs, one output.

Selects one of four inputs based on a 2-bit select code — commonly written with a case statement in behavioral Verilog.

Good exerciseRewrite the case statement as a single continuous assign expression built directly from the select bits.
▶ Try the interactive version