# Who uses the chip Tags are explained in [start-here.md](start-here.md). Counts come from `python -I scripts/mame_census.py` (MAME 0.285's `-listxml`, streamed; output in `reference/census-run.txt` and the table `reference/census/ym2151-machines.tsv`, both git-ignored), checked again for this document. ## MAME 0.285 | | YM2151 (OPM) | YM2164 (OPP) | | --- | --- | --- | | machines (including device entries such as the Atari JSA sound boards) | **2,322** | **11** | | parents (no `cloneof`) | 690 | 9 | | driver source files | 209 | 8 | | chip instances | 2,330 (several machines have two or three) | 11 | Machines with more than one YM2151: Sega's *GP Rider* (X board, 2, three sets), Toaplan's *DT7* (2), Namco's *Driver's Eyes* (3), the PC-8801 JMB-X1 card (2) and MAME's `vgmplay` (2). **Clocks** (per chip instance): 3,579,545 Hz 1,294; 4,000,000 638; 3,580,000 208; 3,500,000 76; 3,375,000 48; 3,750,000 26; 4,026,987 20; 3,000,000 7; 2,750,000, 2,500,000 and 2,000,000 2 each; 3,579,580 and 3,072,000 1 each; 5 without a fixed clock. The core must take any clock: it counts input clocks and never assumes a rate. **By driver file**: capcom/cps1 214, sega/segas16b 141, pinball/s11b 66, namco/namcos2 60, midway/midyunit 54, pinball/wpc_flip2 53, irem/m72 51, jaleco/megasys1 48, sega/segaxbd 48, sega/segas16a 41, pinball/gts3a 41, namco/namcos1 40, irem/m92 40. **By folder**: sega 335, pinball 329, capcom 253, konami 212, atari 200, irem 133, namco 128, dataeast 127, midway 82. **By year**, the peak is 1988-1992 (248, 335, 260, 307, 311 machines). Computers: the **Sharp X68000** family at 4 MHz (4 machines, `sharp/x68k.cpp`), the **Sharp X1 turbo** at 2 MHz (`sharp/x1.cpp`), Yamaha's MSX machines and cartridge (SFG-01/05, CX5M), the PC-8801 JMB-X1 card. The YM2164's 11 are listed in [ym2164.md](ym2164.md). ## How boards wire it (MAME 0.285 drivers, pinned in the fetch script) | Board | /IRQ | CT pins | Driver | | --- | --- | --- | --- | | Capcom CPS-1 | the sound Z80's /INT, its only interrupt | not used | `capcom/cps1.cpp:3967-3970` | | Sharp X68000 | the MFP's input I3 | bit 7 the ADPCM clock select, bit 6 the FDC ready line | `sharp/x68k.cpp:332-345`, `:668-676`, `:1080-1081` | | Data East *Caveman Ninja* | | the second OKI's ROM bank | `dataeast/cninja.cpp` | | Konami *Aliens* | | the sound ROM or sample bank | `konami/aliens.cpp` | | Taito *Rastan*, *Operation Wolf* | | (their drivers are GPL-2.0+ and are not read; how they wire CT is unrecorded here) | - | | Atari JSA sound boards | | gating the OKI, TMS5220 and POKEY | `atari/atarijsa.cpp` | | Technos *Double Dragon* | the sound 6809's FIRQ | | `technos/ddragon.cpp:571-576`, `:972-973` | So a core's CT outputs must be readable by the board every time they change, and /IRQ must be a live line, not a polled value. ## The family's consumers - **cps1-python** (Capcom CPS-1, Phase 0 in parallel): the first consumer. 214 MAME machines; the sound Z80 at 3.579545 MHz, the YM2151 on the same crystal, the chip at 0xF000-0xF001 of the Z80's map, its /IRQ the Z80's only interrupt (cps1-python `docs/memory-map.md`). The CPS-1 sound program runs on the chip's timers even when silent, so cps1-python needs timers, BUSY and /IRQ from its first milestone. - **a7800-python** (Atari 7800): the XM expansion's optional YM2151 (`devices/bus/a7800/xboard.cpp`, MAME's `a78_xm`). Its brief recommends a silent socket until this core exists, "3 dumps use it here" (a7800-python `docs/handoff-brief.md`, decision 8). - Not in the family yet, and large users: Sega System 16/X/Y boards, Namco System 1/2, Irem M72/M92, Konami's 68000 boards, Atari System 1/2, the X68000. Two family boards already, and many more candidates: the chip rule (a chip gets its own repository when another emulator could use it) is met. ## The local ROM library The chip has no ROM or BIOS of its own; nothing here is needed to build or test the core. For board-level streams, MAME sets with the chip are present locally (a zip of the machine's name): | Romset (found through `MAME_ROMPATH`) | Sets present (of 2,333 machines with either chip) | | --- | --- | | the local merged MAME set | 665 (merged sets: parents only) | | the local non-merged MAME set | 2,301 | | a frontend's MAME folder | 744 | | a frontend's FBNeo folder | 516 | Sets used in this Phase 0, read in place (SHA-1 of the zip): | Set | SHA-1 | Used for | | --- | --- | --- | | `ghouls.zip` (merged) | `1275d9691bd14eeadc59d79050eb324857733bee` | the tap's first run (timers only, silent) | | `ffight.zip` (merged) | `c998e9081ed692e92159dbfc378b65d56387e69c` | tap with coin and start: silent (below) | | `ddragon.zip` (merged) | `014bf9b5e4bbc0c9e3cde38b406a4c73ed5637a4` | the tap with music | Register logs: seven VGM files ship inside jt51 (*Blanka*, *Double Dragon*, *Double Dragon II*, *Ghouls'n Ghosts*, *Wagon*, *Willow*, a test), at 3,579,545 or 3,579,580 Hz; their licence is unstated, and jt51 is not fetched since 2026-11-24 (a GPL tree: Aubrey's rule), so they are not here either. vgmrips.net, the large public archive of YM2151 logs, answers scripts with a bot challenge and was not opened; a person can download packs for rung 2.