# Validation: the oracle ladder Tiers (Phase 0 rules): 1 hardware-captured > 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**. **Plainly: no hardware-tier oracle exists for the V810.** Nobody has published V810 bus captures or a die analysis; no test program with verdicts captured on a real Virtual Boy or PC-FX was found. The best judges are NEC's manuals (tier 2) and, for the NVC's additions, the Sacred Tech Scroll (tier 3). Everything else finds differences. ## The oracles | Oracle | Tier | Licence | Pin | Decides | Cannot decide | | --- | --- | --- | --- | --- | --- | | ARCH, HW, DS (NEC manuals) | 2 | NEC copyright, facts only | SHA-256 in `scripts/pinned_files.json` | encodings, semantics, flags, exceptions, reset, cache organisation, minimum clocks, bus cycles | stage timing, FPU/DIV data-dependent clocks, the NVC additions | | STS (Guy Perfect) | 3 | none stated: facts only | live document, SHA-256 of the 2026-11-26 fetch | the NVC's instructions, sysregs 29-31, PIR, the cache dump format, FPU flag priority; many editor's notes mark what is untested | anything its own notes call research needed | | Pizza Gauntlet (PVB) | 5 until a hardware verdict exists | none stated: run only | `pizza-gauntlet` 0c214e4 | that a core passes its self-checks (it halts at the first failure) | correctness of its own expectations (no statement that it passed on hardware) | | MAME 0.285 `v810` (`cpu/v810/v810.cpp`, `v810dasm.cpp`: BSD-3-Clause lines) | 5 | closed box tonight | MAME 0.285 binary | a trace to compare against: register writes per instruction, the disassembly text | timing (C7), PIR and TKCW (it reads 0 for both from reset: OBSERVED, against ARCH 2.2.5-6) | | Mednafen 1.32.1 (`vb`, `pcfx` modules) | 5 | GPL-2.0: closed box, built only in emu-tools-gpl2 | the tarball emu-tools-gpl2 pins (SHA-256 `de7eb94a...`) | a second trace and a timing opinion | anything as a judge; **not built tonight**: emu-tools-gpl2's `build.py` knows only `pce` and `ss` (open decision 5) | | pvbemu (Guy Perfect, `core/cpu.c`) | 5 | Zlib: may be read, notice kept | `pvbemu` 08fb65c | a readable second opinion from the STS's author | hardware truth | | shrooms-vb-core (PVB) | 5 | **no licence stated** (no LICENSE at its root; checked 2026-11-26): not fetched | | | | ## The rungs (proposal; exit tests) 0. **Decode, disassembler, assembler.** Every opcode and sub-op from ARCH appendix C and STS "Opcode Map" in a committed decode table generated from facts (as sh2-python's `gen_decode.py`); the disassembler matches MAME's text on the recipe's 1.08 M lines (mnemonics and operands, modulo MAME's spellings: `INH`, `OUTH`, `LDW`...). A small assembler in the package, enough for `gauntlet.s` and the probes (open decision 4). 1. **Instruction semantics.** Per-instruction tests written from ARCH 5.3's pages (flags, sign extension, r30 results, exceptions and their restore PCs), and the FPU and bit-string cases of [fpu-and-bitstrings.md](fpu-and-bitstrings.md). 2. **Pizza Gauntlet** reaches `done` on the NVC configuration (a detector: a failure is triaged against ARCH/STS, not "fixed to pass"). 3. **MAME lockstep.** Register state after each instruction against MAME's traces: the PC-FX BIOS from reset (2 frames, 443,321 instructions) and Mario's Tennis from reset (3 frames, 639,093). Differences are triaged; PIR and TKCW are known MAME gaps. 4. **On the boards.** virtualboy-python boots commercial carts; pcfx-python runs the BIOS to its menu. 5. **Timing.** The cycle model of [cache-and-timing.md](cache-and-timing.md) reproduces ARCH tables 5-11..5-14 for their stated conditions (cache hit, no hazard, no wait); everything else FITTED until probes exist. 6. **Seeded faults**, each caught: a carry from SUB inverted; MOVEA zero-extending; LD.H zero-extending; DIV leaving r30 unchanged; unaligned access trapping instead of masking; a store updating the i-cache; CEC not clamped to 128; the instruction after the cache-enabling LDSR fetched through the cache; a bit-string resume losing r28; FUD raising an exception; restore PC = next PC for zero division. ## Probes (queued; we have no hardware) Programs a Virtual Boy owner could run, each printing or storing a result: the timer counting a loop of N copies of one instruction (clock counts, load pairing, store rule); cache sub-block fills (time a jump into the second half of a block after a clear); bit-string bus traffic seen through VIP registers; FPU overflow results; sysreg 29-31 behaviour; XB/XH with reg1 != r0. For the family's PROBE-QUEUE, not for this phase. ## What ran in this phase | Run | Result | | --- | --- | | `scripts/fetch_references.py`, then `--verify` | 6 of 6 files, 2 of 2 repositories, all matching their pins | | `scripts/mame_trace.py --machine pcfx --bios v101 --frames 2` | 443,321 instructions in 2 frames (0.03343 emulated s) from reset | | `scripts/mame_trace.py --machine vboy --cart "Mario's Tennis" --frames 3` | 639,093 instructions in 3 frames (0.05995 s) from reset | | `scripts/mame_trace.py --machine pcfx --frames 1 --regs PSW,R1,R31,SP,EIPC,ECR,CHCW,TKCW,PIR` | 283,986 lines; symbols accepted; PIR and TKCW read 0 |