Skip to content

Commit

Permalink
[ISAC] Fix undefined rs1_val, rs2_val (#547)
Browse files Browse the repository at this point in the history
Signed-off-by: MingZhu Yan <[email protected]>
Co-authored-by: Umer Shahid <[email protected]>
  • Loading branch information
trdthg and UmerShahidengr authored Nov 7, 2024
1 parent 6084ed8 commit 16dc5b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions riscv-isac/riscv_isac/coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -1157,10 +1157,10 @@ def get_pte_prop(prop_name, pte_addr):
lcls={}
if instr.is_rvp and "rs1" in value:
op_width = 64 if instr.rs1_nregs == 2 else xlen
simd_val_unpack(value['val_comb'], op_width, "rs1", rs1_val, lcls)
simd_val_unpack(value['val_comb'], op_width, "rs1", instr_vars['rs1_val'], lcls)
if instr.is_rvp and "rs2" in value:
op_width = 64 if instr.rs2_nregs == 2 else xlen
simd_val_unpack(value['val_comb'], op_width, "rs2", rs2_val, lcls)
simd_val_unpack(value['val_comb'], op_width, "rs2", instr_vars['rs2_val'], lcls)
instr_vars.update(lcls)
for coverpoints in value['val_comb']:
if eval(coverpoints, globals(), instr_vars):
Expand Down

0 comments on commit 16dc5b8

Please sign in to comment.