Skip to content

Commit

Permalink
Fix UVM scoreboard check VLEN bits only (#2742)
Browse files Browse the repository at this point in the history
  • Loading branch information
AyoubJalali authored Jan 27, 2025
1 parent 542fe39 commit 3e8eb88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion verif/env/uvme/uvme_cva6_sb.sv
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ function void uvme_cva6_sb_c::check_pc_trap(uvma_isacov_instr_c instr,
if (instr_prev.trap) begin
if (mtvec_change) begin
if(cfg.xlen == 32) begin
if (instr.rvfi.pc_rdata[31:2] == mtvec_value[31:2]) begin
if (instr.rvfi.pc_rdata[RTLCVA6Cfg.VLEN-1:2] == mtvec_value[RTLCVA6Cfg.VLEN-1:2]) begin
//we only support MTVEC Direct mode
`uvm_info(get_type_name(), $sformatf("After a trap, PC matches MTVEC value"), UVM_DEBUG)
end
Expand Down

0 comments on commit 3e8eb88

Please sign in to comment.