# Sound: the Model 1 sound board, the SCSP boards, the digital sound boards Sources: MAME 0.285 (BSD-3-Clause files, pinned; **OBSERVED**): `model2.cpp` (configs), `sound/scsp.cpp` and `sound/scspdsp.cpp` (ElSemi, R. Belmont), `sound/multipcm.cpp` (Miguel Angel Horna), `dsbz80.cpp`, `dsb2.cpp`; the Saturn SCSP User's Manual ST-077-R2 (**SCSP**, Sega confidential, facts only, the same pin as `../saturn-python`). ## Three sound designs | Board | Where | Parts (MAME) | Link to the main CPU | | --- | --- | --- | --- | | Model 1 sound board (`segam1audio`) | Model 1; Model 2 original; Manx TT (with an SCSP too) | 68000 @ 10 MHz, YM3438 (OPN2C), two Yamaha YMW-258-F (MultiPCM) | a uPD71051 USART (an 8251 type), 31.25 kbaud class (M2 `model2o`) | | SCSP board | Model 2A, 2B, 2C (one SCSP); Model 3 (two) | 68000 @ 11.2896 MHz (45.1584 MHz / 4), SCSP @ 22.5792 MHz | the same USART type | | Digital Sound Board (DSB, Z80 + MPEG) and DSB2 (68000 + MPEG) | Star Wars Arcade (Model 1), Sega Touring Car Championship (2C), Top Skater (2C); Scud Race (Model 3 DSB), Daytona USA 2, Spikeout, Sega Rally 2, Star Wars Trilogy on Model 3 step 2 (DSB2) | Z80 @ 4 MHz or 68000 @ 8 MHz and an MPEG audio decoder (on the DSB a Sega custom, 315-5762, "probably a NEC or Texas Instruments DSP or MCU": MAME's model3.cpp board notes) | the same USART type | ## Reuse - **68000** for every sound CPU and the DSB2: `../m68000-python`, pinned (nothing new expected; the Saturn's brief says the same). - **YM3438**: `../ym2612-python`, which already has a `YM3438_ASIC` variant (its docs/api.md). Sound may be less exact than pictures (Aubrey, 2026-11-13). - **Z80** (DSB, drive boards, I/O, billboard): `../z80-python`. Model 1's and Virtua Cop's Toshiba TMPZ84C015 is a Z80 with on-chip CTC, PIO, SIO and watchdog (MAME device refs `z80ctc`, `z80pio`, `z80sio`): a board-side composition around z80-python. - **MultiPCM (YMW-258-F)**: new. Users: Model 1, Model 2 original, and Sega System 32 and Multi 32 boards (none in the family). Rule: stays in the board (or in model1-python, if that is built) until a second family board needs it. - **MPEG audio decode** (DSB/DSB2): an MPEG-1 audio layer II decoder in software, from the ISO standard (U10: which layer, and the decoder chip's quirks). Inside the board. ## The SCSP: propose the shared core now The SCSP's users are now two family boards: `../saturn-python` (Phase 0, 2026-11-25) and this one (and `../model3-python`, with two SCSPs). saturn-python's decision 5 said: keep it in the Saturn board behind a pin-shaped class, extract as `scsp-python` "on the day a second family board needs it". **That day is this Phase 0.** Proposal (decision M5): - create **`scsp-python`** before either board's sound milestone, with the SCSP's slots, EG, LFO, mixer, timers, interrupt controller, MIDI stub, DMA and the effect DSP, and a sound-RAM port. The 68000 stays outside (each board pins m68000-python and wires it); - the interface is the one saturn-python's brief already sketches ("a class that owns its registers, sound RAM port and DSP, with the 68EC000 outside it"); - the Saturn's details (the CD audio input EXTS, the SCU's access) and Model 2's (sound RAM size and map, the USART) are board wiring; - the Dreamcast's AICA descends from the SCSP (dreamcast-python's brief) but is a different chip; it stays its own (`aica-python`), with the SCSP as a documented ancestor. ## A finding for saturn-python: the SCSP DSP's encoding has a permissive source saturn-python's U13 ("SCSP DSP instruction encoding: no permissive document; blocks the DSP") assumed MAME was closed. MAME 0.285's `sound/scspdsp.cpp` and `scspdsp.h` carry `license:BSD-3-Clause` (copyright holders ElSemi, R. Belmont; read 2026-11-26 at f379cd0). The file decodes every field of the four 16-bit words of an MPRO step (TRA, TWT, TWA, XSEL, YSEL, IRA, IWT, IWA, TABLE, MWT, MRD, EWT, EWA, ADRL, FRCL, SHIFT, YRL, NEGB, ZERO, BSEL, NOFL, COEF, MASA, ADREB, NXADR) and the 16-bit floating-point PACK/UNPACK of sound-memory data. Two fields carry the authors' own "????" (NOFL, MASA). It is an emulator's reverse-engineered model (tier 5, OBSERVED), not Yamaha's or Sega's statement, so it is a detector and a strong hypothesis for the encoding, usable under BSD-3-Clause with notice. It unblocks the DSP for both boards, as a FITTED/OBSERVED model (decision M5b). ## What the SCSP's 68000 needs from the board Interrupt levels from the SCSP's interrupt controller, sound RAM wait states (unknown on Model 2 as on the Saturn: U11), a reset line, and the USART for commands from the i960.