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§
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)