# The PowerPC 603e and 603ev, and one PowerPC core or two Sources (pinned): Motorola's MPC603e & EC603e User's Manual, Rev. 1, 1997 (**603EUM**), the PowerPC Programming Environments Manual for 32-bit implementations, Rev. 2, 2001 (**PEM**), IBM's PowerPC 603e (PID6) hardware specification, Dec. 1996 (**603EHS**), the MPC105 and MPC106 PCI bridge manuals, and IBM's Gekko User's Manual, May 2000 (**GEKKO**), fetched only for the comparison below. All Motorola/IBM copyright, facts only (DOC). ## Which parts MAME 0.285 runs an "IBM PowerPC 603E" at 66 MHz (step 1.0) and 100 MHz (1.5), and an "IBM PowerPC 603R" at 166 MHz (2.0, 2.1), all on a 66 MHz bus (OBSERVED, M3 `add_cpu_*`). "603R" is MAME's name for the 603ev ("PID7v"), the 0.29-micron 603e (HYPOTHESIS: the name; to be checked against an IBM or Motorola 603ev document, U4). The step's core:bus ratio (1, 1.5, 2.5) is set by the PLL_CFG pins (603EUM 7-30, table 7-10; 603EHS PLL tables). Whether the step 1.5 board really runs at 100 MHz is C1 in [board.md](board.md). ## What the core must model (603EUM) - **Superscalar issue:** "can issue and retire as many as three instructions per clock", with out-of-order execution and sequential-looking completion (603EUM 1-2); five units: integer (IU), floating point (FPU), load/store (LSU), system register (SRU), branch (BPU) (603EUM 1.1.4). Instruction timing is in chapter 6 and appendix C; timing as data has a tier-2 source, as for the i960. - **Caches:** 16 KB instruction and 16 KB data, four-way set-associative, physically addressed, LRU (603EUM 1-2, section 1.1.2.2.1). The LRU is not readable by software (no cache-array access instructions in the 603e's OEA set: HYPOTHESIS, to confirm in 603EUM ch. 5), so a cached interpreter may key decoded blocks by line without changing what software sees, as the N64 document argues for the VR4300. - **MMU with software table walks.** The 603e has no hardware page-table search: a TLB miss raises one of three exceptions (instruction miss, data load miss, data store miss), and the handler reloads the TLB with **`tlbli` / `tlbld`** using the 603e-only registers IMISS, DMISS, HASH1, HASH2, ICMP, DCMP and RPA (603EUM 1-14 and its chapter 5 MMU description). Block address translation (BATs) as PEM. - **The bus:** 64-bit data, 32-bit address, the 60x bus protocol to an MPC105 or MPC106 bridge/memory controller (the bridge manuals). The bridges own DRAM timing, PCI configuration, and the PCI path to the Real3D (and on step 1.x to the 53C810). ## One PowerPC core with variants, or two cores? Tonight's `../gekko-python` Phase 0 (GameCube) committed five commits while this phase was ending (read-only check, HEAD 5072370). It already plans the Wii's Broadway as a variant (its README), builds its own test assembler in `tests/`, and uses MAME's **ppc603** core (through the `triforce` driver) as its integer detector, noting "a 603 has a software-reloaded TLB; the Gekko, like the 750, walks the page table" (its docs/mame-oracle.md). So the 603e is already the Gekko line's detector CPU; a `ppc603e` variant would make that detector a sibling row of the same core. The comparison below is from the manuals. | Dimension | 603e / 603ev (Model 3) | Gekko (GameCube; Broadway on the Wii) | Shared? | | --- | --- | --- | --- | | User ISA (UISA), VEA, most of the OEA | PowerPC 32-bit (PEM) | PowerPC 32-bit (PEM) | **yes**: the bulk of decode and semantics | | Extensions | none | paired singles, quantised load/store with GQRs (GEKKO 2-23, 2-29, table 2-43), locked cache, DMA, write-gather pipe (GEKKO ch. 9) | no: a variant feature set | | MMU table walk | software (`tlbli`/`tlbld`, miss exceptions) | hardware page-table search (GEKKO 5.4.5) | no: a variant MMU model | | Caches | 16 + 16 KB, 4-way | 32 + 32 KB, eight-way (GEKKO ch. 1, "32 Kbyte, eight-way set-associative"), plus an on-chip L2 (GEKKO ch. 9) | variant geometry | | Pipeline and timing | 603e: one IU, up to three instructions per clock | 750-class: a BHT (GEKKO block diagram), two integer units (HYPOTHESIS from the 750 lineage, to confirm) | variant timing tables | | HID registers, PVR, power management | 603e's | Gekko's | variant | **Recommendation (decision R2): one PowerPC core repository with variant rows**, the way sh2-python serves the 32X and Saturn and r3000a-python the PlayStation's two CPUs: decode and UISA semantics shared; per variant a feature set (paired singles, GQRs), an MMU model (software reload vs hardware walk), cache geometry, and timing tables as data. Under the family's naming rule the repository is named for its first chip, and Gekko's Phase 0 is first, so `gekko-python` with a `ppc603e` variant is the cheapest path; a neutral name (`powerpc-python`) reads better once two consoles and an arcade board pin it. Aubrey's call; this phase recommends the neutral name, decided together with the gekko-python agent's report. ## Python and test programs No PowerPC test suite with hardware-captured results under a permissive licence was found in this phase (Dolphin's hardware tests are GPL: closed box; U5). The Gekko Phase 0 may find one. MAME's BSD-3 PowerPC files (`ppccom.cpp`, `ppc.h`, `ppccom.h`, Aaron Giles) are pinned as a detector description; MAME's interpreter and DRC share `ppccom.cpp`.