# Validation: the oracle ladder Tiers: **1** hardware-captured (measurements on a real board or chip; die-level work on the real netlist), **2** manufacturer documents, **3** hardware-corrected community documents and tests that pass on real hardware, **4** HDL reimplementations, **5** emulators. A low tier is a detector, never a judge. We own none of this hardware: no board probes. ## Per chip or subject: the top tier in hand | Subject | Top tier | Judges (tier) | Detectors | What cannot be decided | | --- | --- | --- | --- | --- | | 68000 core | 1 for the core (m68000-python's own ladder) | m68000-python's judges | MAME lockstep (5) | (the core's business) | | Board timing: frame, lines, interrupt | **1** (partial) | JT16's VSync 60.042 Hz (Analog Discovery), HSync 15.73 kHz (OSSC), vblank 2.427 ms (1); CM16B §4 line 223, auto-acknowledge (3) | MAME (5): 60.054 Hz | the interrupt's exact dot within line 223; why the measured rate is 0.02% under the clock arithmetic (C2) | | Memory map, 315-5195 registers, I/O, open bus | **3** | CM16B §2, CMP16 (3) | MAME (5) | the mapper's bus waits (U2: the only statement rests on an unattributed trace); the meaning of the `mm` bits beyond MacDonald's tests | | ROM boards and banking | **3** | CM16B §1, CMSND, CM5797 (3) | MAME (5) | 171-5704's pin A9 source (CMSND) | | Sprites (315-5196) | **3** | CM16B §3, CMP16 (3) | MAME (5) | per-line sprite capacity and overflow (U8); the zoom write-back bits (U7); exact zoom skip pattern | | Tiles, text, scroll, priority (315-5197) | **3** | CM16B §6-§8 (3) | MAME (5) | the unknown bits marked `?` in his tables | | Palette, shadow/highlight, flicker | **3** | CM16B §5 (3) | MAME (5) | the shadow and highlight levels (U9); flicker's exact pixel | | 16B sound decode and latches | **3** | CMSND (3) | MAME (5) | whether reading the latch clears /INT (U10); the Z80's clock (U1) | | uPD7759 | **2** for pins, modes, timing | D7759, DS7759, DS775X, UM7756, NEC89 (2) | MAME `upd7759.cpp` (5, BSD-3, unopened); jt7759 (4, GPL-3.0, not built) | **the ADPCM decoder and data stream** (U11): no tier 1-3 source | | uPD7751 and the 16A sample path | **3** for the wiring; 2 for the part | CMP16 (3), D7751 (2) | MAME (5) | the 7751's internal program is Sega/NEC firmware in MAME's sets (run, never committed) | | YM2151 on this board | ym2151-python's ladder (DIE: IKAOPM) | CMSND/CMP16 wiring (3) | MAME (5) | (the core's business) | | 8751 MCU (core) | **2** | MCS51 (2) | MAME `i8051.cpp` family (5, BSD-3, unopened) | instruction-level corner cases: no hardware-captured MCS-51 suite found yet | | 8751 on the board | **3** | CMP16 wiring, CM16B §9 (3) | MAME traces (5) | Sega's programs for 3 machines are not dumped (census); MAME simulates them | | FD1089/FD1094 | **3** for behaviour around it | CM16B §9, CM18, AHFD (3) | MAME (5, BSD-3, unopened); MAME's decrypted sets | the decryption algorithm and its state rules (U12) | | MC-8123 | **3** | CM16B §9 (3) | MAME (5) | its algorithm | | System 18 row | **3** | CM18 (3); JT18 (4) | MAME (5) | (later) | **No hardware-tier oracle exists** for the video chips' fine timing, the mapper's waits, the uPD7759's decoder or the FD1094: tiers 3 and 5 meet there. ## The board's gate (from the first milestone) 1. Unit tests of every documented fact above (tag DOC, citing the note and section). 2. MAME lockstep of the 68000 on plain sets (`shinobi` 16A, `altbeast`-family plain sets and `goldnaxe1d` 16B): the board's 68000 instruction stream against `mame_trace.py`'s, `0 unexplained` differences over N frames (m68000-python's 24.6 M-instruction System 16B lockstep is the precedent). 3. Z80 lockstep on the same sets (`--cpu sound`), the sound command times included. 4. Pictures against MAME snapshots (`--snap`) with every difference triaged against tiers 1-3. 5. Smoke list before any sweep (Aubrey's rule): the problem sets (8751, FD1094 decrypted, MC-8123 plain siblings, the 171-5797 math chip, Riot City's word writes to the mapper) and well-behaved ones (Shinobi, Altered Beast, Golden Axe, Tetris).