# Validation: oracles, tiers, and the ladder Tiers (the Phase 0 method): 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**. We have no Spectrum hardware (Aubrey's inventory: a Super Famicom and an early Genesis), so no probes. **Tier 1 that exists:** (a) the 6C001 die netlist (structure only; its contention arbiter is unresolved by its own author); (b) photographs and videos of the collection's test programs running on named real machines (a Spectrum + 128K with ULA 7K010E5, grey +2s, a 48K Issue 6A with 6C001E-7, several 48Ks for Snow48), which are hardware-captured verdicts for exactly those programs on exactly those units. Where a test has such a capture, its expected picture is a tier-1 judge for that model; where it has only the author's expected picture, it is tier 3. ## Oracles | Oracle | Tier | Terms / verdict | Pin | Decides | Cannot decide | | --- | --- | --- | --- | --- | --- | | emu-russia/ula (6C001 netlist, HDL, Python gate simulator) | 1 (structure) | CC0-1.0: code OK; photographs by 4e71 used with permission | `65defe9` | counters, fetch order, port FE logic, the arbiter's inputs, pixel and attribute pipeline | stall lengths (async ring unresolved, C8); other ULA revisions; gate arrays | | Real-hardware captures in the collection (photos/videos per test, named units) | 1 (for the test shown) | the wiki's text: none stated; photos are their takers'; facts only | wiki `e755b3e` | the expected picture for that test on that model | anything the test does not exercise | | Patent EP0107687B1 (Sinclair; Altwasser) | 2 | public patent document | SHA-256 `0f6ad6a4...` | the intended display/memory-sharing scheme | as-built timing | | Amstrad +3 manual ch. 8 (parts 24, 27, 30) | 2 | (c) Amstrad, documentation welcomed online (1999 statement) | live pages, SHA-256 in pins | +2A/+3 ports, contended pages, duty, FDC ports, disc format | T-state detail | | NEC uPD765 data sheet (1978), AN-08 (1979) | 2 | manufacturer: facts only | SHA-256 `e8b07db2...`, `c1f9faf4...` | FDC phases, commands, status, timing | the +3's wiring (U6) | | comp.sys.sinclair FAQ (48K, 128K, formats, z80 format) | 3 | (c) FAQ group, whole and unmodified only: facts only | live pages | frame and contention numbers, breakdown table, ports, tape | its admitted unknowns (U4); its slips (C5, C7, C9) | | Sinclair Wiki | 3 | CC BY-SA 4.0: facts only | live pages | the same, with later corrections (+2A/+3 gate array, 7FFD read crash, contended I/O) | where it disagrees with the FAQ (C1, C3, C5) | | Woodmass ("Woody") tests: 48K NEC Contention Suite, Contention, IR Contention (48K/128), IO Contend, Float48K/128K/+3, +2A/+3 Paging, Tape Test, TZX Test Files | 3 (1 where captured) | none stated: run only, nothing committed. Four of his other tests are GPL-2.0 (Snow Hold, MemTest+3, Out7FFC, Snap Test): not fetched, run from emu-tools-gpl if wanted | SHA-256 per file | contention per instruction class, IR contention, I/O contention, floating bus, paging, tape blocks | early/late on its own (needs the right machine setting) | | azesmbog tests: ULA 48 Simple, ULA 128 Timing, ULA 128E +3, Snow48 | 3 (1 where captured: 7K010E5 128K, +2, Snow48 x8) | none stated: run only | SHA-256 | contention pictures per model, NMOS vs CMOS, snow | - | | ZXSpectrum4.net timing tests 48K / 128K (Richard and Tim Butler) | 3 ("we ran the tests on real Spectrums"; 1 for the units on the wiki: a 6C001E-7 48K, six 128K results) | none stated ("All other intellectual material remain property of their copyright owners"): run only | SHA-256 | 35 instruction groups x contended/uncontended: loop count, R, SP per frame; early/late | which rule produced a mismatch (needs FAQ48's breakdown beside it) | | Ramsoft Floating Spy; Hikaru +2A/+3 Floating Bus Test, Snow | 3 | none stated ("(C) 2002 RAMSOFT"; Hikaru none): run only | SHA-256 | the floating bus per model, snow phases | - | | Patrik Rak's Timing Test (v0.2, v0.3) | 3 | **GPL** by the collection's page (the archive itself states none; based on Jan Bobrowski's zxtests): not fetched into this MIT repository; run from emu-tools-gpl | not pinned here | contention timing | - | | Fuse Test (Philip Kendall) | 3 (hardware results on the wiki) | GPL (part of Fuse): closed box; not fetched | not pinned | ULA timing | - | | raxoft/z80test | 1 for the Z80 (values captured on a real 48K's Zilog NMOS Z80) | MIT | in z80-python | the CPU's flags, WZ, Q | anything ULA | | MAME 0.285 `spectrum`, `spec128`, `specpls2`, `specpl2a`, `specpls3` | 5 | closed box (binary run only) | installed | boot paths, port write streams, pictures | timing (whether and how it contends is not checked), anything the tests decide | | Fuse, other GPL emulators (Spectaculator is commercial) | 5 | closed box, not built here; from emu-tools-gpl only | - | differences | anything | | MiSTer ZX Spectrum and other FPGA cores | 4 | GPL (typical; check each): closed box | - | differences | anything | ## The ladder (rungs and exit tests) | Rung | Content | Exit test | | --- | --- | --- | | R0 | 48K boots the ROM to the copyright screen | the picture equals MAME's frame 300 (`mame_trace.py --frames 300`) pixel for pixel; the first OUT is `07FE <- 07` as MAME logs it | | R1 | Frame timing and /INT | Frame (Woodmass), Time to First INT (Helcmanovsky, MIT), INT Tester give the expected pictures for early and late settings | | R2 | Contention by table + callbacks (cpu-core.md N1) | for every instruction, the board's per-T-state stall trace equals the breakdown applied by hand (the Wiki's ULA column where it and FAQ48 differ, C13/C14, each such row confirmed in R3); 48K NEC Contention Test Suite all screens as expected | | R3 | Hardware-verified timing suites, 48K | ZX Spectrum Timing Tests 48K (all 35 groups, early and late), IR Contention, IO Contend, Contention (48K-edited BASIC as the wiki says) | | R4 | 128K/+2 and +2A/+3 | Timing Tests 128K, ULA 128 Timing Test (matches the 7K010E5 capture), ULA 128E +3 Test (2012-10-07 build), +2A/+3 Paging Tests; settles C1 and C3 | | R5 | Floating bus and snow | Floating Spy (48K, 128K), Float48K/128K/+3, +2A/+3 Floating Bus Test, Snow, Snow48; settles C9 | | R6 | Tape | the 48K ROM loads a TAP at real speed through EAR (no trap); TZX Test Files and Tape Test pass | | R7 | AY | a register-write stream from MAME's spec128 boot replayed into ay8910-python gives the same register file; one 128K tune by ear (sound good enough) | | R8 | +3 FDC | +3DOS boots, CAT of a DSK image matches MAME's screen; U6 settled from the schematic | | R9 | Seeded faults | one-line faults in the contention table, the origin, the floating-bus phase, the paging decode, each caught by a rung above | ## Provenance Nothing in this repository was written with an emulator's source open. One test program's archive (Patrik Rak's Timing Test v0.3) was downloaded to a scratch directory outside the repository and its file list and the first lines of `timing.asm` and `Makefile` read, to look for a licence notice (none found; the collection's page says GPL); it is not kept or used here. Author respect: see provenance.md.