FAILURE MAP
← Case archive

FA-89057 / Digital logic simulation / Member archive

Blocking-assigned variables forget their value between steps · case 02

A variable updated only by blocking assignment restarts from its initial value every step.

Member previewVariant 2 · 3 implementations · 6 checks per implementation

Case contract

Input [regs, stmts, cycles]. Each clock step executes stmts [kind, lhs, op, a, b] in order (ops copy/inv/and/xor on 0/1). Blocking ('b') statements update the working state immediately; non-blocking ('nb') statements evaluate their right side at the statement against the working state and queue the update. After all statements, queued updates apply in statement order (last write wins). Every variable, blocking or not, keeps its value into the next step. Return per-step values sorted by variable name.

Why this case matters

Event-driven RTL simulation depends on the active/NBA region split; mis-scheduling produces races that do not exist in hardware.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
blocking chain inside one step[[1, 0, 0], [0, 0, 0]][[1, 1, 1], [0, 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 ↗