Home /Modules/cpu/REGISTERS.md

REGISTERS.md

lib/cpu/sifive-u74/REGISTERS.md · 21 line(s) · markdown

SiFive U74 (RISC-V RV64GC) Registers

The programmer-visible register model is a RISC general-purpose register file.

Registers: RISC-V RV64GC register model (x0 hardwired zero, x1-x31, 32 FP), Sv39 MMU.

The model exposes 32 addressable register slots backed by SLRegisterFile. Register slot 0 is modeled as a hardwired zero (reads 0, writes discarded), per the architecture.

Status / condition state

Condition/zero/negative state is tracked by the model's flag fields (flagZ/flagN) and any architecture status register listed above. Flags are updated by ALU and compare operations.

Internal state

The physical device contains internal latches and buses used during address and data movement. SLeeLa promotes an internal element to a modeled register only when it affects bus visibility, cycle timing, interrupt restart, address formation, or instruction sequencing.

Sources