Home /Modules/cpu/SPECIFICATION.md

SPECIFICATION.md

lib/cpu/playstation-2/SPECIFICATION.md · 75 line(s) · markdown

PlayStation 2 (Emotion Engine / MIPS) Specification

1. Identity

Model: PlayStation 2 (Emotion Engine / MIPS) Architecture class: 64-bit console main CPU (MIPS) Data path: 64-bit Addressing: 32-bit external address space (4 GiB) Register model: RISC general-purpose register file

The profile exposes a programmer model while using the shared SLeeLa CPU objects (clock, register file, ALU, decoder, bus) to sequence each instruction.

2. Programmer-visible state

MIPS III/IV register model (32 128-bit GP, r0 zero) in the Emotion Engine.

The SLeeLa model stores these in SLRegisterFile and exposes 34 addressable register slots to the runnable model.

3. Address and data path

4. Clock

Rated model clock: about 294 MHz (overclockable in the model via setSpecClock).

The model records nominal frequency, cycle number, bus direction, and completion phase. Clock frequency is not instruction latency: one instruction may consume multiple cycles.

5. Execution model

The SLeeLa model sequences each instruction as:

  1. instruction fetch;
  2. opcode decode;
  3. operand/address acquisition;
  4. ALU/register operation;
  5. memory read/write;
  6. next-instruction transition.

6. Cache

cache coherence protocol: none

7. DMA

The processor/SoC integrates a DMA engine; SLeeLa may instantiate SLDMAController for it.

8. Interrupts

The model records interrupt request, recognition, vector/entry and timing through SLInterruptController without inventing undocumented internal behavior.

9. MMU/TLB

The processor integrates an MMU/TLB; address translation is modeled as virtual -> physical through that unit.

10. Evidence labels

Sources