FAILURE MAP
← Case archive

FA-89109 / Digital logic simulation / Member archive

Unknown state outputs a definite zero · case 04

While the state register is unknown the output reads 0 instead of 'x'.

Member previewVariant 4 · 3 implementations · 7 checks per implementation

Case contract

Input [table, start, stream]: table[state] = {'out': o, 'next': {bit: state}}; stream items are [bit, rst] with bit 0/1/'x'. Each cycle outputs the current state's output (or 'x' in the unknown state 'X'), then clocks: rst==1 -> start (synchronous), else unknown input or state 'X' -> 'X', else follow next[bit], staying put if that transition is absent. Return [outputs, final state].

Why this case matters

Cycle-based simulators must emit Moore outputs from the pre-edge state and model unknown propagation through state registers.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
unknown input poisons state[[0, 0, 0, 0, 0, 0, 0, 0, 0], "B"][[0, 0, "x", "x", "x", "x", "x", "x", 0], "B"]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 ↗