# Validation: the oracles, their tiers, and the rung ladder Tiers (the family method): 1 hardware-captured or die-level; 2 manufacturer documents; 3 hardware-corrected community documents and test programs verified on real units; 4 HDL reimplementations; 5 emulators. A low tier is a **detector**, never a **judge**. **There is no tier-1 oracle for this CPU's behaviour.** psxdev has die photographs and board tracing (tier 1 for what is on the chip and how it is wired), not a netlist or captures of instruction execution. Nobody in the family has the hardware. Judges are therefore tier 3 test programs and documents, with emulators as detectors. ## Oracles | Oracle | Tier | Licence / verdict | Pin | Decides | Cannot decide | | --- | --- | --- | --- | --- | --- | | psxdev (ogamespec) die photos, `wiki_eng/cpu.md`, `trace/cxd8530cq/` | 1 (structure), 3 (prose) | CC0-1.0: code OK | `d88b76f` (sparse; `/reverse/` never fetched: a BIOS archive and decompiled Sony library code) | what is on the die, chip revisions, clocks, pins | instruction behaviour | | LSI LR33300/LR33310 User's Manual ch.1-4 (scans in psxdev `docs/`) | 2 | LSI's document: facts only | in psxdev `d88b76f` | pipeline, delay slots, exceptions, load scheduling, COP0 layout, multiply timing of the LR33300 | the PlayStation's configuration (1 KB scratchpad, C2), the CW33300's exact multiplier (C1) | | psx-spx (nocash; community Markdown edition) | 3 | none: facts only; its README says parts derive from Sony's confidential SDK documents, so it is not clean-room | `6d7d1bc` + nocash's page (live, SHA-256 7879668...) | most register-level facts; the 2025-26 i-cache edits say "hardware testing" | anything it marks "?" (U-list) | | PeterLemon/PSX CPUTest (krom) | 3 ("I only test with a real PSX", README) | no licence: run only, nothing committed, sources not copied | `6d20c13` | ALU, shifts, MULT/DIV results, loads/stores per instruction (PASS/FAIL on screen) | timing, delay-slot corners | | amidog psxtest_cpu 1.3, psxtest_cpx 1.1, psxtest_gte 1.4 | 3 (widely used, author-tested; the readmes do not say "verified on hardware": HYPOTHESIS, U17) | no licence: run only | SHA-256 in pinned_files.json | delayed and "advanced" loads, unofficial branches, exceptions, COP0, GTE results and timing | anything needing a picture (they print to screen through the GPU: they run on the board) | | amidog where_am_i, pipe_line, no_code | 3 | run only | SHA-256 | i-cache and GPU-cache abuse | (demos: judged by picture) | | ps1-tests `cpu/` (access-time, cop, code-in-io, io-access-bitwidth), `gte/test-all` | 3 (`psx.log` files are console outputs, presumed: U13) | MIT: code OK (with notice) | `f727802`, release build-158 SHA-256 5de0e82... | bus access costs per region and size; COP1-3 behaviour; GTE registers and opcodes (1150 cases) | - | | SingleStepTests/r3000 | 5 (generated by ares's interpreter, SingleStepTests/ares_r3000_ssts) | MIT | `51e2274` | per-instruction results, load and branch delay state across one instruction, 55 x 1000 cases | timing (one fetch per case), COP0/COP2, I/O | | MAME 0.285 psx | 5 | closed box (GPL-2.0+ driver; BSD-3 device files) | the installed binary | differences over long runs (BIOS boot, EXEs) | timing (its ~2 cycles per instruction is a model, mame-oracle.md) | | Mednafen, PCSX-Redux, Avocado (GPL-2.0); DuckStation (GPL-3.0 until 2024, now CC BY-NC-ND 4.0) | 5 | closed box only, never read (Aubrey's brief: detectors only) | not pinned | differences, if a harness is built in emu-tools-gpl | anything | ## What SingleStepTests r3000 contains (measured, `scripts/survey_sst.py`) `tests/detectors/sst-r3000-survey-2026-11-25.txt`: 55 files x 1000 = 55,000 cases. 13,621 start with a load pending, 3,377 start in a branch delay slot; one instruction fetch per case. **Its README says exceptions are disabled and there are no address errors (C3), but CAUSE changes in 5,462 cases**: ADD 248, SUB 236 (overflow), LH 486, LHU 489, LW 767, SW 732, SH ("SHL") 506 (alignment), BREAK 999, SYSCALL 999. So the corpus does test exception entry, and its README is stale. LWL/LWR/SWL/SWR make 1,235-1,265 bus accesses per 1,000 cases (more than one access in some cases: U18). The README's JSON example and `transcode_json.py`'s comments name the two delay records inconsistently; survey_sst.py documents the layout it uses. ## The rung ladder (exit tests) | Rung | Judge | Exit test | | --- | --- | --- | | 0 | tooling | decode table generated from psx-spx's encoding tables and checked against the LR33300 ch.3 lists; every primary/SPECIAL/REGIMM/COP slot named or RI; `survey_sst.py` and the MAME recipe run | | 1 | SingleStepTests r3000 (tier 5) | 55,000/55,000 final states and bus actions, delay records included; every disagreement explained in the docs, not "fixed to match ares" | | 2 | MAME (tier 5) | BIOS boot from reset through the shell's first frames (the 566,120 instructions of the recipe, then 10 s) and PeterLemon's CPUTest EXEs: register writes identical up to the first timing-dependent interrupt; each divergence classified | | 3 | PeterLemon CPUTest, amidog psxtest_cpu/cpx (tier 3) | all PASS **on psx-python's board** (they need the GPU to print): the core's first cross-repository rung; failures are core issues raised here | | 4 | GTE: ps1-tests gte/test-all (1150), amidog psxtest_gte, MAME register traces | 1150/1150; amidog GTE all PASS including its timing page | | 5 | timing: ps1-tests access-time and amidog timing pages, LR33300 load scheduling | the core's charged cycles reproduce `access-time/psx.log` within its measurement noise (board supplies the bus costs); MULT timing settles C1 | | 6 | seeded faults | each one-line fault in a list (load delay off by one, BD not set, TAR not written, the i-cache refill wrapping, the GTE division exact instead of UNR, the COP2-interrupt EPC) fails at least one rung | Rungs 3-5 need the board: they are run from psx-python with this core pinned, the way the other boards find core corners. ## Rows for emulator-lineage's sources.md (proposed; that file is not ours to edit tonight) | Source | Terms | Verdict | Notes | | --- | --- | --- | --- | | psx-spx (nocash; psx-spx.github.io Markdown edition) | none; README: no licence acquired, partly copied or rephrased from Sony's confidential SDK documents | facts only (cite file and section); not clean-room | the PlayStation family's main document | | ogamespec/psxdev | CC0-1.0 | code OK; its `/reverse/` holds a BIOS archive and decompiled Sony libraries: never fetched | die photos, chip data sheets (LR33300, MC68HC05L16, CXD1199, CXD2545...) | | LSI LR33300/LR33310 User's Manual (ch.1-4 scans) | LSI document | facts only | the CW33300's sibling | | SingleStepTests/r3000 | MIT | code OK | generated by ares (ISC) | | PeterLemon/PSX | no licence | run only, nothing committed | "only tested on a real PSX" | | amidog PSX tests (psx.amidog.se) | no licence | run only, nothing committed; disc images carry Sony licence sectors | | | JaCzekanski/ps1-tests | MIT | code OK (with notice) | expected `psx.log`/`vram.png` outputs | | pcsx-redux/nugget OpenBIOS | MIT | code OK (with notice) after a per-file check | a free BIOS; a separate repository from PCSX-Redux (GPL-2.0) | | spicyjpeg/ps1-bare-metal | MIT | code OK (with notice) | examples for our own probe programs | | Avocado (JaCzekanski) | GPL-2.0 | closed box only | | | DuckStation | CC BY-NC-ND 4.0 (was GPL-3.0) | closed box only | | | PCSX-Redux | GPL-2.0 | closed box only | | | MAME psx device files | BSD-3-Clause per `license:` line (driver GPL-2.0+) | closed box (Aubrey's brief) | per-file lines recorded in mame-oracle.md |