risc-v

Definition

U-Type Instruction (RISC-V)

A U-type instruction encodes a 20-bit immediate that is placed in the upper bits of a register.

Synopsis

U-type instructions use a 20-bit immediate (imm_{31:12}) that is written into the upper bits of the destination register.

The remaining fields provide the operation encoding:

  • rd names the destination register.
  • op identifies the instruction as a U-type instruction.