# Start here: the Saturn in one page Phase 0 notes for `saturn-python`, the Sega Saturn board. No emulator code exists yet. Every fact below names its source with a key from [sources.md](sources.md) and an evidence tag (methodology: DOC, OBSERVED, HYPOTHESIS, ...). "DOC: SCU 2.2" means the SCU User's Manual (ST-097-R5), section 2.2. The Sega manuals are confidential developer documents with no licence: we cite them by number and page and copy nothing from them. ## The machine | Part | Chip | Clock | Memory | Docs | | --- | --- | --- | --- | --- | | Main CPUs (2) | Hitachi SH7604 (SH-2), master + slave | 26.87 / 28.64 MHz (320 / 352 mode, NTSC), from the SMPC-controlled PLL | 4 KB cache each; Work RAM-L 1 MB DRAM, Work RAM-H 1 MB SDRAM | [memory-map.md](memory-map.md); core: sh2-python | | System control | SCU, with a DSP | DSP at half the CPU clock (~14.3 MHz) | DSP program RAM 256 x 32 bits, data RAM 4 x 64 x 32 bits | [scu.md](scu.md) | | Sprites/polygons | VDP1 | the CPU clock; draws one pixel per clock at best (DOC: VDP1 ch. 2, p. 20-21) | VRAM 512 KB; 2 frame buffers of 256 KB | [vdp1.md](vdp1.md) | | Backgrounds/display | VDP2 | dot clock = system clock / 4 (DOC: CMH "NTSC Saturn timing") | VRAM 512 KB as banks A0, A1, B0, B1 (the chip also supports 8 Mbit), colour RAM 4 KB (DOC: VDP2 3.2) | [vdp2.md](vdp2.md) | | Sound | Yamaha YMF292-F SCSP + MC68EC000 | SCSP 22.5792 MHz, 68EC000 11.2896 MHz (DOC: SCSP table 2.2) | sound RAM 512 KB | [scsp.md](scsp.md) | | System manager | SMPC: Hitachi HD404920FS 4-bit MCU (315-5744) | 4 MHz + 32.768 kHz RTC (DOC: CMH "NTSC Saturn timing") | battery-backed RTC and 4 bytes of SMPC memory | [smpc.md](smpc.md) | | CD subsystem | SH-1 (SH7034 family, mask ROM) + YGR019 gate array + 2x drive | 20 MHz (DOC: OVW table 3.1; MAME says 16 MHz: C3) | ROM 64 KB, buffer RAM 512 KB | [cdblock.md](cdblock.md) | | Cartridge port | A-bus CS0/CS1 | | backup RAM, 1/4 MB RAM, ROM carts | [cartridge-bios-region.md](cartridge-bios-region.md) | | Boot ROM | 512 KB mask ROM at 0 | | battery backup RAM 32 KB | [cartridge-bios-region.md](cartridge-bios-region.md) | The three buses are the SCU's (DOC: OVW 3.2, SCU 1.1): the **CPU bus** (the two SH-2s, the boot ROM, the SMPC, both work RAMs), the **A-bus** (cartridge port CS0/CS1, the CD block at CS2) and the **B-bus** (VDP1, VDP2, the SCSP and its sound RAM). Every access from a CPU to the A- or B-bus goes through the SCU; the SCU's DMA moves data between them in parallel with the CPU (DOC: OVW 3.2). ## The family pieces it uses - **sh2-python** (and sh2-rust): the SH7604, cache, DMAC, FRT, DIVU and the rest of the chip. The 32X board ([sega32x-python](../../sega32x-python)) shows how a family board embeds two of them. The Saturn uses the FRT input capture between the two CPUs (the MINIT/SINIT write areas, DOC: DUAL 1.2) as the 32X does not; sh2-python already models the FRT (its README). - **m68000-python**: the sound CPU. The 68EC000 is a 68000 without the 6800 interface (DOC: SCSP table 2.2); on the Saturn it runs with a 16-bit bus, so the core's model applies unchanged (HYPOTHESIS: no Saturn-specific 68EC000 difference found in TB#51, which lists restrictions on the sound CPU and SCSP, not CPU differences). - New cores this board would want are in [cpu-cores.md](cpu-cores.md): an SH-1 (SH7034) for a low-level CD block, the SCU DSP, and the SCSP DSP. Chip rule ([handoff-brief.md](handoff-brief.md), "The chip rule"): VDP1, VDP2, SCU and SMPC are used only by the Saturn and ST-V; the SCSP also by Model 2A-2C and Model 3 sound boards (OBSERVED: MAME 0.285 `-listdevices`). ## Modelling level (charter axis B), proposed | Component | Level | Why | | --- | --- | --- | | SH-2 pair | instruction, with transaction-level bus arbitration | sh2-python's own level; no cycle-level SH-2 evidence exists (its validation.md) | | SCU bus, DMA | transaction | the SCU manual gives behaviour, not cycle tables | | VDP2 | per dot inside a line, with the VRAM cycle-pattern registers modelled | the cycle-pattern table is documented (DOC: VDP2 3.x) and games depend on it | | VDP1 | per pixel drawn, with a command-cost model marked FITTED until hardware numbers exist | no cycle table in VDP1 manual | | SCSP slots and DSP | per sample (44.1 kHz), the DSP per step | the family's sound rule: good enough, exact where documented | | 68EC000 | cycle (m68000-python) | existing core | | SMPC | functional (its 4-bit firmware is not dumped) | documented commands and timings | | CD block | functional (high-level) first; low-level SH-1 optional | [cdblock.md](cdblock.md); open decision 3 | ## Clocks and frames - PLL: 320 mode 26.8741 MHz NTSC / 26.6875 MHz PAL; 352 mode 28.6364 / 28.4375 MHz (DOC: SMPC section 1, p. 3, the reset and clock signal table). MacDonald gives 26.8465875 MHz for the 320 mode (master clock x 2 minus 3.579545/2; DOC: CMH). Conflict C1 in the brief. - Lines: NTSC 263, PAL 313 (DOC: CMH "VDP2 Display"); pixels per line follow from the dot clock: 425.33 (320 mode) and 453.68 (352 mode) at 60 Hz (DOC: CMH, his arithmetic). - The SCSP and SMPC are not on the PLL (DOC: CMH). The sound domain therefore has its own clock; the board's timeline must hold two unrelated crystals (and a third for the CD block if it is low-level). ## The order to read 1. [memory-map.md](memory-map.md), then the chip documents in the table above. 2. [domains-and-speed.md](domains-and-speed.md): domains, channels, sync points, the instructions-per-second arithmetic. 3. [validation.md](validation.md): oracles and tiers; [mame-oracle.md](mame-oracle.md). 4. [census.md](census.md): the Redump set and the BIOS files. 5. [handoff-brief.md](handoff-brief.md): scope, names, unknowns, milestones, open decisions.