Home / Learn Verilog / Full and Parallel Cases

Full and Parallel Cases

Cover every value, one match at a time.

Bottom lineCover every value, one match at a time.

Breaking it down

Case qualityfull + parallelclean muxoverlap / gappriority or latch
Case quality

Definition

A full case assigns for every input value; a parallel case has no overlapping labels.

Why you need this

Overlaps imply priority hardware; gaps imply latches.

How it works

Always end with default.

Where you'll see this

  • Everyday RTL design
  • FPGA and ASIC projects
  • Testbenches and debugging

Try it

Overlapping labelsVerilog: edit and run

s=11 matches both labels; the first wins.

Test what you just read

1. Overlapping case labels create...