# Validation: the oracles and the rung ladder Tiers (Phase 0 rules): 1 hardware-captured > 2 manufacturer documents > 3 community documents and tests that pass on real hardware > 4 HDL reimplementations > 5 emulators. A low tier is a **detector**, never a **judge**. **There is no tier-1 oracle for the VR4300 that we hold.** No die netlist or trace exists (n64brew shows a die *photograph*, not a model); we have no console. The strongest judges are tier-3 self-checking test ROMs written and run on real units by their authors; we trust their verdicts as theirs. ## The oracles | Oracle | Tier | Licence | Pin | Decides | Cannot decide | | --- | --- | --- | --- | --- | --- | | NEC VR4300 User's Manual U10504EJ7V0UMJ1 | 2 | NEC, all rights reserved: facts only, cite page | SHA-256 `bcf8fd85...` | semantics, encodings, interlock rules, documented cycle counts | the N64 deviations (SRA, MULT inputs, imprecise LDI), undefined cases, CP0 hazards on this part | | MIPS R4000/R4400 User's Manual, 2nd ed. | 2 | MIPS, all rights reserved: facts only | SHA-256 `075775a6...` | the architecture (TLB, exceptions, 64-bit modes) | anything pipeline- or cache-specific (8-stage part, secondary cache) | | n64brew wiki: VR4300, COP1, MIPS III instructions | 3 | CC BY-SA 4.0: facts only | revisions in `scripts/pinned_wiki.json` | the deviations it reports, the FPU special cases | its own uncited claims stay HYPOTHESIS until a test ROM agrees | | nemu64-test (thelemmy) and its predecessor n64-systemtest (lemmy-64) | 3 | MIT: code OK with notice | `9a8b9f7`, `196f542` | 1,125 listed tests: arithmetic 396, RSP 243, COP1 88, cache 53, TLB 46+11, COP0 44, exceptions, traps, timing 18; self-checking verdicts | only what its author measured; must be **built** (cargo + nust64): not built tonight | | krom's N64 tests (PeterLemon/N64: CPUTest/CPU, CP0, CP1, Exceptions) | 3 | Unlicense | `7085543` | per-instruction results on screen, hardware photos (PNG) beside many | timing; verdict by picture compare, so a renderer is needed (or a RAM-result read) | | Dillon's n64-tests (26 per-instruction ROMs) | 3 | none stated: run only | release zip SHA-256 `28ee0af7...` | ALU results; a pass/fail convention ("young emulators") | everything else | | N64-Cache-Emulation-Tests (Mr-Wiseguy) | 3 | none stated: run only | `149b01d` | whether caches are modelled | cycle costs | | bigbass1997/n64-tests | 3 | BSD-2-Clause | `68e4a9f` | SI and timing probes | | | cen64 `vr4300/` | 5 | BSD-3-Clause | `e0641c8` | a stage-by-stage comparator | nothing on its own | | ares `ares/n64/cpu/` | 5 | ISC | `6e67c8b` | a comparator (interpreter + recompiler) | nothing on its own | | MAME 0.285 `n64` (mips3 core) | 5 | GPL-2.0+/BSD-3 mix: closed box, run only | `/usr/games/mame` | register state per instruction of real code (mame-oracle.md) | timing: it charges **1 cycle per instruction** (measured: 1,000,000 traced instructions = 1,000,000 cycles) | | MiSTer N64 core (Robert Peip) | 4 | GPL-3.0: closed box | not pinned | a hardware-style reimplementation to run | the source is never opened | | mupen64plus, simple64, gopher64, Project64, Dillonb/n64 (dgb-n64), r64emu | 5 | GPL (mupen64plus GPL-2.0, gopher64 GPL-3.0, r64emu GPL-3.0); dgb-n64 no licence file | not pinned | nothing tonight: closed boxes only, never read | | Why nemu64-test is the centre: it is MIT (so its tests may even be cited line by line with notice), self-checking (no picture comparison), and covers the corners the manual does not (reserved CP0 registers, the COP2 behaviour, the hazards). Its author's expectations are tier 3: they say "on hardware"; we did not see the runs. ## The rung ladder (proposed; each rung has an exit test) | Rung | Content | Exit test (judge) | | --- | --- | --- | | 0 | decode table generated from UM Figure 16-1; registers; a bus interface; a pure-functional harness | every encoding of the figure decodes to its row; reserved rows raise RI or are phi as the figure says | | 1 | integer ISA, 32- and 64-bit, delay slots, likely branches, LL/SC, unaligned loads, the N64 deviations | Dillon's 26 ROMs pass; krom CPUTest/CPU all match their photos (through the board or a minimal frame-buffer reader); MAME register lockstep over krom's ADD..XOR runs from the entry point | | 2 | CP0, exceptions, interrupts, TLB | krom CP0 and Exceptions; nemu64-test `cop0`, `tlb`, `tlb64`, `exception_instructions`, `traps`, `overflow_exception`, `address_error_exception`, `privilege`, `cop_unusable` | | 3 | CP1 | nemu64-test `cop1` (88); krom CP1 | | 4 | caches and the write buffer, CACHE ops | N64-Cache-Emulation-Tests; nemu64-test `cache` (53) | | 5 | timing: interlocks, multiply/divide, FPU latency, exceptions' cost, cache-miss costs with a fixed-latency bus | nemu64-test `timing` (18) and the `cycle`/`timing` feature builds; UM chapter 4 figures reproduced | | 6 | CP0 hazards | nemu64-test `cop0hazard` feature build | Rungs 1-6 need a minimal board (RDRAM, a PI that serves the ROM, the MI interrupt, a frame-buffer reader or the test ROM's result in RAM): that is n64-python's M1, so the core and the board's M1 are built together, as sh2-python and sega32x-python were. ## What no judge decides - The multiplication bug's exact conditions (no test ROM we hold; U9). - Behaviour in the undefined CACHE combinations and on uncached addresses (U12). - SysAD external requests (U13). - Anything stage-internal (why a stall is where it is) beyond its total.