# Status Every rung, its judge with its evidence tier, its command and its measured count, with the commit and date it was measured at. Modelling level: cycle. Rungs and their exits are in [validation.md](validation.md); the behaviour in [behaviour.md](behaviour.md). **The commit boards should pin: 6ed1ffa** (2026-11-14). Every interface pin of [adoption.md](adoption.md) is built; the serial shift registers are not (decision 2). **U1, 64 kHz row (2026-11-19):** read against ijor's die schematic (allowed from 2026-11-19, facts only). As drawn it gives the closed box's +26; the Acid800 verdicts need +25, which the core keeps. **No behaviour change**, so `pokey-rust` and the boards (a5200-python, a7800-python and their Rust tiers) need no repin for this. Details and the list of other items the schematic could settle: [undocumented-behavior.md](undocumented-behavior.md), U1 and the candidates table. Rerun on the documentation commit's tree: `python -m pytest`, 123 passed and 2 xfailed (twotone, both machines) on CPython 3.14 and on PyPy 3.11, AcidSAP included; the closed-box streams were not rerun (no code changed). | Rung | Scope | Judge (tier) | Command | Result | Measured at | | --- | --- | --- | --- | --- | --- | | 1 | registers, strobes, $FF reads, IRQST/SKSTAT polarity, IRQEN acknowledge, init-mode list, power-on | DS 22-23, 32 (2); AHRM 5.1, 5.2, 5.7 (3); Acid800 `pokey_default.s` expectation | `python -m pytest tests/test_registers.py` | 13 passed, 0 failed (CPython 3.14, PyPy 3.11) | 7544051, 2026-11-14 | | 2 | derived clocks, timers, joins, STIMER, polynomial counters, RANDOM | hardware numbers: AHRM 5.2, 5.3, 5.5 and Acid800 `pokey_noise.s` (1 via 3) | `python -m pytest tests/test_timers.py` | 31 passed, 0 failed (every row of the cycle table and of "The two derived clocks"; $95/$08; the 00 DF EE 16 B9 run) | rung 2 commit, 2026-11-14 | | 2 | streams: RANDOM every cycle and the four divider pulses | closed box (4), after the fixed alignment D1, D2 | `OSS_CAD_SUITE=DIR python -I scripts/streams.py rung2 --streams 200 --cycles 50000 --no-init-toggles` | **0 differences**: 200 streams, 10,019,627 cycles, 9,822,827 RANDOM reads, 292,458 fires (371 s) | rung 2 commit | | 2 | the same with init mode re-entered (holds 9-120) | closed box (4) | `... rung2 --seed 1001 --streams 50 --cycles 50000` | RANDOM 0 differences in 2,456,676 reads; fires: 4,957 differing toggles of 53,820 (35 of 50 streams): difference D5 | rung 2 commit | | 2 | the same with AUDCTL clock/join bits switched | closed box (4) | `... rung2 --seed 2001 --streams 50 --cycles 50000 --audctl-changes --no-init-toggles` | RANDOM 0 differences in 2,455,626 reads; fires: 41,940 differing of 103,489 (43 of 50 streams; once a phase differs it stays): difference D4 | rung 2 commit | | 3 | output stage: distortions, the 5-bit gate, noise taps, high-pass, STIMER set, volume-only, `mix()` | hardware recording [Plogue] (1, the 4-bit and 5-bit patterns at AUDF1 = 0-4); AHRM 5.3, 5.5 (3); closed box (4) for the per-cycle codes | `python -m pytest tests/test_output.py` | 22 passed (CPython 3.14, PyPy 3.11), among them the real chip's 62-bit gated-square pattern and both generators read every N + 4 bits | f602589, 2026-11-14 | | 3 | streams: the four channel codes every cycle, AUDC (all distortions, volume-only) and AUDCTL (clocks, joins, high-pass, 9/17) random per stream | closed box (4), fixed alignment, D1-D8 | `python -I scripts/streams.py rung3 --streams 200 --cycles 50000` | **0 differences**: 200 streams, 10,010,986 cycles compared, 0 undefined (3 processes, about 90 s each) | f602589 | | 3 | the same with STIMER in the body | closed box (4) | `... rung3 --seed 3001 --streams 50 --cycles 50000 --stimers` | 502,554 differing cycles of 2,502,822 (50 of 50 streams): difference D7 (and D8), counted, not fixed | f602589 | | 2 | rung 2 streams re-run after the rung 3 changes | closed box (4) | `... rung2 --streams 40 --cycles 50000 --no-init-toggles` | 0 differences: 2,004,459 cycles, 1,964,592 RANDOM reads, 63,728 fires | f602589 | | 4 | IRQEN enable/disable deadlines, the line settled per tick, the clocks' init lag (B2.1b) | AHRM 5.7 (3); Acid800 `pokey_irqtiming.s`, `pokey_inittiming.s` (TEST ROM, 3) | `python -m pytest tests/test_irq.py tests/test_timers.py` | 12 + 31 passed | 0b1b452, 2026-11-14 | | 4 | AcidSAP's ten POKEY tests, 6502-python in the loop, 2-cycle and 3-cycle IRQ machines | the tests' own verdicts (TEST ROM, 3) | `python -m pytest tests/test_acidsap.py` | **8 of 10 pass on both machines** (addrmirror, default, inittiming, irqtiming, noise, seroc, timergranularity, timerirq); asyncrecv and twotone fail as expected (rung 7, xfail strict) | 0b1b452 | | 4 | streams: /IRQ every cycle and IRQST bits 0-3 at every read, random IRQEN writes, timers on every clock | closed box (4), alignment D1, D2, D9, D10 | `python -I scripts/streams.py rung4 --streams 200 --cycles 50000` | **0 differences**: 200 streams, 9,995,591 cycles, 9,550,902 IRQST reads (3 processes, about 145 s each) | 0b1b452 | | 4 | the same without the D9/D10 alignment | closed box (4) | `... rung4 --streams 10 --cycles 5000 --raw-irqen` | 349 pin and 123 IRQST differences in 49,872 cycles (10 of 10 streams): differences D9, D10, counted, not fixed | 0b1b452 | | 2, 3 | rung 2 and rung 3 streams re-run after B2.1b (alignment D2 now 0 / 1) | closed box (4) | `... rung2 --streams 40 --cycles 50000 --no-init-toggles`; `... rung3 --streams 40 --cycles 50000` | 0 differences: 2,004,459 cycles (1,964,592 RANDOM reads, 63,728 fires); 2,003,462 cycles of levels | 0b1b452 | | 5 | pot scan: fast and slow, POTGO, live (transitional) reads, ALLPOT, 228/229, crossings, truncated and suspended scans, dump transistors; the optional `rc` helper | AHRM 5.9 numbers (3): the 17-value fast-scan list, W+231, 81 + 114N, $E0/$E4/ALLPOT | `python -m pytest tests/test_pots.py` | 10 passed (CPython 3.14, PyPy 3.11). The closed box cannot judge pots (its scan counter stays undefined: validation.md) | a562228, 2026-11-14 | | 6 | keyboard: scan counter, four-state machine with debounce on and off, KBCODE with Shift/Control, Break, overrun, scan disable, the 5200 keypad aliasing | AHRM 5.8 (3) | `python -m pytest tests/test_keyboard.py` | 9 passed (CPython 3.14, PyPy 3.11), the 5200 case among them (registered at $0D and 32 steps later at $2D) | fec011c, 2026-11-14 | | 6 | streams: K0-K5 every cycle, /IRQ, IRQST bits 6-7 and SKSTAT bits 2, 3, 6 at every read, random /KR1-/KR2 levels, debounce on or off per stream | closed box (4), alignment D11-D14 | `python -I scripts/streams.py rung6 --streams 501 --cycles 20000` (3 processes) | 12,582,017 cycles: K pins 0 differences (35,864 ripple rows, D11), 5,226,934 reads compared; **499 of 501 streams 0 differences**; 2 streams differ (114 /IRQ rows, 114 reads), both a /KR change placed in a 15 kHz step's own cycle (D13). KBCODE not compared (D14) | fec011c | | 7 | serial port, audio-affecting parts (decision 2 (b)): two-tone resync and force break, asynchronous-receive hold of timers 3+4, clock pins, SOD | AHRM 5.6 (3): T+8/+14/+20, Table 10 | `python -m pytest tests/test_serial.py` | 7 passed (CPython 3.14, PyPy 3.11). Not judged against the closed box (its serial part is the one its author reported untested: validation.md, "What it still takes", 4) | 52b84e7, 2026-11-14 | | 7 | AcidSAP after rung 7 | the tests' own verdicts (TEST ROM, 3) | `python -m pytest tests/test_acidsap.py` | **9 of 10 pass on both machines** (asyncrecv now passes); twotone needs the output shift register, which decision 2 leaves unbuilt (xfail strict) | 52b84e7 | | 10 | conformance kit: per-cycle digests (reads, levels, /IRQ, K pins, dump, SOD, OCLK, BCLK) of 11 cases, 1,000-cycle slices | the core itself (fidelity, not hardware) | `python -I scripts/conformance.py` | 11/11 identical; written on PyPy 3.11, checked on CPython 3.14 (`validation/conformance.txt`) | 6ed1ffa, 2026-11-14 | | 8 | music and real programs | | | **not run**: needs register logs from the boards, which have not adopted the core yet | | | speed | `run()` of a running chip, all four channels sounding, best of 5 by CPU time | | `python -I scripts/speed.py` | CPython 3.14: 0.61 M cycles/s (0.34x NTSC real time); PyPy 3.11: 9.54 M cycles/s (5.33x). Rung 3 had 0.82 and 11.2: the pot, keyboard and serial logic cost about 15-25 % | 6ed1ffa | | 9 | seeded faults, all rungs | the unit tests (AcidSAP included) and the conformance kit | `python -I scripts/seeded_faults.py` | **64/64 caught** (PyPy 3.11; one fragment re-anchored after rung 7 and re-run: 1/1). The kit alone catches the 4-bit noise stage fault that the unit tests miss. The stream judges were last run over the then 44 faults (rung 4: 44/44) | 6ed1ffa | | 9 (rung 4) | seeded faults | the unit tests (AcidSAP included); the rung 2, 3 and 4 stream judges (3 streams x 20,000 cycles each) | `python -I scripts/seeded_faults.py --streams 3` | rung 4 commit: **44/44** after one test was added: the full run caught 43; "timer latched though disabled" shows only when a disabled timer fires in the same tick as an enabled one, so `test_a_disabled_source_stays_locked_while_another_latches_with_it` was written and catches it (`--only "latched though"`: 1/1) | 0b1b452 | | 9 (rung 3) | seeded faults | | | rung 3 commit: **38/38 caught** (PyPy 3.11). A first run caught 34; the 4 missed by 3 streams (gate load and a same-cycle write, gate in init mode, STIMER's gate load, high-pass copy placement) became tests. Caught only by the rung 3 streams: 4-bit noise stage | f602589 |