# 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 | | --- | --- | --- | --- | --- | | Z80 cores | the cores' own ladders (z80-python: ZEXALL, FUSE, hardware-captured suites) | z80-python's judges | MAME lockstep (5) | (the cores' business) | | SN76489A | sn76489-python's ladder (tier 1 for the discrete chip's noise: Kortink's capture) | its judges | MAME (5) | (the core's business) | | Board clocks, screen timing | **5** | none | MAME (5): 4 MHz, 10 MHz dots, 640 x 260, 60.096 Hz | the crystal, a measured frame rate (U3) | | Memory and port maps | **5** | none | MAME traces (5), OBSERVED | bank registers, collision registers, open bus (U5) | | Z80 PIO, 8255 behaviour | **2** | UMPIO (2); Intel's 8255 data sheet (to pin) | MAME (5) | how each is wired: register order, which port does what (U2) | | Video (tiles, sprites, palette, priority, collision) | **5** (4 when the MiSTer core is built) | none | MAME pictures (5); MiSTer HDL (4, not built) | almost everything (U10-U14); decision 2 | | Sound board wiring | **5** | none | MAME (5) | READY wiring, latch address, the timer interrupt's source (U4, U8) | | Opcode decryption (315-xxxx, 317-xxxx) | **5** | none | MAME's two views (5), measured | the algorithm on real parts; whether MAME's tables came from parts or from ROM analysis (U6) | | MC-8123 | **5** | none | MAME (5) | its algorithm; ArcadeHacker's promised write-up never seen | | 8751 core | **2** | MCS51 (2) | MAME's i8051 (5, BSD-3, unopened) | instruction corner cases: no hardware-captured MCS-51 suite known yet | | 8751 on the board | **5** | none | MAME traces (5) | its wiring and duties after the ROM check (U7) | **No tier 1-3 oracle exists in hand for this board.** Everything board-level rests on MAME, which is a detector. This is the board's main weakness and the reason for open decisions 1 and 2: a board document (MacDonald's notes if any, a schematic) or MAME's BSD-3 files read for facts would raise it. ## The board's gate (from the first milestone) 1. Unit tests of the documented chip facts (tag DOC, citing UMPIO, MCS51, the cores' specs). 2. MAME lockstep of the main Z80 on plain sets (`wboyu` PIO, `upndownu` and `regulusu` PPI, `chopliftu`, `wbmld` System 2): the board's instruction stream and port accesses against `mame_trace.py --ports`, `0 unexplained` differences over N frames (sms-python's 7.7 M instruction Flicky lockstep against MAME's SG-1000 is the family precedent). 3. Sound Z80 lockstep on the same sets, the command times included. 4. Pictures against MAME snapshots, every difference triaged; while no tier 1-3 video source exists, a difference is named, not judged. 5. Smoke list before any sweep (Aubrey's rule): the problem sets (8751, both decryption classes, MC-8123, Gardia "imperfect", the 2.5 MHz sound sets) and well-behaved ones (Wonder Boy, Flicky, Pitfall II, Monster Land).