# Validation: oracles, tiers, and the milestone ladder Tiers: 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**. **No tier-1 behavioural oracle for this board is in our hands.** No die analysis of any CD-i chip is known. The nearest to tier 1 are the logic-analyser captures and real-player verdicts the MiSTer core's author published in prose (slave polling periods, slave-servo SPI exchanges, MCD212 interrupt and display-active timing, a list of quirks confirmed on a 210/05), which are tier 3 for the facts they state and cannot be re-run by us. We have no CD-i hardware. ## Top tier per chip | Chip | Top oracle | Tier | | --- | --- | --- | | SCC68070 | the Philips data sheets (timing tables, frames, peripherals); semantics through m68000-python's proof | 2 (+ the 68000's evidence) | | MCD212 | MCD212/D Rev. 0 | 2 | | CDIC | cdichips (drivers reverse engineered, behaviour tested in CD-i Emulator) and the Green Book's audio chapter | 3 / 2 for the coding | | slave / servo (MC68HC05C8) | the dumped firmware running on a 6805 core (the software itself), the C8 reference guide | 2 + firmware | | pointing devices | Philips's specification | 2 | | M48T08 | ST data sheet | 2 | | DVC (MCD251/MCD270) | technical summaries only | 2 (thin) | ## Oracles | Oracle | Tier | Licence / verdict | Pin | Decides | Cannot decide | | --- | --- | --- | --- | --- | --- | | SCC68070 data sheets (Nov 1990, Apr 1993) | 2 | Philips's: facts only | `scc68070.zip` SHA-256 `d75ac767...` | instruction clock totals and access counts, frames, interrupt structure, MMU, DMA, UART, timer, I2C registers | per-access placement inside an instruction (U2); its "inaccuracies" (ICDIA) | | MCD212/D Rev. 0 | 2 | Motorola's: facts only | `fac8b26b...` | memory map, DTACK/BERR, slot arbitration, video timing, ICA/DCA instructions, codings, mixing | per-CLK order inside a slot; its own errata | | Green Book (April 1990 text) | 2 (functional specification) | Philips/Sony, all rights reserved: facts only | `90c9f1ef...` | disc and sector formats, ADPCM levels and decoding, base-case requirements, the display control program | chip timing | | cdichips | 3 | none: facts only | `c1cf836` | CDIC and slave register maps and messages | bit meanings marked unknown | | cdinotes | 3 | MIT | `8b75b52` | how the ROM drives CDIC, DMA, slave | hardware timing | | CDi_MiSTer `doc/` prose | 3 (captures on real players) | GPL-3.0 repository: facts only pending decision 8; never fetched | `56857f5` | slave/servo periods and SPI bytes, MCD212 IRQ and DA timing, real-player quirk verdicts | anything not captured | | CDi_MiSTer core (running) | 4 | GPL-3.0: closed box, built only in emu-tools-gpl if ever | not pinned | a low-level slave, real DMA, frame-level differences | hardware | | cdifan/cputest on a real player | 3 once a result is recorded; 1 if a full `cpufull` trace is captured on hardware | none: README only | `be90dc8` | 68070 flags | - | | The system ROM (CD-RTOS) and slave firmware | the software itself | Philips's: never shipped, by SHA-1 | bios-and-models.md | boot, drivers, the slave's behaviour (run as themselves) | hardware timing | | MAME 0.285 cdimono1/cdimono2/cdi910 | 5 | closed box | installed binary | I/O streams, control flow, pictures over long runs | timing, slave on Mono-I, DMA timing, ADPCM rounding | | CD-i Emulator (cdiemu) | 5 | closed source | | differences, other boards | anything | | CeDImu, miniCDi, edi, cdipc, opencdi | 5 | closed box / lineage unchecked | | nothing until adopted | | ## Milestones (exit tests) | M | Content | Exit test | | --- | --- | --- | | 0 | scc68070-python rung 1: m68000-python subclass with 68070 frames, RTE format error, interrupt inputs and LIR, instruction-level timing from Tables 11-23 | m68000-python's semantic suite passes on the subclass; a table-driven test checks every timing row of Tables 11-23 against the data sheet; seeded faults in the timing table caught | | 1 | Bus and boot skeleton: DRAM, ROM swap at reset, MCD212 system controller (decode, ROM DTACK delay, BERR, slot waits), the 68070 timer, NVRAM image, stub CDIC and slave | `cdi220b.rom` and `cdi200.rom` boot to the point MAME reaches at 0.12 s: the I/O write stream (order and values) equals `io.log`'s first 30 writes; the ROM module scan finds the same modules | | 2 | MCD212 display: ICA/DCA, video timing, CLUT, RL7/RL3, DYUV, RGB555, mosaic, mixing, cursor | the player shell appears; its picture equals MAME's (detector) after the boot; a set of hand-built ICA programs (our own test images, MIT) produce the pictures the data sheet's rules give | | 3 | Slave on mc68hc05-python (slave 2.0 firmware) or the functional slave; pointing device | the shell's pointer moves and selects; the slave handshake bytes equal MAME's at boot; the slave's front-display I2C period is 8.1 ms (CDi_MiSTer's capture, for the 3.2 firmware: compare the 2.0 period and record it) | | 4 | Disc and CDIC: `.cue`/`.bin` with `CDI/2352` and CD-i Ready pre-gaps, sector delivery by DMA, IVEC/DBUF/AUDCTL behaviour | a smoke list of discs boots to its first picture: Hotel Mario, Zelda - Wand of Gamelon, Burn:Cycle, Lemmings, one CD-i Ready title (Aubrey's rule: smoke before sweep) | | 5 | Audio: ADPCM A/B/C, CD-DA, mute and attenuation, the DACs | ADPCM from the Green Book's decoding equations on synthetic sound groups; the smoke list's audio against MAME as a detector; the documented real-player quirks (Hotel Mario's repeated first samples, Zenith's left-only intro) appear as on hardware | | 6 | Timing pass: DTACK delays of the CDIC and slave, seek and spin-up, every FITTED constant recorded | each FITTED constant names its data; Burn:Cycle's logo audio breaks as on a 210/05 and is clean when the CPU is overclocked (CDi_MiSTer's verdict: a timing-sensitive real-player behaviour) | | 7 | Seeded faults | each one-line fault (a DRAM access that ignores the slot, an ICA STOP ignored, DCA fetched one line late, IT1 not cleared on reading CSR2R, ADPCM filter K1 sign flipped, DMA without the device's REQ...) is caught | | later | Mono-II (DSP56001 drive), Mono-III/IV (CIAP, IKAT), the DVC (VMPEG first), the MMC boards (two VSCs and a VSD/VSR), the MMU's use | per row |