FAILURE MAP
← Case archive

FA-88899 / Digital logic simulation / Member archive

Constant tie cells counted as a logic level · case 04

A chain fed by a tie cell reports one extra level of depth.

Member previewVariant 4 · 3 implementations · 8 checks per implementation

Case contract

Input [pis, gates]: pis maps primary input net -> 0/1; gates are [out, op, ins] in any order with ops and/or/xor/nand/not/tie0/tie1. Reject with 'undriven <net>' (first gate in list order, first pin) if a gate reads a net driven by nobody, or 'multiply driven <net>' if a net has two drivers (a gate driving a primary input counts). Otherwise evaluate in dependency waves; return 'loop' if no gate becomes ready. Level: primary inputs 0, gate = 1 + max input level, tie cells 0. Return {'depth': max level, 'values': sorted [net, value]}.

Why this case matters

Levelized compiled-code simulators must order gates by dependency and diagnose structural netlist errors before evaluating.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
tie cell chain depth{"depth": 3, "values": [["a", 0], ["b", 1], ["c", 0], ["t", 1], ["u", 0], ["w", 1]]}{"depth": 2, "values": [["a", 0], ["b", 1], ["c", 0], ["t", 1], ["u", 0], ["w", 1]]}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 ↗