Donald Sebastian Leung 7c60451bfa | ||
---|---|---|
.. | ||
README.md | ||
insn.py | ||
insn_I.py | ||
insn_I_shift.py | ||
insn_R.py | ||
insn_S.py | ||
insn_SB.py | ||
insn_U.py | ||
insn_UJ.py | ||
insn_add.py | ||
insn_addi.py | ||
insn_and.py | ||
insn_andi.py | ||
insn_auipc.py | ||
insn_beq.py | ||
insn_bge.py | ||
insn_bgeu.py | ||
insn_blt.py | ||
insn_bltu.py | ||
insn_bne.py | ||
insn_div.py | ||
insn_divu.py | ||
insn_jal.py | ||
insn_jalr.py | ||
insn_lb.py | ||
insn_lbu.py | ||
insn_lh.py | ||
insn_lhu.py | ||
insn_lui.py | ||
insn_lw.py | ||
insn_mul.py | ||
insn_mulh.py | ||
insn_mulhsu.py | ||
insn_mulhu.py | ||
insn_or.py | ||
insn_ori.py | ||
insn_rem.py | ||
insn_remu.py | ||
insn_sb.py | ||
insn_sh.py | ||
insn_sll.py | ||
insn_slli.py | ||
insn_slt.py | ||
insn_slti.py | ||
insn_sltiu.py | ||
insn_sltu.py | ||
insn_sra.py | ||
insn_srai.py | ||
insn_srl.py | ||
insn_srli.py | ||
insn_sub.py | ||
insn_sw.py | ||
insn_types.md | ||
insn_xor.py | ||
insn_xori.py | ||
isa_rv32i.py | ||
isa_rv32i.txt | ||
isa_rv32i_gen.py | ||
isa_rv32im.py | ||
isa_rv32im.txt | ||
isa_rv32im_gen.py |
README.md
RISC-V Instructions
Refer to the table below for the instructions currently supported. At the time of writing, it covers the instructions in the RV32I base ISA except FENCE, ECALL and EBREAK, as well as the RV32M extension*.
Instruction type | Instructions |
---|---|
U-type | lui, auipc |
UJ-type | jal |
I-type | jalr, lb, lh, lw, lbu, lhu, addi, slti, sltiu, xori, ori, andi |
SB-type | beq, bne, blt, bge, bltu, bgeu |
S-type | sb, sh, sw |
I-type (shift variation) | slli, srli, srai |
R-type | add, sub, sll, slt, sltu, xor, srl, sra, or, and, mul, mulh, mulhsu, mulhu, div, divu, rem, remu |
* Due to limitations with modern solvers, they are sometimes unable to verify assertions involving multiplication and/or division; therefore, the core under test is expected to implement alternative operations for the RV32M extensions for the purposes of formal verification only, replacing multiplication/division operations with addition/subtraction and XORing with selected bitmasks.
Caveats
At the time of writing, the set of instructions supported in this port of riscv-formal is a mere subset of those supported in the original riscv-formal; for example, compressed instructions and 64-bit ISAs/extensions are not supported. Also note that the original riscv-formal contains tunable parameters that have been fixed to certain values in this translation:
Parameter from riscv-formal | Fixed value in riscv-formal-nmigen |
---|---|
RISCV_FORMAL_ILEN |
32 |
RISCV_FORMAL_XLEN |
32 |
RISCV_FORMAL_CSR_MISA |
undefined |
RISCV_FORMAL_COMPRESSED |
undefined |
RISCV_FORMAL_ALIGNED_MEM |
undefined |
RISCV_FORMAL_ALTOPS |
defined |