# S-DSP and S-SMP side: status Date: 2026-11-19. Built in the restarted snes-python from the permitted sources ([handoff-brief.md](handoff-brief.md)); PyPy 3.11 (7.3.20) on a shared machine. | Rung | What | Result | Command | | --- | --- | --- | --- | | 0 | Gaussian table (ares formula) equals anomie's/fullsnes's printed table, hash; counter tables; import boundary | pass | `pytest tests/dsp/test_tables_and_units.py tests/dsp/test_import_boundary.py` | | 1 | units from document statements (BRR, interpolation, envelope, noise, registers, KON sequence) | 21/21 pass | same | | S-SMP | I/O page, ports, timers, IPL overlay (fake ROM; a real one via `$SNES_IPL` boots and signals `$AA/$BB`), `.spc` parse | 11/11 pass (1 skipped without `$SNES_IPL`) | `pytest tests/test_smp.py` | | 2 | 16 synthetic `.spc` cases vs the snes_spc referee (closed box), 64,000 samples each: audio and the register file after every sample | **16/16 value-exact** (2026-11-23: `kon-redecode` and `brr-wrap` added; D1 settled by spc_dsp6) | `python -I scripts/dsp_compare.py --samples 64000` | | 2 (tests) | the same at 8,000 samples | 14/14 pass (13 exact, saturation's recorded difference) | `pytest -m slow tests/dsp/test_referee.py` | | 3 | game `.spc` tracks vs the referee, 320,000 samples (10 s) each | 38/38 value-exact (19 games) | `python -I scripts/dsp_compare.py --samples 320000 FILE...` | | 4 | conformance kit | not started (needed only for a Rust port) | | | 5 | spc_dsp6 (111 tests) through the whole board | **111 of 111, PASSED TESTS** (2026-11-23; the six fixes below). Mesen2 b9fa69d (closed box) passes all 111 too. gilyon's spctest: 557/557 (status.md) | board run, frames to the verdict | | 5 | blargg's `spc_timer`, `spc_smp` (18 tests), `spc_mem_access_times` through the board | **PASSED TESTS** on all three | same | Commits: snes-python `dac331c` (module, S-SMP side, loader, tests, referee), `e047b7b` (documents, `.spc` start-up conventions), and the commit recording this sweep. s-dsp-python `9ecf90f`. ## Rung 3: the game sweep 38 tracks (2 per game, 19 games from many publishers' sound drivers), 320,000 samples (10 s) each, 4-5 runs in parallel under `nice` (2026-11-19). **12,160,000 samples, 0 audio differences, 0 register-file differences.** Jitter is the referee's snapshot drift (validation.md), not a difference. | Game | Track | audio different | registers different | jitter | | --- | --- | --- | --- | --- | | actraiser | 02 Sky Palast | 0 | 0 | 5 | | actraiser | 10 Piramid ~ Marana | 0 | 0 | 36 | | chrono-trigger | 102 Chrono Trigger (Looped) | 0 | 0 | 156 | | chrono-trigger | 218 Primitive Mountain | 0 | 0 | 236 | | contra-iii-the-alien-wars | 02 Ground Zero | 0 | 0 | 68 | | contra-iii-the-alien-wars | 08 Invasion | 0 | 0 | 101 | | donkey-kong-country | 02 Simian Segue | 0 | 0 | 46 | | donkey-kong-country | 15 Funky's Fugue | 0 | 0 | 68 | | donkey-kong-country-2-diddys-kong-quest | 02 Welcome to Crocodile Isle | 0 | 0 | 96 | | donkey-kong-country-2-diddys-kong-quest | 46g Diddy Clear (Flight of the Zinger) | 0 | 0 | 117 | | earthbound | 001b The Evil Giygas Attacks! (part 2) | 0 | 0 | 3345 | | earthbound | 085 Runaway Five's Final Performance | 0 | 0 | 1550 | | final-fantasy-vi | 101b Opening Theme (part 2) | 0 | 0 | 17 | | final-fantasy-vi | 210a Grand Finale (part 1) | 0 | 0 | 19 | | indiana-jones-greatest-adventures | 02 Ominous Feeling | 0 | 0 | 94 | | indiana-jones-greatest-adventures | 11 Spirits of the Ark | 0 | 0 | 73 | | legend-of-zelda-the-a-link-to-the-past | 02 Beginning of the Journey | 0 | 0 | 14 | | legend-of-zelda-the-a-link-to-the-past | 17a The Silly Pink Rabbit! | 0 | 0 | 73 | | mega-man-x | 02 Intro Stage | 0 | 0 | 2376 | | mega-man-x | 18 Boss Battle | 0 | 0 | 2184 | | secret-of-mana | 02 A Curious Tale | 0 | 0 | 115 | | secret-of-mana | 31 Whisper and Mantra | 0 | 0 | 29 | | super-bomberman | 02 Map | 0 | 0 | 1160 | | super-bomberman | 10 Stage Complete | 0 | 0 | 648 | | super-castlevania-iv | 02 Demon Castle Dracula | 0 | 0 | 12 | | super-castlevania-iv | 19 Chandeliers | 0 | 0 | 45 | | super-ghouls-n-ghosts | 02 Princess Got Kidnapped! | 0 | 0 | 21 | | super-ghouls-n-ghosts | 12 Ice Forest | 0 | 0 | 89 | | super-mario-world | 02 Title | 0 | 0 | 141 | | super-mario-world | 17c P-Switch (Hurry) | 0 | 0 | 105 | | super-metroid | 02 Theme of Super Metroid | 0 | 0 | 52 | | super-metroid | 19 Chozo Statue Awakens | 0 | 0 | 22 | | super-turrican | 02 Introduction | 0 | 0 | 12 | | super-turrican | 15 Stage Complete (Stage 2) | 0 | 0 | 24 | | tales-of-phantasia | 102 The Stream of Time | 0 | 0 | 43 | | tales-of-phantasia | 138 The Second Act | 0 | 0 | 217 | | wild-guns | 02 Select Player | 0 | 0 | 725 | | wild-guns | 09 Boss | 0 | 0 | 1048 | Files are in `reference/dsp/spc/games/` (fetched by `scripts/dsp_fetch_games.py`, never committed); the lists are `reference/dsp/runs/sweep-files*.txt`, the logs `sweep-320000*.txt`. ## Speed Sub-real-time, as a reference board may be: on the shared machine (load ~90), one synthetic case of 2 s took 2-19 s, and one game track of 10 s took 49-337 s with 4-5 runs in parallel. ## spc_dsp6 through the board (2026-11-23) Run: the board with the IPL ROM; a scratch driver taps the text the ROM writes through `$2118` (the ROM prints each test's name, then a dump and "Failed" on the first failure). **111 of 111 pass**: PASSED TESTS between frames 8,750 and 9,000 (about 27 minutes on PyPy). Each failure was decoded without the ROM's source (none is published; the pinned tree holds the binary only): the board's own trace of the test's DSP writes and its ARAM, a synthetic `.spc` case run against snes_spc (closed box), and, where the referee agreed with the board, Mesen2 b9fa69d's ARAM read by a Lua script (closed box). | spc_dsp6 test | What was wrong | Evidence beyond the ROM | Commit | | --- | --- | --- | --- | | `Envelope/gain $E0 threshold` | the bent line's saved envelope wrapped at 11 bits; now clipped to `$7FF` (C15) | | c2c9425 | | `KON/kon decoding when another kon` (22; the earlier note said 21, which passed) | a KON on a preload sample of an earlier KON now makes that preload's decode first (anomie's "final pre-KON BRR decode") | `kon-redecode`: 137 delays, 0 rounds differ from the referee (24-35 samples per round before) | 214008b | | `Misc/brr addr wrap-around` | not the wrap: one decay step 7 samples after the poll; the poll now pairs with even counter values at reset (U22) | Mesen2's echo buffer holds the `$7FF` ramp; `brr-wrap` value-exact | bdbe56c | | `Order/loop addr read in prev sample` | the loop address is read at S2 of the sample whose S4 ends the block | | bdbe56c | | `Random/echo data` | the eighth FIR product is cast to 16 bits before the clamped add (D1) | the referee does the same: `saturation` now value-exact | 5c5bb32 | | `Timing/Misc/28 dir` | the directory entry is formed at S2 (anomie), not S1 | | 99b54a3 | All 16 synthetic cases are value-exact against the referee after these changes. ## Where this stopped - Rung 4 (conformance kit) not started; rung 5 waits for the board (S-CPU, ROM loading). The board must call the API in [interface.md](interface.md). - Open: C3, C14, C16 and the step-30 order are judged by spc_dsp6's remaining Timing tests; D1 and C15 are settled by spc_dsp6 (above). - TEST-register wait states, the RAM-disable bit and the port read/write OR effect are modelled from ares or not at all (interface.md); no test exercises them yet.