# Sound: the 68000, two K054539s, the MIRAC, the DASP ## The subsystem (DOC, page 25; OBSERVED, maps) ``` main 68EC020 --(K056800 host side, 16 regs on DB8-15)--> K056800 "MIRAC" <-- sound 68000 (8 MHz) | SNDINT, TOP1RES, TOP2RES sound 68000 bus: ROM 256 KB, RAM 64 KB, K054539 x 2 ("TOP1", "TOP2"), DASP port, DASP latch TOP1, TOP2 serial audio --> K056800 (router) --AXDO1/2--> TMS57002 "DASP" SI0/SI1 DASP <--> 256 KB DRAM (delay memory) DASP SO0/SO1 --> 056602 DAC --> LA4705 amp ``` ## Sound CPU: MC68000 @ 8 MHz - MAME: 8 MHz (OBSERVED, `-listxml`); the clock net is off-sheet. Its program is two EP1M EPROMs on the game's sub board (DOC, page 28). Interrupts autovectored (OBSERVED); `SNDINT` from the K056800 is one source (DOC). - Measured in MAME, Salamander 2 attract: 0.51 M instructions a second, 15.7 cycles an instruction ([domains-and-speed.md](domains-and-speed.md)). - Core: **m68000-python** (pin by commit), with no new needs. ## K056800 "MIRAC": the sound interface - **DOC:** host side `MCS`, `MRW`, `MAB0-3`, `MDB0-7` on the main CPU's `DB8-15`, reset from `SOUNDRESET`; sound side `SCS`, `SRW`, `SAB0-3`, `SDB0-7`; outputs `SINT` (the sound CPU's interrupt), `T1RS`, `T2RS` (the K054539s' resets); and an audio path: serial inputs from both K054539s and an external port, serial outputs `AXDO1/2` and `AXLRO` to the DASP. - **OBSERVED:** MAME's `k056800` (BSD-3-Clause, Ville Linde) has `host_r/w` and `sound_r/w`; its audio routing is not modelled there. - Also on hornet, gticlub, nwk-tr, zr107, konamigq, ultrsprt (MAME, 35 parents): later Konami boards, none in the family yet. - U16: the register semantics (which writes latch, which raise `SINT`, what the audio-routing bits do). ## K054539 x 2: PCM - konami68k-python's Phase 0 covered the chip (its `sound.md`, X-Men row): 8-channel PCM/ADPCM with reverb RAM, 18.432 MHz in MAME; it already said "the obvious extraction once a GX board starts". Here two of them, "TOP1" and "TOP2", clocked by `TOPCK` from the 18 MHz net (DOC), their sample ROMs on the sub board (two MS8M16 mask ROMs, page 28). Their audio goes **through the K056800 to the DASP**, not straight to the DAC (DOC). - furrtek has a die study of the 054539 (set aside); MAME's `k054539.cpp` is BSD-3-Clause (Olivier Galibert). No hardware-tier oracle. - MAME users: konamigx, djmain, mystwarr, zr107, moo, qdrmfgp, plygonet, xexex, xmen, tmnt2, lethal, gijoe, rungun and more (62 parents). **In the family: konami68k-python (X-Men, Premier Soccer) and this board: the second family user** ([handoff-brief.md](handoff-brief.md), decision 3). ## TMS57002 "DASP": the effects DSP The part MAME calls the "DASP" (Konami's sheet title says DASP too): a Texas Instruments digital audio signal processor, not a general CPU. - **DOC (the pin sheet, pinned):** 80 pins; parallel host port `D0-7` with `CS`, `WR`/`STRB`, `PLOAD` (program load), `CLOAD` (coefficient load), `DREADY`; serial `SI0/1`, `SO0/1`, `BCKI/O`, `LRCKI/O`, `SYNC`, `SYNPOL`; `BIO` (branch control), `PC0` (program counter bit 0), `EMPTY` (counting buffer empty), `OVFA`/`OVFM`; `CLKSEL` (L: 512 fs, H: 256 fs); an external DRAM bus `EA0-9`, `ED0-7`, `RAS`, `CAS`, `WE`. Block diagram: program RAM 256 x 24, data RAM 256 x 24 and 32 x 24, coefficient RAM 256 x 32, coefficient buffer 16 x 32, a 24 x 32 -> 52-bit MAC, a 32-bit ALU, a repeat counter. **No instruction set, no timing.** - **DOC (the GX sheet):** CLKIN 24 MHz, CLKSEL grounded (512 fs), so fs = **46,875 Hz**; two 256K x 4 DRAMs give 256 KB of delay memory; inputs from the K056800, outputs to the 056602 DAC; reset is `SOUNDRESET` AND `DSPRESET`. - **OBSERVED (MAME):** clock 12 MHz, `program 00-FF`, `data 00000-3FFFF`; the trace shows 12.0 M instructions a second, each PC `00-FF` equally often: **the whole 256-word program runs once a sample**, 12,000,000 / 256 = 46,875 samples a second, which agrees with the sheet's 512 fs at 24 MHz (one instruction per two input clocks: HYPOTHESIS on the chip's internal clocking). - The sound 68000 loads the program and coefficients through the port at `300001` and drives `PLOAD`/`CLOAD`/`BIO`/reset through the board latch at `500000` (OBSERVED handler names; the bit assignment is U17). - MAME's `cpu/tms57002/` files are BSD-3-Clause (Olivier Galibert), except `tmsinstr.lst`, the instruction table, which has no licence line: GPL-2.0+ by MAME's COPYING. Closed box. - No die study, no FPGA core and no full data manual were found (searched 2026-11-26). **Every instruction's meaning would come from MAME as a detector**: tier 5, FITTED. This is the weakest chip on the board. - MAME users: konamigx (18 parents), Taito G-NET (`sony/taitogn.cpp`, 34), Taito FX-1 on ZN (`sony/zn.cpp`, 3), konamigq (1). A future ZN or G-NET board in the family would be its second user (decision 4). ## 056602: DAC Serial input from the DASP (`DTI`, `LRCK`, `DTCK`), clock `FDACCK`, `MUTE`, `NRES`; analogue left and right to an LA4705 amplifier and a headphone jack (DOC). Modelled as the audio sink. ## "Good enough" (the family's sound rule) Sound is judged less strictly than pictures (Aubrey, 2026-11-13). The order for this board: the sound CPU and the channel exact first (they decide game timing), then the K054539s, then the DASP's effects. A bypass (K054539 output straight to the DAC, DASP off) is a **concession** for a weak target, never the specification ([domains-and-speed.md](domains-and-speed.md)).