Fix UVM scoreboard check VLEN bits only (#2742)
Some checks are pending
bender-up-to-date / bender-up-to-date (push) Waiting to run
ci / build-riscv-tests (push) Waiting to run
ci / execute-riscv64-tests (push) Blocked by required conditions
ci / execute-riscv32-tests (push) Blocked by required conditions

This commit is contained in:
Jalali 2025-01-27 23:07:58 +00:00 committed by GitHub
parent 542fe39adc
commit 3e8eb88e88
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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