# The geometry DSPs: copro and geometrizer Sources: MAME 0.285 (BSD-3-Clause files, pinned; **OBSERVED**, tier 5): `model2.cpp` (M2), `model2_v.cpp` (M2V), `cpu/mb86233/mb86233.cpp` (Olivier Galibert), `cpu/mb86235/*` (Angelo Salese, ElSemi, Ville Linde, Matthew Daniels), `cpu/sharc/*` (Ville Linde). Manufacturer documents: the Fujitsu **MB86232** data sheet, Sept. 1989 (DOC, the nearest published relative), the Analog Devices **ADSP-21020** user's manual, 1993 (DOC, the SHARC's core instruction set), an ADSP-2106x user manual copy (completeness unchecked), the TI **TMS320C2x** user's guide (for C1 only). ## Two DSP roles on every Model 2 M2V's header describes three stages: (1) the **geometry engine** ("geometrizer"), (2) Z-sort and clip hardware, (3) the hardware renderer. Separately, the i960 talks to a **copro** through FIFOs (`copro_fifo_in`, `copro_fifo_out`) and uploads its program at boot (log line "Start copro upload", then "Boot copro, N dwords": M2 `copro_function_port_w`, `copro_boot`). The copro is a general maths coprocessor for the game's own code (physics, collision; HYPOTHESIS from its use); the geometrizer turns display lists into screen polygons for the renderer. | Revision | Copro | Copro program | Geometrizer | Geometrizer program | | --- | --- | --- | --- | --- | | 2O, 2A | MB86234 (TGP) | uploaded by the i960 (game data) + board table ROMs | TGP-family DSP(s) | **in an internal ROM inside the DSP, not dumped** (M2V header); MAME runs a high-level simulation "based off the disassembly of the code uploaded to a 2B game" | | 2B | ADSP-21062 SHARC (host boot) | uploaded (Last Bronx uses external DMA port 0) | a second SHARC | uploaded ("Start geo upload": M2 `geo_ctl1_w`), so dumpable from the game ROMs; MAME still uses the HLE path (its second SHARC is commented out) | | 2C | MB86235 (TGPx4) | uploaded | a TGPx4 | uploaded; MAME uses HLE | What this means for a specification: - **2B and 2C can be low level**: both DSPs run programs that are game data. The model is the DSP cores plus the FIFOs and the geometrizer's ports, and the geometry is whatever those programs compute. - **2O and 2A cannot be fully low level** until the geometrizer's internal ROM is dumped. Their geometrizer must be a **functional model** of what the ROM does, written from the behaviour of the 2B/2C uploaded programs, M2V's description, and detector output. That is a declared approximation, tagged FITTED/HYPOTHESIS per field, and listed as the board's first named **concession** candidate (decision M4). It touches every pixel of 37 sets. - Model 1 is the opposite case: its two geometrizer TGPs' internal ROMs **are** dumped (315-5571 and 315-5572, 8 KB each, in MAME's Model 1 sets; census.md), so a Model 1 geometrizer can be low level ([model1.md](model1.md)). ## The chips - **MB86233 / MB86234 (TGP).** MAME's core comment: the 86232 has 512 dwords of triple-port RAM; "the 86233/86234 have instead two normal ... independent ram banks, one of 256 dwords and one of 512"; a floating-point or fixed-point mode, and "all sega programs start by activating floating point and staying there"; the core was built "thanks in part to a 'manual' that barely deserves the name" (mb86233.cpp header). The MB86232 data sheet gives a 75 ns cycle time, MCLK up to 40 MHz, 1,024 words of on-chip program memory, 512 words of three-port RAM, a 16-word register file (MB86232 data sheet p. 1, DOC). How far the 86233's instruction encoding matches the 86232's is not checked (U4); MAME's disassembler mnemonics (`fadd`, `fmsd`, `rep`, `brif`, ...) are the only encoding source in hand. MAME clocks the MB86234 at 50 MHz and the MB86233 at 40 MHz; the instruction rate per clock is unknown (U5). - **ADSP-21062 (SHARC).** A documented part: the ADSP-21020 manual covers the core (computation units, sequencer, DAGs); the 21062 adds on-chip SRAM, DMA and link ports (the 2106x manual). MAME runs it at 32 MHz with `set_maximum_quantum(18000 Hz)` against the i960, a sign of how often they meet (OBSERVED, M2 `model2b`). MAME's notes list SHARC opcodes Last Bronx uses that "need to be double checked". - **MB86235 (TGPx4).** No manufacturer document found. MAME's interpreter is the only description; its `mb86235defs.h` has no licence line (GPL-2.0+ by MAME's rule) and was not fetched. ## The CPU rule Each of these DSPs runs its own instruction stream, so each gets its own core repository (the rule, and the Saturn's SCU DSP precedent): | Core | Users in or near the family | Proposal | | --- | --- | --- | | `mb86233-python` (MB86233 and MB86234 as variants; the MB86232 as a documented relative) | Model 1 (5 TGPs), Model 2O/2A (copro and geometrizer) | new core, before Model 2's geometry milestone | | `sharc-python` (ADSP-21062) | Model 2B; also Konami and other 1990s arcade boards (none in the family) | new core, before 2B | | `mb86235-python` (TGPx4) | Model 2C | new core, before 2C; the weakest-documented of the three | A board-only alternative (all three inside model2-python) would break the rule and give no single-step gate per DSP; it is listed in decision M3 only to be refused. ## C1: "a TMS32025 on Model 1" This phase's brief says Model 1's geometry DSP is a TMS32025. Every source in hand says otherwise: MAME's Model 1 PCB notes (written from a board by "Guru") list "315-5571 - Fujitsu MB86233 Geometrizer", "315-5572 - Fujitsu MB86233 Geometrizer (different code)" and an MB86233 "COPRO"; `mame -listxml vr` lists "Fujitsu MB86233 (TGP)" and no TI part (OBSERVED). The TMS320C2x guide was fetched to compare and is not needed unless a source for the TMS32025 claim turns up. Recommendation: correct the brief (decision M2).