Module instruction

Module instruction 

Source

Modules§

alu_funct3
Arithmetic/Logic instruction function codes
branch_funct3
Branch instruction function codes
csr
Common CSR addresses
load_funct3
Load instruction function codes
m_funct3
M Extension (Multiply/Divide) instruction function codes All M-extension instructions use funct7 = 0x01 and opcode = OP (0x33)
m_funct7
M Extension funct7 code
opcodes
Common RISC-V opcodes
privileged_funct12
Privileged instruction function codes (funct12 field)
reg
Common registers
store_funct3
Store instruction function codes
system_funct3
SYSTEM instruction function codes

Structs§

Csr
RISC-V CSR representation
Register
RISC-V register representation

Enums§

Instruction
RISC-V instruction representation (supports both 32-bit and 16-bit compressed instructions)

Functions§

encode_b_type
B-type instruction encoding (Branch)
encode_csr_imm_type
CSR immediate instruction encoding
encode_csr_type
CSR instruction encoding (I-type variant)
encode_i_type
I-type instruction encoding
encode_j_type
J-type instruction encoding (Jump)
encode_privileged_type
Privileged instruction encoding (special SYSTEM instructions)
encode_r_type
R-type instruction encoding
encode_s_type
S-type instruction encoding (Store)
encode_u_type
U-type instruction encoding (Upper immediate)