mirror of
https://github.com/openhwgroup/cva6.git
synced 2025-04-19 03:44:46 -04:00
Fix UVM scoreboard check VLEN bits only (#2742)
This commit is contained in:
parent
542fe39adc
commit
3e8eb88e88
1 changed files with 1 additions and 1 deletions
2
verif/env/uvme/uvme_cva6_sb.sv
vendored
2
verif/env/uvme/uvme_cva6_sb.sv
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue