Home /Modules/cpu/SPECIFICATION.md

SPECIFICATION.md

lib/cpu/amd-ryzen/SPECIFICATION.md · 75 line(s) · markdown

AMD Ryzen (Zen x86-64) Specification

1. Identity

Model: AMD Ryzen (Zen x86-64) Architecture class: 64-bit multi-core microprocessor Data path: 64-bit Addressing: 48-bit external address space (256 TiB) Register model: CISC named/split register set

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

x86-64 register model (Zen microarchitecture) with per-core L1/L2 and shared L3 per CCX/CCD.

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

3. Address and data path

4. Clock

Rated model clock: about 4500 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: modeled where multi-core

7. DMA

The base CPU has no integrated DMA controller; DMA is a system-level bus-master concern and SLDMAController is left uninstantiated for the base profile.

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