FAILURE MAP
← Case archive

FA-89260 / Digital logic simulation / Member archive

Terminal count asserted while the counter is disabled · case 05

tc is high whenever the counter sits at its terminal value, even with enable low.

Member previewVariant 5 · 3 implementations · 7 checks per implementation

Case contract

Input [m, q0, ops]: ops per clock [load, value, en, up]. Before the edge tc = en==1 and ((up==1 and q==m-1) or (up==0 and q==0)). At the edge load==1 sets q = value mod m (load has priority and ignores en); else en==1 counts up or down modulo m. Return [q after edge, tc] per clock.

Why this case matters

Counters are the most common sequential primitive; wrap, load priority and terminal-count gating are recurring simulation-model bugs.

One recorded failure

Sample boundary fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
terminal count needs enable[[5, 1], [0, 1], [0, 1]][[5, 0], [0, 1], [0, 0]]Failed

MEMBER ARCHIVE

The complete case is available to members.

This record includes three runnable implementations, regression fixtures, execution results, and source hashes.

Member access is invitation-based. Sign in with your invited account to inspect the sources.

Sign in to the archive ↗