# Validation: the oracle ladder Tiers: 1 hardware-captured > 2 manufacturer documents > 3 hardware-corrected community documents and tests > 4 HDL reimplementations > 5 emulators. A low tier is a **detector**, never a **judge**. "Matches MAME" is never a hardware claim. ## Per subsystem: the best judge available | Subsystem | Top tier in hand | Best judge | Detectors | What nothing decides | | --- | --- | --- | --- | --- | | 6502A / 6512A | 1 | 6502-python's own ladder (perfect6502 die simulation, SingleStepTests, captures) | MAME | - | | G65SC12 (Master) | **1** | w65c02-python's ladder: captures of a real BBC Master's G65SC12 | MAME `bbcm` | - | | Cycle stretching | 2 now, **1 available** | SM85-1 figure 1.2, SMBP 5.2 (2); `O.TIMINGS` and the VIA outputs from a real Model B (B2T, 1) | none usable (MAME does not stretch: below) | which Master devices stretch (C2) | | 6522 VIAs | **1** | B2T drive 0: 24 outputs from a real BBC Micro (timers, interrupt polling, PB6/PB7, ACR modes, CA/CB modes) | MAME; VICE's VIA programs (3, if a VIC-20 host existed) | CMOS 65C22 differences on the Master (U10) | | Addressable latch, slow data bus, keyboard | 2 | AUG 23, SM 3.6-3.7 | MAME | keyboard link positions (to read from the circuit) | | 6845 | 2 | HD (HD6845S), CRTC (MC6845) | MAME | which makers' parts were fitted (U1); mid-line clock switch (U2) | | Video address path, wrap-around, mode 7 map | 2 | SM 3.3, AUG 18.10-18.13, 23.2, schematics | MAME | the RA3 blanking mechanism (HYPOTHESIS until read from the schematic) | | Video ULA | 2 (registers only) | AUG 19, SM 3.3 | MAME pictures; B2T drive 5 images (provenance unknown) | write-to-effect latency (U6), illegal combinations (U7), power-on state (U8) | | SAA5050 | 2 | SAA, SM 3.3 | B2T teletest_v1 images (provenance unknown); MAME | the BBC's exact DEW/GLR/CRS wiring (U4) | | SN76489 | 1 (one capture) | sn76489-python's ladder (TI manual; Kortink's BBC capture) | MAME audio | - | | 8271 | 2 | FDC8271 | MAME | internal command timing (U11) | | WD1770 | 2, one tier-1 case | WD86; B2T drive 3 (one test, real-machine output) | MAME | - | | uPD7002, MC6850 | 2 | ADC, ACIA | MAME | - | | Serial ULA, tape | 2 (registers) | AUG 20.9, SM 3.5 | MAME | the data separator's behaviour (U12) | | Firmware boot (MOS, BASIC, DFS) | - | the firmware itself: it is a program; running it to the BASIC prompt is the test | MAME boots `bbcb`, `bbcbp`, `bbcm` to BASIC (below) | - | **Plainly: no hardware-tier oracle exists for the 6845, the Video ULA, the SAA5050 or the serial ULA.** The board's video milestones are judged by Acorn's and the chip makers' documents and by real programs running at all; pictures are compared with detectors and every difference is triaged, not fixed to match. The exception, and the reason this board can be timing-exact where it matters most, is B2T's real-hardware VIA and timing outputs. ## How B2T's outputs are used Each `T.*` program on drive 0 is a BBC BASIC test that writes its results with `*SPOOL`; its `O.*` file is that output saved from a real BBC Micro (B2T README). The board's rung: run the test program (load the tokenised BASIC file from the test volume into a running BASIC, as a disc or a memory poke; the loading mechanism is the board's business), capture the spooled text (by watching OSWRCH or the spool file), and compare it byte for byte with `O.*`. 24 test/output pairs on drive 0 (`TIMINGS`, `VPOLL`, `VTIMEOU`, `VTIMERS`, `VIA.AC1`-`AC7`, `VIA.C1`-`C5`, `VIA.I1`, `VIA.I2`, `VIA.PB2`, `VIA.PB6`, `VIA.PB7`, `VIA.T11`, `VIA.T21`, `VIA.T22`; `RTWT1` has no output), one 65C02 pair on drive 1 (`NOP1`, a Master matter), one 1770 pair on drive 3, two Tube outputs on drive 4. The programs are GPL-3.0: run as stimuli, never copied into this repository; their outputs are measurements of a real machine. ## What ran in this phase | Run | Count / result | | --- | --- | | `scripts/fetch_references.py --record`, then `--verify` | 21 of 21 pinned files and 1 of 1 repository present and matching | | OCR of the TIFF data sheets (tesseract, 2 processes, CPUs 24-31) | 100 pages | | `scripts/census.py firmware` | 15 of 15 MAME romsets present; every file hashed by SHA-1 ([census.md](census.md)) | | `scripts/census.py softlists` | 10 BBC software lists, 3,544 entries (MAME 0.285) | | `scripts/census.py library` | no BBC disc or tape set under NO_INTRO_DIR or MAME_ROMPATH | | `scripts/mame_trace.py --snap 3` on `bbcb`, `bbcbp`, `bbcm` | all three boot to the BASIC prompt ("BBC Computer 32K / Acorn DFS / BASIC" on the B; "Acorn MOS / Acorn 1770 DFS / BASIC" on the Master) | | `scripts/mame_trace.py --frames 50` on `bbcb` | 570,564 instructions, 2,003,212 cycles, 13,418 SHEILA writes and 937 SHEILA reads in 1 s from reset; first instruction at &D9CD (OS 1.20's reset entry) | ## Seeded faults (for the board's gate later) Each lockstep or output comparison must catch one-line faults. Candidates particular to this machine: a slow access charged a fixed 1 extra cycle (instead of 1 or 2 by phase); the Video ULA or the ROM latch treated as slow; the addressable latch updated on the port write instead of the next 1 MHz edge; BREAK resetting the system VIA; the wrap-around adder applied when MA12 is clear; mode 7's address taken from MA10-MA13; the B+ shadow flag set by data accesses instead of opcode fetches; the palette's physical field not inverted.