Line and toggle

You will learn

How line and toggle coverage count what a run touched, signal bit by signal bit.

Line coverage asks: did anything execute this line? Toggle coverage asks a sharper question per bit: did this signal ever go 0-to-1, and ever 1-to-0? A stuck signal can sit under 100 % line coverage forever. The lesson's spec is coverage.t27 -- points with hit counts, per-kind percentages, and illegal arcs that must stay at zero -- with 26 tests and 4 invariants of its own. The widget bars a real design's resources; coverage bars are the same picture drawn over what a run touched.

Open the interactive lesson →