auipc

Add upper immediate to pc

This instruction is defined by:

Encoding

svg

Synopsis

Add an immediate to the current PC.

Access

M

HS

U

VS

VU

Always

Always

Always

Always

Always

Decode Variables

Bits<32> imm = {$encoding[31:12], 12'd0};
Bits<5> rd = $encoding[11:7];

Execution

  • Pruned, XLEN == 64

  • Original

X[rd] = $pc + imm;
X[rd] = $pc + imm;