# Video: tilemaps, sprites, ROZ, mixer, colour, CRTC **Evidence, plainly:** there is no hardware-tier oracle for any GX video chip. Konami's GX300 sheets ([schematic.md](schematic.md)) give pins, nets and RAM sizes for the K053252, K055555, K054338 and the DAC stage (DOC); for the K056832, K055673/K053246 and K053936 we have only what MAME's binary shows (OBSERVED: handler names, ROM regions, pictures). The die studies of the 053252, 053936, 054156/054157 (the K056832's predecessors), 054338 and 055555 are furrtek's and are set aside (author's wishes, [provenance.md](provenance.md)); so are FPGA cores built on them. Expect FITTED behaviour, judged against MAME pictures, tagged as such. ## The chain (DOC, page 24) ``` K056832 tilemaps ---- VDCOL --------------\ K055673/K053246 sprites -- OCOL/OPRI/OSD/OBRIT/OMIX --> K055555 (PCU2) -- PCOL/PSHD/PBRI/PMIX ROZ planes S1, S2 (types 1, 3, 4) --------/ | v K054338 (CLTC) + 3 x 8K x 8 colour RAM | 056766 (VDAC, 8-bit RGB + 8-bit brightness) -> 056820 (VHIC) ``` ## K053252: CRTC ("CCU") - **DOC:** 8-bit chip on `DB8-15`, 16 registers on `AB1-4`, clocked by the selected dot clock; `INT1`/`INT2` become the CPU interrupts `CCUINT1`/`CCUINT2`; sync and blank outputs latched on the dot clock. Six dot clocks selectable by `DOTSEL0/1`. - **OBSERVED** (MAME logs each write): Salamander 2 sets HC 384, HFP 16, HBP 48, VC 264, VFP 17, VBP 15, VSW 8, HSW 4 (6 MHz dots: 59.19 Hz). Racin' Force sets HC 512, VC 289, HFP 33, HBP 55, VSW 6, HSW 5, and runs at about 54 frames a second in MAME (54 frames in one emulated second of trace; at 8 MHz dots, 8,000,000 / (512 x 289) = 54.07 Hz). Run and Gun 2 sets HC 512, VC 264 (8 MHz: 59.19 Hz). So **the frame rate is per game**, a fact the board's timeline must take from the CRTC, not from a constant. - MAME's `k053252.cpp` is **LGPL-2.1+** (Angelo Salese; licence line read 2026-11-26), unlike the other GX files (BSD-3-Clause). Closed box either way. - Also on: mystwarr, moo, dbz, xexex, rungun and ten more Konami drivers (MAME, 52 parents). ## K056832: tilemaps - **OBSERVED:** tile RAM in two 8 KB windows (`DA0000-DA3FFF`), registers at `D40000`, tile-ROM readback at `D00000` as 5 bits per pixel (`k_5bpp_rom_long_r`), a board tile-bank latch at `D44000`. ROM region `k056832` 1.5-8 MB per game. - The successor of the 054156/054157 pair (MAME names the file `k054156_k054157_k056832.cpp`). Konami68k's K052109 is a different, older generation. - U11: the plane count, the scroll and line-scroll rules, the 5/6/8 bpp modes and the bank latch's bits. Only MAME pictures can judge. ## K055673 with K053246: sprites - **OBSERVED:** sprite RAM 16 KB through the K055673 (`D20000-D23FFF`, `k053247_word_r/w`, i.e. the K053247-compatible RAM interface), K053246 registers at `D48000`, K055673 registers at `D4A010`, sprite-ROM readback at `D4A000`. ROM region `k055673` 2.5-48 MB. - konami68k-python's X-Men and Simpsons rows have the K053246/K053247 pair: the nearest family relation (see [cpu-cores.md](cpu-cores.md), "Reuse"). - U12: list format, the K055673's added depth modes, shadow and priority bits, list latch time. ## K053936: ROZ ("PSAC") - Types 1, 3 and 4 only. **OBSERVED:** control registers (`E00000-E0001F`), line RAM, a "PSAC" map RAM written through board handlers (`konamigx_t1_psacmap_w`, `konamigx_t4_psacmap_w`), ROZ ROMs in regions `gfx3`/`gfx4`, readback at `F00000-F7FFFF` on type 1. MAME 0.285 lists no `k053936` device on these sets: the ROZ is drawn inside the driver's video code. - **DOC:** the K055555 has two extra planes S1 and S2 with colour, priority, brightness and mix inputs; on Lethal Enforcers II (type 2) `S1COL`, `S1PRI` and the rest are tied to ground. - U13: which chip makes S1/S2 on each type (one or two K053936s), and how the PSAC map is built. - Also on: tmnt2 (Golfing Greats), plygonet, dbz, rungun, and non-Konami boards (V-System, Metro). ## K055555 (PCU2): priority mixer - **DOC:** inputs and outputs as in the chain above; registers on `AB1-6` with `DB8-15`; outputs `PSHD0-1`, `PBRI0-1`, `PMIX0-1`, `PDOTON`, `PPRI0-7`, `PCOL0-16`. **OBSERVED:** MAME writes it with `K055555_long_w` at `D50000-D500FF`. - U14: the priority rules (MAME marks every game "graphics imperfect"). ## K054338 (CLTC): colour, shadow, alpha, brightness - **DOC:** registers on `REGCS`, colour RAM on `RAMCS` with `UDS`/`LDS` and its own `DTACK`; takes `COL0-12`, `MIX0-1`, `SHD0-1`, `BREN0-1`, `NDOT`; drives three 8K x 8 colour SRAMs and `ROUT/GOUT/BOUT/BRIT 0-7`. So: **8,192 palette entries of 8:8:8 RGB**, plus a per-pixel brightness byte to the DAC. - U15: the shadow, alpha-mix and brightness arithmetic. MAME's model is the only detector. ## DAC stage 056766 (VDAC): 8-bit R, G, B with an 8-bit brightness input (`BROUT`); 056820 (VHIC) buffers. The picture model ends at 8:8:8 RGB per pixel; the brightness multiplication is part of the spec (U15), the analogue stage is not modelled.