diff --git a/model/riscv_insts_base.sail b/model/riscv_insts_base.sail index 4261e8ccd..f9bb07f1c 100644 --- a/model/riscv_insts_base.sail +++ b/model/riscv_insts_base.sail @@ -175,11 +175,17 @@ function clause execute (BTYPE(imm, rs2, rs1, op)) = { } mapping btype_mnemonic : bop <-> string = { + $[name "branch if equal"] RISCV_BEQ <-> "beq", + $[name "branch if not equal"] RISCV_BNE <-> "bne", + $[name "branch if less than"] RISCV_BLT <-> "blt", + $[name "branch if greater than"] RISCV_BGE <-> "bge", + $[name "branch if less than (unsigned)"] RISCV_BLTU <-> "bltu", + $[name "branch if greater than or equal to (unsigned)"] RISCV_BGEU <-> "bgeu" } @@ -295,8 +301,11 @@ function clause execute (SHIFTIOP(shamt, rs1, rd, op)) = { } mapping shiftiop_mnemonic : sop <-> string = { + $[name "shift left (logical) immediate"] RISCV_SLLI <-> "slli", + $[name "shift right (logical) immediate"] RISCV_SRLI <-> "srli", + $[name "shift right (arithmetic) immediate"] RISCV_SRAI <-> "srai" } @@ -644,8 +653,11 @@ function clause execute (SHIFTIWOP(shamt, rs1, rd, op)) = { } mapping shiftiwop_mnemonic : sopw <-> string = { + $[name "shift left (logical) immediate word (RV64)"] RISCV_SLLIW <-> "slliw", + $[name "shift right (logical) immediate word (RV64)"] RISCV_SRLIW <-> "srliw", + $[name "shift right (arithmetic) immediate word (RV64)"] RISCV_SRAIW <-> "sraiw" }