# The physical map, the register blocks and interrupts Sources: YAGCD chapters 4, 5 and 6 (community, no licence: facts only, cited by section; tier 3, not hardware-verified as a whole); MAME 0.285's `triforce` skeleton map (OBSERVED, tier 5). The CPU sees these through its BATs (gekko-python mmu-exceptions.md). ## Physical map (YAGCD 4.1, logical addresses converted to physical) | Physical | Size | What | Notes | | --- | --- | --- | --- | | 0x00000000 | 24 MB | main memory | seen at 0x80000000 (cached) and 0xC0000000 (uncached) through the Dolphin OS's BATs | | 0x08000000 | 2 MB window | EFB access ("poke/peek") | seen at 0xC8000000; reads and writes go through the pixel engine (gx.md) | | 0x0C000000 | | CP | | | 0x0C001000 | | PE | | | 0x0C002000 | | VI | | | 0x0C003000 | | PI: interrupt cause and mask, the CPU-side FIFO pointers, reset | | | 0x0C004000 | 0x80 | MI: memory protection (4 regions of 1 KB pages) and counters | | | 0x0C005000 | | DSP mailboxes, DSP control, ARAM setup and ARAM DMA, audio (AI) DMA | YAGCD's overview table labels it "AI" (C1) | | 0x0C006000 | 0x40 | DI | | | 0x0C006400 | | SI | | | 0x0C006800 | | EXI (three channels) | | | 0x0C006C00 | | AI: streaming control, volume, sample counter, interrupt timing | YAGCD calls it "Streaming Interface" in 4.1, "AI" in 5.10 | | 0x0C008000 | | GX FIFO (write-gather target) | | | 0xFFF00000 | 1 MB window | the IPL at reset | read through EXI's descrambler at boot (ipl-firmware.md) | MAME's `triforce` skeleton maps RAM 0x00000000-0x017FFFFF, handlers at 0x0C003000-0x0C003FFF (PI) and 0x0C006800-0x0C0068FF (EXI), and its boot ROM at 0xFFF00000-0xFFFFFFFF (OBSERVED, tests/detectors/mame-probe-2026-11-26.txt): consistent with YAGCD where they overlap. **Unknowns for the board's map (handoff-brief U-list):** open-bus values; what a register block returns at an unused offset; mirrors; access widths each block accepts (YAGCD marks most widths and many directions "?/?"); the latency of a main-memory transaction and of a register access in CPU cycles (no source in hand gives either). ## Register access widths YAGCD lists most PI, MI, DSP and AI registers as 16-bit and the DI, SI, EXI and AI-stream registers as 32-bit (YAGCD 5.4-5.10). The 60x bus can issue 8-, 16-, 32- and 64-bit single beats and 32-byte bursts; what each block does with a width it does not expect is unknown (U4). The specification models each register with its documented width and makes every other width an explicit, logged "unknown access" until evidence decides. ## Interrupts (PI; YAGCD 5.4, 6) PI's interrupt cause register (0x0C003000) and mask register (0x0C003004) carry one bit per source: 13 HSP (hi-speed port), 12 DEBUG, 11 CP (command FIFO), 10 PE FINISH, 9 PE TOKEN, 8 VI, 7 MEM (MI protection), 6 DSP, 5 AI (streaming), 4 EXI, 3 SI, 2 DI, 1 RSW (the reset switch), 0 ERROR (GP runtime error) (YAGCD 5.4). Each source is itself a latch-and-enable pair in its block (VI's four display interrupts, the DSP's three, DI's three, EXI's per channel). YAGCD says two things the specification cannot take as they stand: - "Interrupt cause register resets to 0, when read": a read-to-clear cause register. Yet the same section says the cause bits follow the source devices ("you must clear corresponding source device registers"). The two readings conflict (C2). The natural hardware reading (HYPOTHESIS): each cause bit is the OR of its block's pending-and-enabled latches, cleared at the block, and the RSW bit is the one latched in PI. - "Interrupt mask register isn't controlled by hardware logic. Note that masking of interrupt in INTMR doesn't disable it at all": that would mean INT is asserted whenever any cause is set, whatever the mask. Whether the mask gates the Gekko's INT pin is U1, and it changes when the CPU is interrupted, which is in the observable contract. Both are first questions for a hardware-verified test (validation.md). ## The CPU's view of time The Gekko's time base and decrementer count at bus/4 (40.5 MHz; Gekko UM 2.1.1). The VI's line and field interrupts, the AI's sample counter and interrupt timing register, the DSP's mailbox interrupts, DI and SI completions, and the CP's FIFO watermarks are the board's timed events (domains-and-speed.md).