# Validation: oracles, tiers, and the milestone ladder Tiers: 1 hardware-captured or die-level; 2 manufacturer documents; 3 hardware-corrected community documents and tests verified on real units; 4 HDL reimplementations; 5 emulators. A low tier is a **detector**, never a **judge**. **No tier-1 behavioural oracle exists for this board** in our hands: psxdev's die photographs and board tracing are tier 1 for structure and wiring only; nobody has captured the GPU's or SPU's outputs from a console at the bus level in a form we can use, and we have no hardware. The judges are tier-3 test programs whose expected outputs were recorded on consoles, and psx-spx. ## Oracles | Oracle | Tier | Licence / verdict | Pin | Decides | Cannot decide | | --- | --- | --- | --- | --- | --- | | psx-spx (nocash; Markdown edition) | 3 | none; partly from Sony's SDK documents: facts only, not clean-room | `6d7d1bc` + nocash's page (live) | register maps, command sets, many observed timings | its "?"s | | psxdev (ogamespec) | 1 (structure) / 2 (the chip data sheets in `docs/`) / 3 (wiki prose) | CC0-1.0 (the data sheets are their makers': facts only); `/reverse/` never fetched | `d88b76f` | chips, revisions, pins, clocks, the sub-CPU's memory map and wiring | behaviour | | ps1-tests (JaCzekanski) | 3 (`vram.png`, `psx.log` presumed captured on consoles; U13 in r3000a-python) | MIT: code OK (with notice) | `f727802` + release build-158 (SHA-256 5de0e82...) | GPU pixels (18 tests), GPUSTAT, MDEC pictures and status, DMA (OTC, chopping, chains), SPU transfers, timers, CD stat bits, bus access costs | anything without a recorded output (benchmarks are measurements to fit) | | amidog psxtest_gpu 1.7 + demos (irq, no_code, pipe_line, where_am_i, tajmiing, resolution) | 3 (Tajmiing tested on SCPH-7002, SCPH-102, SCPH-7501 per its readme) | no licence: run only; disc images hold Sony licence sectors: never committed | SHA-256 in pinned_files.json | GPU status, FIFO, caches, offsets, mid-line display effects | - | | PeterLemon/PSX GPU, SPU, MDEC EXEs | 3 ("I only test with a real PSX") | no licence: only the README and prebuilt EXEs are fetched; run only | `6d20c13` | rendering by eye/picture; SPU by ear | exact pixels unless a console picture exists | | OpenBIOS (pcsx-redux/nugget) | n/a (a BIOS, not an oracle) | MIT | `9949c24` | lets tests run without a Sony BIOS | compatibility (its own list) | | MAME 0.285 psx | 5 | closed box | installed binary | I/O write streams, pictures, long runs | timing, exact pixels | | Mednafen, PCSX-Redux, Avocado (GPL-2.0); DuckStation (CC BY-NC-ND 4.0, GPL-3.0 before 2024) | 5 | closed box only, never read; built only from emu-tools-gpl/-gpl2 if ever | not pinned | differences | anything | | The real BIOS and CD-controller firmware | the software itself (tier 1 for what the software does) | Sony's: never shipped, found through `$MAME_ROMPATH` | SHA-1s in bios.md | the BIOS's behaviour runs as itself (LLE); the CD firmware can referee the HLE controller (cdrom.md) | hardware timing | ## Milestones (exit tests) | M | Content | Exit test | | --- | --- | --- | | 1 | Bus and boot skeleton: RAM (mirrors per DRAM_CTRL), BIOS ROM, memory control, I_STAT/I_MASK, DMA registers, timers, a stub GPU that accepts commands, r3000a-python pinned | the MAME recipe's first 566,120 instructions agree with MAME's trace (register writes) and the I/O write stream of the first 0.03 s matches `io.log` in order and values | | 2 | EXE side-loading; GPU rasteriser and display; VRAM | PeterLemon CPUTest all PASS (r3000a rung 3); ps1-tests gpu/* `vram.png` exact (18 tests); amidog psxtest_gpu all PASS; the BIOS shell's picture after 600 frames equals MAME's (detector) | | 3 | DMA modes, OTC, MDEC, timers' sync modes, interrupts' edges | ps1-tests dma/*, mdec/* (pictures and status log), timer/timers logs; amidog psxtest_cpx | | 4 | CD-ROM HLE controller, disc images (.cue/.bin), XA and CD-DA, SBI | ps1-tests cdrom getloc stat bits; amidog's disc-image demos boot; the BIOS boots a disc to a game's first picture (a smoke list, never a sweep) | | 5 | SPU (voices, ADSR, reverb, IRQ, capture, CD input) | ps1-tests spu/*; PeterLemon SPU EXEs by recorded output; a smoke list's audio against MAME as a detector | | 6 | Controllers (digital, DualShock), memory cards | BIOS memory-card manager formats, saves and reads a card image; a smoke list's games accept input | | 7 | Timing pass: GPU busy model, MDEC throughput, CD delays, all FITTED values recorded | each FITTED constant names its data; Tajmiing displays as described | | 8 | Seeded faults | each one-line fault (an interrupt edge as level, DMA not stalling CPU reads, the GPU FIFO not counting E3h-E5h correctly, mask bit ignored, CD INT3 delay zero...) is caught | | later | LLE CD controller on a new mc68hc05-python core, as the HLE's referee | the HLE's responses and relative timings equal the LLE's on the smoke list | Smoke lists are hand-picked (Aubrey's rule: smoke before full sweep); full sweeps of the 10,904-disc set are his call and never run by Python. ## Sources met tonight, for emulator-lineage sources.md (proposed rows) Listed in r3000a-python docs/validation.md; in addition for the board: Sanyo memory-card MCU data sheet and the Sony chip data sheets in psxdev `docs/` (facts only); MAME's `psx_cd` firmware list (facts: names and hashes).