# Sockets: how the parts of a CPS-1 plug together The real system is three or four boards stacked by connectors: the **A-board** (68000, work and graphics RAM, CPS-A, sound on standard boards), the **B-board** (the game: program and graphics ROMs, mapper PAL, sometimes extra I/O), the **C-board** (the CPS-B chip and its PALs; folded into the B-board on the first sets) and on QSound games a **D-board** (Z80, DSP, EEPROM). Every game is one choice per board. The family's add-on pattern (megadrive-python `docs/expansion-sockets.md`: add-ons are separate repositories pinning the base through a few explicit sockets) fits the CPS Changer and any future Kenseim board; the per-game boards are **data rows** of this board, not separate repositories. ## Sockets inside the board (rows of data plus a few small device classes) | Socket | Real interface | What plugs in | Who supplies it | | --- | --- | --- | --- | | `BBoard` | the A/B connectors: `PRG0-6` chip selects, the 23-bit graphics address, `ROMOEB`, the LWIO/IOB1 PAL's I/O decode | program ROM image and load layout; graphics ROM image; the mapper (from the PAL fuse map + the B-board type's wiring, or MAME's table as fallback); extra devices: uPD4701 dial (Forgotten Worlds), M48T35 (Ganbare, Puchi Monster), Mach215 + 93C46 (Pang! 3); the CPS-B window address (`8001C0` on two SF2 sets) | per-set data generated from `-listxml` + the fuse maps | | `CBoard` | the CPS-B registers in the B-board's I/O window; C628/C632 PALs | a `CPSBConfig` row ([cps-b.md](cps-b.md)); extra input/output ports at `34`/`36`/`38`; whether JP1 routes `/OBJUP` to IPL2 | per-set data | | `SoundBoard` | standard: the two latches at `800180/800188`; QSound: the shared RAM windows `F18000`/`F1E000`, `F1C000-F1C007` | `StandardSound` (Z80 + YM2151 + MSM6295 on the A-board) or `QSoundSound` (Kabuki Z80 + QSound device + 93C46) | the board, using the sibling cores | | `Controls` | IN0/IN1/DIPs, IN2/IN3, coin outputs | joysticks and buttons per player count; the dial; DIP settings per set; Changer pads | per-set data | | `AV` | RGB at 15.625 kHz; mono or stereo audio | the board's frame of palette words and its sample streams | the board | Each socket has a test-only fake (a flat ROM with a trivial mapper; a fake CPS-B row) from M1, the way megadrive-python built its sockets before any add-on existed. ## Machine rows A machine row is a choice per socket: e.g. `ffight` = B-board 89624B-3 with `S224B` and its ROMs, CPS-B-04, standard sound, 2 players 3 buttons, 10 MHz A-board. The 68000 clock is a row field (10 or 12 MHz, MAME's assignment; U16). ## CPS Changer Capcom's home unit (MAME dates its sets 1994-1995: `CONS` entries `wofch`, `sfzch`, `sfach`, `sfzbch`). That it is the A-board electronics in a console shell with B-board "cartridges" is general knowledge, not checked against a source here. In MAME it is only a different input map (buttons 5-6 and Select instead of coins, DIPs fixed) on the standard or QSound machine. **No hardware source about the Changer's own board was found** (U5): what it does about video output, the controller ports, region, and whether any boot ROM exists. Recommendation: a machine row of this board (`Controls` = Changer pads), not a separate repository, until a source shows hardware that a row cannot express (open decision 7). ## Add-on candidates (not in scope) - **Ken Sei Mogura** (`kenseim.cpp`): a CPS-1 board driving a whack-a-mole cabinet through an extra board with its own CPU. If ever wanted, it is an add-on repository pinning this board through the `Controls` and an output socket. - Bootleg boards and the Mitchell boards: out of scope (Mitchell shares only Kabuki).