# Validation: the oracle ladder Tiers (family method): **1** hardware-captured (real boards, die-level traces of the real netlist) > **2** manufacturer documents > **3** community documents and tests that work on real hardware > **4** HDL reimplementations > **5** emulators. A low tier is a **detector**, never a **judge**. We own no CPS-2 hardware: no board probes are planned. **Plainly: no hardware-tier oracle exists for the CPS-2 object engine and final mixer (DL-1525, DL-1625, DL-2227: 0 % reversed), for the cipher's internals and watchdog (DL-1525), or for the QSound glue's exact timing.** For those, the board's behaviour is provisional at tier 4-5 and says so in its certification record. ## The oracles | Oracle | Tier | Licence | Pin | Can decide | Cannot decide | | --- | --- | --- | --- | --- | --- | | **`cps2-reverse`** (Loïc Petit): KiCad schematics of the A-board 93646A, B-board 93646B, E-board 93646E and the QSound amp CPB-001A traced from real boards; gate-level traces from die photographs of DL-0311 (CPS-A-01), DL-0921 (CPS-B-21), DL-1727, DL-1827, DL-1927, DL-2027, with prose docs | 1 by origin | CC-BY 4.0 | gitlab `cbd37b38` | wiring and address decode; CPS-A/CPS-B registers, tile layers, palette copy, bus requests, video counters; DL-1727 `$804xxx` registers (REG8/9/A, bank strobe); DL-1827 object-RAM banking, bus control, interrupt lines, wait-state decode, security pins; DL-1927 graphics-ROM address mangling | **anything inside DL-1525** (68000, cipher, keys, object engine), DL-1625/DL-2227 (object frame buffer, final composition), DL-1123 (I/O), DL-1425 internals. The author warns traces "were followed by hand and there may be issues"; the raster-counter page says its behaviour "is still unknown". **Read as documents, never simulated**; whether a netlist can be exported from the KiCad sheets and simulated was not tried (a later option) | | **Phoenix plaintext** (CPS-2 Shock's dumps, 1999 on, via a bug in the security that allowed "unencrypted memory dumping on the fly" on real boards; Eduardo Cruz's article) | 1 by provenance (captured from boards), but patched | none (bootleg ROM sets, BYO) | 43 local sets; CRCs from MAME 0.285 | the deciphered value of every code word in 43 programs ([encryption.md](encryption.md): 70,340 words for `spf2td`, 268,946 for `vsav2d`) | data words (never deciphered), the 1-2 % patched words, the range limit, the watchdog | | AT&T WE DSP16/DSP16A Information Manual and data sheet (via dsp16-python) | 2 | bitsavers scans | dsp16-python's pins | the DSP16A instruction set and timing for the QSound program | the QSound glue (Capcom's) | | 93C46 data sheet | 2 | | **not pinned** | EEPROM command set and write timing | | | **ArcadeHacker CPS2 Desuicider** (`.ino` 1.07) and *Capcom CPS2 Security Programming Guide* (Eduardo Cruz, Artemio) | 3 (used on real boards to revive them) | none stated | GitHub `0820276c` | the key bit string per game (all 246 equal MAME's `.key` files, measured), the CN9/CN2 pins and serial protocol | the cipher; what DL-1525 does with the bits | | **MAD** CPS-2 diagnostic ROM (jwestfall69) | 3 (written to run on boards) | Unlicense | GitHub `e1bf4829` | RAM regions, chip positions, sizes (object RAM 2 x 8K x 8 at 3A/4A; work and graphics RAM in the same two 128K x 8 chips), the object-RAM bank test | timing; **not built or run here** (it needs its own toolchain; a later rung could build and run its encrypted image on the board) | | **The games' own service mode** (test menus: input test, sound test, RAM/ROM checks, EEPROM configuration, cross-hatch and colour screens) | 3 (Capcom's code, running as on a board) | the game's | the ROM set | that the board passes Capcom's own checks end to end; input bit layouts (MAME's port layouts were mapped against them) | timing beyond what the code checks | | **Eduardo Cruz, "A Journey Into Capcom's CPS2 Silicon"** | 3 | none stated (cite) | SHA-256 pinned (`pinned_files.json`) | provenance of the plaintext dumps; CN9 introduction; which customs are battery-powered | technical detail (part 2 never appeared) | | **jtcps2** FPGA core (Jose Tejada), `cores/cps2` (and `cps1`, `cps15`) | 4 | GPL-3.0: closed box only | https://github.com/jotego/jtcores @ `ea0ef4e9`, not fetched since 2026-11-24 (Aubrey); read in Phase 0, so what it does is HYPOTHESIS | a second implementation of objects, colour mix, raster counters, key loading, DTACK wait states; its DTACK model is **derived from the DL-1827 schematic sheets** (`ver/dtack/README.md`) with an fx68k bench | its cipher benches (`ver/fn1`, `fn2`, `keyload`) link MAME's `cps2crypt.cpp`: same lineage; its video benches (`ver/game/*.mame`) are fed with MAME memory dumps and compared with MAME snapshots (`cpmame.sh`): **validated against MAME**, so a disagreement with MAME is a finding, an agreement is not independent. Playtesting on MiSTer is not documented as a measurement | | jtcps15 / jtdsp16 (QSound glue and DSP16A in HDL) | 4 | GPL-3.0 | via dsp16-python's pins | a second reading of the DSP glue | as above | | **MAME 0.285** `capcom/cps2.cpp`, `cps1.cpp`, `cps1_v.cpp`, `cps2crypt.cpp`, `sound/qsound*.cpp`, `machine/eepromser.cpp`, the 68000 generator | 5 | BSD-3-Clause per file | `mamedev/mame` `f379cd06` = `mame0285`, and `/usr/games/mame` 0.285 | detector for instruction streams, bus writes, pictures; the cipher as a **specification** | anything; known deviations: clock scale 0.7375 instead of wait states, no bus stealing, no watchdog, one extra deciphered word, QSound HLE by default ([mame-oracle.md](mame-oracle.md)) | | **FinalBurn Neo** | 5 | FBNeo non-commercial: closed box only | https://github.com/finalburnneo/FBNeo @ `c3e8c4df`, not fetched since 2026-11-24 (Aubrey) | a second detector, partly separate video lineage | not built or run here; its QSound is the same superctr HLE as MAME's | | MBDesu `cps2-utils` | 5 | MIT | GitHub `9d4c8df7` | a second cipher implementation to diff against (MAME lineage) | | Found and **not fetched or read**: the 31C3 talk "Preserving arcade games" (`https://fahrplan.events.ccc.de/congress/2014/Fahrplan/system/attachments/2564/original/Preserving_Arcade_Games_-_31c3_LORES.pdf`); Loïc Petit's layer-assembly snippet (`gitlab.com/loic.petit/cps2-reverse/-/snippets/2040959`); siliconpr0n die images of DL-1425 and DL-1927; `sudden-desu.net` on the `8040B0` debug switches; Andreas Naive's and Nicola Salmoria's own write-ups of the break (not located). **Not searched**: Capcom CPS-2 manuals or schematics, MiSTer frame-timing measurements, a CPS-2 240p-style test suite. ## How each subject is judged | Subject | Best judge available | How the board is checked | | --- | --- | --- | | Cipher | Phoenix plaintext (tier 1 by provenance) + the published spec | rung 1: bit-exact against MAME's `saveo` image over the whole range **and** consistent with the Phoenix pair on every unpatched word | | Key format, key loading | ArcadeHacker (tier 3) | the 175 live keys decode to MAME's `cps2 decrypt` line for 5+ sets (measured lines exist for `spf2t`, `spf2tu`, `vsav2`) | | 68000 core | m68000-python's own certification (its oracles) | pinned, not re-judged here | | Memory map, I/O registers, IRQ wiring | `cps2-reverse` DL-1727/DL-1827 (tier 1) | unit tests from the documented decodes; lockstep against MAME for the boot of `spf2t` | | Wait states | jtcps2's reading of DL-1827 (tier 4 from tier 1) | MAME's known problems (Giga Wing music sync and sprite lag, Progear slowdown) as qualitative exits | | Tile layers, palette, timing | `cps2-reverse` DL-0311/DL-0921 (tier 1) | owned by the shared CPS-A/CPS-B code ([video.md](video.md)) | | Raster IRQs | none decisive: die doc incomplete; MAME and jtcps2 disagree | games that use raster effects, compared with both detectors; provisional | | Objects and priority | none above tier 4 | lockstep pictures against MAME (and jtcps2's model where they differ); provisional | | QSound | DSP16A manual (tier 2) for the core; glue from MAME LLE / jtcps15 | the dsp16/qsound repos' sample-for-sample comparison against MAME's LLE; the board checks only its Z80 interface | | EEPROM | data sheet (not pinned) + the games' configuration menus | a game saves settings and reads them back after a restart | | Inputs | the games' input test screens (tier 3) | each layout's test screen shows every bit |