# Validation: the oracle ladder Tiers (the family's method): 1 hardware-captured or die-level, 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 console probes. ## Top tier per chip | Chip | Top tier available | What | Gap | | --- | --- | --- | --- | | 6510 | 1 inherited for the 6502 core (perfect6502 netlist runs in 6502-python); 3 for the port and C64 corners (Lorenz 2.15, VICE CPU tests) | | no die model of the 6510's port | | VIC-II | **3** (VIC, VICE VICII tests with hardware notes) | | **no die-level model**; Bauer's own words: "speculative ... a descriptive model" | | SID digital | 1 in principle (perfect6581's netlist) but its provenance is unsettled: **3** in practice (VICE SID tests reading OSC3/ENV3) | | combined-waveform tables; netlist decision | | SID analogue | **none above 5** | | no permissively licensed captures of real 6581/8580 output (U6); "good enough" rule | | CIA 6526/8521 | 3 (Lorenz 2.15, VICE CIA tests), 2 (CIADS, PRG appendix M) | | old/new CIA expectations to separate by readme | | PLA | **1** (PLA: read out of real chips, a CSG PLA reverse engineered to transistor level) | | REV2 logic undumped (U2) | | 1541 | 2 (DSM, CAT) and 3 (VICE drive tests) | | read/write gate array behaviour at the bit level | | VIA 6522 | 2 (CAT; R6522 data sheets via vectrex-python's pins) and 3 (VICE `drive/viavarious`, vectrex-python's VIC-20 VIA tests) | | | ## The ladder of runs | Rung | Run | Judge (tier) | Detector | | --- | --- | --- | --- | | L0 | unit tests of documented facts: PLA logic table rows, register maps and mirrors, CRT parsing, the VIC's border comparison values and access table per chip type | PLA (1), VIC (3), PRG (2) | | | L1 | **boot lockstep**: the 6510's instruction stream from reset to the READY loop (593,433 instructions, cycle 2,128,094 on NTSC) against MAME's trace, PC and registers per instruction | the KERNAL itself, running | MAME (5) | | L2 | **picture**: the READY screen, pixel for pixel (colour indices), at a fixed frame | VIC (3) for every border and display-window coordinate | MAME snapshot (5) | | L3 | **Lorenz 2.15**: the self-checking suite (CPU, CIA, VIC timing, port) | Lorenz (3, written to pass on a real C64) | | | L4 | **VICE test list, exit-code cases** (1,094 of the 1,544 C64 entries): debug-cartridge register $D7FF behind a test switch, $00 pass, $FF fail | each test's readme decides its tier: hardware-verified ones are judges, the rest detectors | VICE x64sc results, if built in emu-tools-gpl | | L5 | **VICE screenshot cases** (313): our picture against the reference PNG (pepto palette, default borders) | only where the readme says the picture matches a real machine | the PNG itself otherwise (5) | | L6 | **1541 lockstep** (in c1541-python if decision 2 says so): the drive's stream for 1 s of power-on (283,621 instructions) against MAME's; then `drive/*` tests; then LOAD"$",8 through the IEC socket | DSM (2), drive tests (3) | MAME (5) | | L7 | **cartridge smoke list** from the No-Intro set: one image per CRT type (22 types), problem images first (the 11 short-CHIP images, the raw and misnamed ones), plus well-behaved games (the smoke-gate rule) | each cartridge reaches its title | MAME (5) | Full library sweeps only when the board might be ready (Aubrey's smoke-sweep rule); failures become the next smoke list. ## What "pass" means here "The board matches MAME" is never "the board matches a C64". L1 and L2 are detector runs: a difference is triaged against VIC, PRG and the tests, and MAME is wrong sometimes. L3-L5 count as hardware evidence only test by test, after reading each readme for how its expected value was obtained. ## Proving the gate can fail Seeded one-line faults the gate must catch, to set up with the gate at M1: the bad-line condition off by one line; BA's three-cycle lead shortened to two; the raster compare in cycle 2 instead of 1; the PLA's CHAREN term inverted; a CIA timer reloading one cycle late; the 6510 port's addresses swapped (C1's misprint, as a fault).