# The oracle ladder for tlcs900h-python Tiers (family method): 1 hardware-captured, 2 manufacturer documents, 3 hardware- corrected community documents and tests run 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 TLCS-900/H anywhere we know of** (no hardware-captured single-step corpus like SingleStepTests' 8088/V20/80186 sets, no die study, no logic-analyser capture), and no tier-3 test ROM for the CPU either. The top tier is 2: Toshiba's documents. | # | Oracle | Tier | Licence / terms | Pin | Decides | Cannot decide | | --- | --- | --- | --- | --- | --- | --- | | O1 | Toshiba TLCS-900/H data book ch. 3 + appendices A-D (2001-03-16) | 2 | Toshiba's copyright; facts only, cite by page | 7 PDFs by SHA-256 (`pinned_files.json`), host nakardo/emu-docs `eeb087b` | registers, encodings, flags (defined ones), states per instruction, addressing, bus cycle shapes | undefined flags ("X"), queue refill order, the NGP SoC's peripherals, state length on the NGP | | O2 | "900, 900/L, 900/H CPU core different points" + the 900 manual (bitsavers TLCS900hv-is.pdf) | 2 | as O1 | SHA-256 | what changed from the 900 (modes, INTNEST, the 900's timing table for contrast) | the 900/H's own timing (O1 has it) | | O3 | TMP95CS64F/TMP95C265F data sheet (2003, a 900/H part; Judge names the CS64F as the NGP CPU's relative) | 2 | as O1 | SHA-256 (image only; OCR on demand) | a 900/H part's micro DMA, interrupt controller, timers as Toshiba built them | whether the NGP SoC matches it (U3) | | O4 | TMP95C061F data sheet (900, MAME's device name) | 2 | as O1 | SHA-256 | a 900 part's peripherals; MAME's chosen model | 900/H behaviour | | O5 | SingleStepTests/tlcs900h v1 (raddad772) | **5** | no licence file, README silent: **licence not verified**; used in place, never committed | `44b3c3c`, sparse: README + 6 forms | per-instruction register, flag and memory results **as ares computes them**, 2,076 forms x 1,000 cases | anything ares gets wrong; timing (see below) | | O6 | ares TLCS-900/H (`ares/component/processor/tlcs900h`) | 5 | ISC: readable, notice kept if anything is taken | `6e67c8b`, sparse | a readable second opinion; its comments flag the manual's own inconsistencies | hardware truth | | O7 | MAME 0.285 `tmp95c061` in the `ngp`/`ngpc` drivers | 5 | MAME is GPL-2.0+ as a whole: **closed box**, run only | the installed binary | an instruction stream with states from reset, in a real board context | anything MAME gets wrong; it is also a 900-flavoured model (C1) | | O8 | Mednafen's NGP core (NeoPop lineage) | 5 | GPL-2.0: closed box, built only in emu-tools-gpl2 if ever needed | not built | a third emulator opinion | as O7 | ## What ran in this phase - `python -I scripts/fetch_references.py --verify`: 11 files and 2 repositories, 0 problems (2026-11-26). - `scripts/ocr_references.py`: Toshiba's PDFs are scans without a text layer; OCRed page by page (tesseract, 300 dpi) into `reference/text/`. Facts quoted in the docs were read on the text and, where layout mattered (the flag register), on the page image. - `python -I scripts/survey_sst.py`: the six fetched SST forms (NOP, LD_R8_IMM8, CALL_N16, REG_B_FULL_DAA, REG_B_FULL_DIV_R, REG_B_FULL_MUL_R) parse to exactly 1,000 records each with no trailing bytes, so the README's format is right. **Every one of the 20,532 bus transactions has clock 0**: v1 records what is read and written, and in what order, but **no timing**. The states an instruction leaves unspent sit in the final state's `pic` field (ares's prefetch counter), so the suite cannot judge per-access timing even as a detector; it can judge results and the order of accesses (including ares's prefetch reads past the instruction). - `python -I scripts/mame_trace.py --driver ngpc --frames 3`: 66,779 instructions, 307,454 cycles, from reset at FF204A (see [mame-oracle.md](mame-oracle.md)). ## The ladder (rungs for the core) | Rung | Content | Judge | Detector | | --- | --- | --- | --- | | 0 | decode table: every first byte and operation byte to a form, size and length | O1 code maps (appendix C) | O6 disassembler, O7 disassembly | | 1 | per-instruction results for defined behaviour | O1 | O5 (all 2,076 forms; differences triaged against O1, never resolved toward O5 by default) | | 2 | timing: states per form from O1's lists as data; bus-access order | O1 | O7 (states between trace lines), O6 | | 3 | interrupts, `SWI`, `RETI`, INTNEST, `EI` immediacy, micro DMA transfer | O1 (+ O3 for micro DMA) | O7 in board context | | 4 | the NGP BIOS from reset: instruction stream equal to O7 for N frames, or every difference named | none above 5 | O7 | | 5 | undefined flags, queue refill order, U2 | **a probe ROM on a real NGP/NGPC** (none available: Aubrey's hardware list has no NGP) | O5, O6, O7 disagreeing is the signal | Seeded faults (the gate must fail): one wrong flag in `DAA`, `INCF` not wrapping, `EI` delayed by one instruction, `LDIR` charging 7n, the queue fetching past a taken branch.