Crate lib_rv32_isa Copy item path
Summary Source pub use lib_rv32_common as common;
decode Decoding macros. traits Traits to be implementation by other implementations of
an MCU. b_imm Decode the B-type immediate from a u32
formatted instruction. decode_func3 Decode the FUNC3 field from a u32
formatted instruction. decode_func7 Decode the FUNC7 field from a u32
formatted instruction. decode_i_imm Decode the I-type immediate from a u32
formatted instruction. decode_j_imm Decode the J-type immediate from a u32
formatted instruction. decode_opcode Decode the opcode field from a u32
formatted instruction. decode_rd Decode the destination register field from a u32
formatted instruction. decode_rs1 Decode the first operand register field from a u32
formatted instruction. decode_rs2 Decode the second operand register field from a u32
formatted instruction. decode_s_imm Decode the S-type immediate from a u32
formatted instruction. decode_u_imm Decode the U-type immediate from a u32
formatted instruction. RiscvError Enum that encapsulates the various different ways execution can fail.
Some errors are caused by other errors and reference them. exec_one Decode and execute instruction. This will use the program counter to
fetch an instruction from memory, decode/evaluate it, and commit the
results to pc
, mem
, and rf
.