risc-v

Definition

R-Type Instruction (RISC-V)

An R-type instruction encodes an operation on two source registers and one destination register. It is used for register-register arithmetic and logical operations.

Synopsis

R-type instructions use three register operands: two source registers (rs1, rs2) and one destination register (rd).

The remaining fields provide the operation encoding:

  • funct7 selects the high-level variant.
  • funct3 selects the specific operation within that variant.
  • op identifies the instruction as an R-type register-register operation.