# Validation: every oracle, its tier, and the rung plan ## Oracle tiers The family's rule: rank an oracle by **where its expected values came from**. A lower tier is a detector (it finds a difference); the highest tier that covers a claim is the judge (it decides who is right). | Tier | Meaning | For this chip | | --- | --- | --- | | 1 hardware-captured | a real chip's pins or a die-level model of its netlist, as data | **none exists** (below) | | 2 manufacturer | GI's manuals and data sheets | S1, G82, DS76-DS82, O81 (a restatement), the Cross Assembler manual | | 3 hardware-corrected community documents, tests that pass on hardware | | HW26's console results; wiki.intellivision.us; jzIntv's documents where they say what was measured | | 4 HDL reimplementations | | HW26's `cp1610.sv`; Intv_MiSTer's `cp1610.vhd` | | 5 emulators | | MAME 0.285, jzIntv, FreeIntv, Bliss, HW26's Python model | ## What does not exist (searched 2026-11-11 and 2026-11-12) - **No tier-1 source.** No die photograph, decap, netlist or transistor-level simulation of the CP1600, CP1610 or CP1610A was found, and no published logic-analyser or oscilloscope capture of the bus with per-cycle data. Searches: two web searches and siliconpr0n / seanriddle.com probes on 2026-11-11; on 2026-11-12 two more web searches ("CP1610 die shot decap netlist transistor level"; "Intellivision CP1610 logic analyzer bus capture BDIR BC1 BC2 timing measured") and the two leads they gave: J. Zbiciak's *TutorVision / INTV88 Reverse Engineering Notes* (a published Google document, 2017-2018: its measurements are software timings of the STIC's bus requests on a Sears and an INTV88 console, shown as images; its own "to be measured" list includes the timing of /BUSRQ and /INTRM; no CPU bus capture) and the FujiNet "Intellivision bring-up notes" (a bus-phase table credited to AtariAge; no capture). jzIntv's `doc/jzintv/stic.txt` mentions an oscilloscope picture of SR1/BUSAK at board level, not published as data. **The search was bounded, not exhaustive**: AtariAge's forum threads were not read in full. - **No SingleStepTests-style corpus.** The organisation's 22 repositories were listed on 2026-11-11; none is for this CPU. - **No CPU test ROM from GI or Mattel.** The GIC1600 manual names diagnostics (S16DGS) but prints no listing. Mattel's MTE-201 and the IMI test cartridges in the No-Intro set are console diagnostics (not examined). jzIntv's `examples/` has no CPU test. - **No hardware here.** Nobody in this family has an Intellivision; no rung needs one. So **nothing in this core can be settled at tier 1**. The judges are the manuals (tier 2) and, for what the manuals leave out or get wrong, one console's results through HW26 (tier 3). ## The oracles ### S1: GI *CP-1600 Microprocessor Users Manual*, May 1975 (tier 2) - Pin `reference/docs/CP-1600_Microprocessor_Users_Manual_May75.pdf`, SHA-256 `ecdabe5c52b5...`, bitsavers; OCR text alongside. All rights GI; cited. - Decides: pins (p.9-14), state flow and request priority (p.21-25), the timing diagrams of fetch, read, direct read, write, TCI, SIN, interrupt, BUSRQ, BDRDY and reset (p.27-37, read as images), the instruction formats and the instruction table with cycles (p.42-58). - Cannot decide: anything it calls "not supported" (SDBD with the stack and direct modes, two-position SWAP as later parts print it, MVO@ with the pointer as source); the branch's bus shape (no figure); the exact phase order inside 7-cycle MOVR and the stack read (U6). ### G82: GI *CP1600/CP1610 Microprocessor Data Manual*, 1982 (tier 2) - Pin `CP1600-CP1610_Microprocessor_Data_Manual_1982.pdf`, `2a8ad48c6663...`, archive.org, 113 MB. All rights GI; cited. - Decides: the CP1610 itself (2 MHz, 1 µs), the branch figure (Fig. 12a: taken 9, not taken 7, no DTB of the displacement), the interrupt figure (Fig. 15 = S1 p.35), the BUSRQ exit (Fig. 16), "MOVR 6/7", "two position SWAP not supported", HLT after the next interruptible instruction, the bus granted only after an interruptible instruction (p.11, 2.5.5). - Where it differs from S1: C4 (the 6/7 rule), C7 (SWAP), C8 (HLT), C21. ### DS76, DS77, DS80, DS82: the data sheets in GI's catalogs (tier 2) - Pins: the four catalogs (`6762fe8b9707...`, `72c55769f47c...`, `70094d12e951...`, `b609963d33ac...`; PDF pages in `scripts/pinned_files.json`). Only grepped for key rows (MOVR, SWAP, the microcycle); their AC tables were not read (owed: rung 0). - Decide: how the cycle table and the SWAP wording changed between 1976 and 1982 (C4, C7). ### O81: Osborne *16-Bit Microprocessor Handbook*, 1981, chapter 2 (tier 2, derived) - Pin `a6c4725f8060...`. A restatement of GI's documents; used for the reset sequence (C1), the bus-request exit and the halt prose (C8). Never decides against S1 or G82. ### Other GI documents (tier 2, little used) The GIC1600 development system manual (Sep 1975) and the Cross Assembler / Simulator manual (Nov 1974): mnemonics and assembler syntax (the disassembler's spelling). The Mattel/APh "CP 1600 Instruction Set" of 1978-04-28 (7 image-only pages, not transcribed: U20). ### HW26: Miasmark `openFPGA-Intellivision` @ `577805cd4764` (tier 3 / 4 / 5) - MIT for its own files (LICENSE, "Copyright (c) 2026 Miasmark and contributors"). An independent implementation: its `docs/SOURCES.md` says the Intv_MiSTer core was "not opened" and jzIntv's source not read; MAME was read and run as a black box. - **The hardware claim, checked in the repository**: `docs/HW_TESTS.md` describes ten cartridges (`sim/testroms/hw/*.asm`, sources published) run on "the owner's console (NTSC Intellivision with the ECS) on a flash cartridge (the owner's PiRTO II)", Model 2609, on 2026-10-31 and 2026-11-01; each shows its result as text on screen, read off and transcribed into the document's tables next to the model's predictions. **No photographs are published.** So the evidence is one console, one person, a transcription: tier 3, and a single witness. - What those results can decide about the CPU: - the undefined cases of `hw_cpuodd` (C6, C7, C9-C13): values of a final register or memory word, with interrupts off: these are direct and strong; - the bus-grant rule (`hw_grant`): the bus is lent only after interruptible instructions (G82's rule), not after every instruction, not by look-ahead; it did not include GSWD, RSWD or jumps (so it does not decide C14); - `SDBD; MVI@ R4,R7` takes **15** cycles, one more than the manuals (`hw_frame2`, a difference between two timed paths); - a masked INTRM request released before EIS is dropped (`hw_frame2` row W: C16, though a level model also fits); - the interrupt path (sequence + JSR + PULR R7) is 2 cycles longer than the manuals' 9 + 12 + 11 (C2, C5). - What they cannot decide: any single instruction's count except the SDBD jump; where the 2 extra cycles sit (TIMING_FIT "Not observable"); the order of phases inside an instruction; anything the STIC's timing can absorb (the fit solves CPU and STIC parameters together); C10's eaten word (U15); and all of it depends on the EXEC dispatcher's path as HW26's model traces it. - Also in the repository: `docs/CPU_NOTES.md` (its decision table over S1, the wiki and MAME), `docs/TIMING_FIT.md`; `sim/tests/cpu/*.asm`, **42 directed tests** with `;! expect` and `;! cycles` lines (note: the cycle lines assume its `f` timing, e.g. JSR = 13); `tools/as1610.py` (its assembler); `tools/g82_cycles.py` (a transcription of G82's table: rung 0's second transcription); `tools/cp1610.py` (898 lines, an instruction-level model with a bus-phase log, tier 5, with knobs `timing` = `f`/`doc`, `sdbd_r6`, `hlt`, `mvo_ptr`: the second referee of rung 4); `src/fpga/core/cp1610.sv` (tier 4, locksteps with the Python model on every bus phase in its bench). Run as data or as a tool; never copied here. ### wiki.intellivision.us (tier 3) - 14 pages pinned as live documents (`reference/web/wiki-*.txt`); no licence stated; cited, never copied. CP1610 (pins as wired, interruptibility, the opcode-range table), Bus Phases (sequences; column order BDIR, BC2, BC1), Double Byte Data, Undocumented SDBD Behavior, the instruction pages. - Partly hardware-informed (the authors had consoles), partly from memory (its SDBD-stack page says so). Single pages carry errors (C17). Never decides against S1, G82 or a HW26 console result. ### Intv_MiSTer `rtl/intv/cp1610.vhd` @ `808bbcb4acf3` (tier 4) - Grabulosaure ("DO 3/2019"), 1,051 + 343 lines of VHDL-2002 with a bus-phase output (`bdic`: BDIR/BC2/BC1). **No licence file**: read, cite, run under a simulator locally; never copy. What it was validated against is not stated. - Use: a third vote on bus shapes at rung 4, under GHDL. No GHDL is on this machine's PATH; huc6280-python pins an OSS CAD Suite bundle for the same purpose. ### MAME 0.285 `src/devices/cpu/cp1610/` @ `f379cd060ac3` (tier 5) - BSD-3-Clause (Frank Palazzolo). The local binary is the same version. Its users: `intv` and five relatives, and `unichamp` (Unisonic Champion 2711, the only other program corpus and the only BEXT user). - Per-instruction cycle counts, no bus phases, no BUSRQ in the CPU device. **Known differences from the manuals or the console** (each is a mask in any MAME comparison): SETC 6 (C3), `SARC r,2` 6 (C3), NEGR of 0 without carry (C6), SDBD with R6 two pre-decrements (C9), SDBD + direct decoded through R0 (C10), SDBD + MVO illegal (C11), MVO@ pointer source old value (C12), jump II = 11 not taken (C13), HLT a 4-cycle no-op (C8), opcode words with bits 15-10 set cost nothing (U1), no reset cycles (C1). - Recipe and facts: [mame-oracle.md](mame-oracle.md). ### jzIntv 2020-07-12 (tier 5; documents tier 3 where measured) - http://spatula-city.org/~im14u2c/intv/dl/jzintv-20200712-src.zip (SHA-256 `b36b3b274d0f...`), GPL-2.0-or-later: closed box only, its source no longer fetched (Aubrey, 2026-11-24). Its CPU source was partly read in Phase 0, before the 2026-11-14 rule, so the votes below are HYPOTHESIS (for review) until a shipped jzIntv build is run. - Votes: jumps 13, interrupt 12 (two idle cycles before INTAK), +1 for R6/R7 destinations (C4), GSWD/RSWD not interruptible and no bus grant after JD/JSRD (C14). Its author had hardware, so its choices are worth a flag, but no measurement is recorded with them, and its interrupt path is 3 cycles longer than HW26's console measurement allows (C2). - Its assembler `as1600` (in the same source) is a candidate tool for assembling HW26's tests if `as1610.py` is not used. ### FreeIntv @ `ef3e0fe322be` and Bliss @ `9767e4632d1a` (tier 5) - FreeIntv (GPL-3.0, https://github.com/libretro/FreeIntv @ `ef3e0fe322be`): jumps 13. Bliss (GPL-2.0, Kyle Davis, 2014 mirror, https://github.com/jeremiah-sypult/BlissEmu @ `9767e4632d1a`): jumps 12. Votes only, read from source before the 2026-11-14 rule: HYPOTHESIS. Neither source is fetched since 2026-11-24 (Aubrey). ## The rung ladder Each rung is one commit or a short series, with an exit test that a script or `pytest` can run. Rungs 0-3 are the certification; 4 and 5 are required before the first board pins the core. The tier of each rung's judge is stated; where it is a detector, a difference is a question, not a failure. | Rung | What | Judge (tier) | Exit test | | --- | --- | --- | --- | | 0 | **Manuals to tables.** The 1,024-entry opcode map (mnemonic, form, words, base cycles, interruptible, flags affected) and the per-form phase sequences as data in `cp1610/_tables.py`, written from S1 p.42-58 and G82 p.45 | S1, G82 (2) | `tests/test_tables.py`: every entry equals HW26's `g82_cycles.py` transcription (run as data with `-I`) and the wiki table, except rows listed with a C number; the counts in [timing.md](timing.md) all present; the data sheets' AC tables and the 1978 scan read and any new fact added as a U or C | | 1a | **Directed tests from the manuals**: one test per instruction family and per phase block (fetch, read, direct read and write, SDBD read, branch taken / not taken, interrupt, BUSRQ wait and exit, reset, BDRDY, BEXT with EBCI, TCI and SIN pulses), each asserting the exact phase sequence and the CPU's word in each phase | S1, G82 (2) | `pytest -m "not slow"` green on CPython and PyPy; every C and U row with a default has a test naming its switch | | 1b | **HW26's console results** (`hw_cpuodd`'s seven values; `hw_grant`'s grant rule as a phase-level test; `SDBD; MVI@ R4,R7` = 15 under `timing="console"`) | HW26 (3) | each value reproduced; each test cites the HW_TESTS section | | 1c | **HW26's 42 directed programs** (`sim/tests/cpu/*.asm`), assembled by `as1610.py` or `as1600`, run through `cp1610.harness`; registers, flags and memory against `;! expect`; cycles against `;! cycles` under `timing="console"` | HW26's expectations are its model's (5) except where they cite a console result | every expectation met or listed as a known difference with its C number (the `strict_*` and `sdbd_r6_mame` files test HW26's own knobs and map onto ours) | | 2 | **Emulator-generated corpus as detector**: a MAME 0.285 Lua driver that loads registers and a few RAM words, single-steps, and records the final state and cycles; 1,000 random states per opcode form, in a JSONL corpus generated locally (never committed) | MAME (5) | zero differences outside the known-difference list above; each new difference becomes a U/C row and is judged by a higher tier, never fixed to match MAME | | 3 | **Replay of real program traces**: `scripts/mame_trace.py` traces (Astrosmash for 180 frames, a few more No-Intro titles chosen to cover SDBD, the shifts and the R6 stack; `unichamp` for BEXT) replayed through a minimal host (flat 64 K words, the console's vectors, interrupts injected at the traced PCs) with `timing="doc"` | MAME (5) | every instruction's registers, flags and cycle delta equal over the whole trace, masks as above; reported per mnemonic | | 4 | **A second referee**: lockstep against HW26's `tools/cp1610.py` with its bus log (same knobs set both sides, on rung 1c's and rung 2's programs), and Intv_MiSTer's VHDL under GHDL for bus shapes on a handful of programs | (4, 5) | identical phase sequences and states, or each difference listed with the side each source takes | | 5 | **Tooling** at the family bar (huc6280-python and m6800-python at HEAD): `state.py`, `disasm.py`, `debug.py`, `trace.py`, `console.py`, `harness.py`, `__main__.py`, `py.typed` | rung 3's traces | `disasm.py` matches MAME's disassembly text order for every traced instruction (mnemonic spelling from the Cross Assembler manual where MAME differs, listed); trace schema and api-stability documents; a readability test; `python -m cp1610 prog.bin --trace out.jsonl` runs | Rung 6, owned by the board, not this core: `intellivision-python` runs HW26's ten hardware cartridges in its full machine and compares with HW_TESTS.md's console rows. A difference there that comes from the CPU is raised on this core as an issue. ## What no judge decides (defaults, each behind a switch) Listed with their switches in [undocumented-behavior.md](undocumented-behavior.md): the cycle table (C4, C5: `timing`), the interrupt sequence's length (C2), the reset sequence (C1), GSWD/RSWD interruptibility (C14), INTRM as an edge (C16), HLT (C8), SDBD with the stack (C9), MVO@ with the pointer as source (C12), and the unknowns U6, U9-U17. A new console measurement from anyone outside this family would move one of these; nobody here can make one. ## The minimal harness `cp1610.harness` (rung 1a) turns the phase callback into memory accesses for tests and the traces: it keeps one address latch, loads it on BAR and INTAK from the CPU's word and on ADAR from the word it returns, answers DTB from a 64 K-word array, writes on DWS, returns a configured vector on IAB, and counts microcycles. Options: 10-bit masking of chosen ranges (the Intellivision ROMs), BUSRQ and INTRM schedules by microcycle, BDRDY waits by address.