Nios® V Processor Reference Manual

ID 683632
Date 5/25/2025
Public

Visible to Intel only — GUID: vbx1629431725764

Ixiasoft

Document Table of Contents

3.3.1. General-Purpose Register File

Nios® V/m processor implementation supports a flat register file. The register file contains thirty-two 32-bit general-purpose integer registers. Nios® V/m processor implements the general-purpose register using M20K memories, which do not support two read ports. Hence, Nios® V/m processor duplicates the register files so that two different source registers for an instruction are available in a single cycle. After performing ALU operations, the processor core writes the same result to the destination register in both memories.

Table 25.   Nios® V Processor General-Purpose Register File
Register ABI Description Register ABI Description
x0 zero Hardwired to zero x16 a6 Function argument 6
x1 ra Return address x17 a7 Function argument 7
x2 sp Stack pointer x18 s2 Saved register 2
x3 gp Global pointer x19 s3 Saved register 3
x4 tp Thread pointer x20 s4 Saved register 4
x5 t0 Temporary 0 x21 s5 Saved register 5
x6 t1 Temporary 1 x22 s6 Saved register 6
x7 t2 Temporary 2 x23 s7 Saved register 7
x8 s0/fp
  • Saved register 0
  • Frame pointer
x24 s8 Saved register 8
x9 s1 Saved register 1 x25 s9 Saved register 9
x10 a0
  • Function argument 0
  • Return value 0
x26 s10 Saved register 10
x11 a1
  • Function argument 1
  • Return value 1
x27 s11 Saved register 11
x12 a2 Function argument 2 x28 t3 Temporary 3
x13 a3 Function argument 3 x29 t4 Temporary 4
x14 a4 Function argument 4 x30 t5 Temporary 5
x15 a5 Function argument 5 x31 t6 Temporary 6