case
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)
Sequential execution
- Executes only first case that matches (don’t need a break)
- case statements synthesizes to multiplexers