Verilog case
Sequential execution of cases
- only first case that matches is executed (no break)
- default case can be used
module mux4 (sel, A, B, C, D, Y);
input [1:0] sel; // 2-bit control signal
reg Y; // target of assignment
always @(sel or A or B or C or D)