Difference between full case and parallel case
Difference between full case and parallel case
Model answer
- **Full case:** every possible value of the selector is covered (by explicit items or a default ). If not, the synthesizer infers a **latch** in combinational logic. - **Parallel case:** no two case items can match the same selector value, i.e. the items are mutually exclusive. A case that is *not* parallel (overlapping items, e.g. with ? / x wildcards) implies **priority** logic (first match wins); a parallel case synthesizes to a plain multiplexer. verilog // full AND parallel case (sel) 3'b000: y = a; 3'b001: y = b; 3'b010: y = c; 3'b011: y = d; default: y = e; // covers 100..111 endcase Always write a default branch in combinational case statements.