Configure uvm scoreboard to fix 64 issue (#2440)

This commit is contained in:
Jalali 2024-08-13 07:16:54 +00:00 committed by GitHub
parent af4e3744d4
commit 9b576c1200
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -240,12 +240,18 @@ function void uvme_cva6_sb_c::check_pc_trap(uvma_isacov_instr_c instr,
if (instr_prev != null) begin
if (instr_prev.trap) begin
if (mtvec_change) begin
if (instr.rvfi.pc_rdata[31:2] == mtvec_value[31:2]) begin
//we only support MTVEC Direct mode
`uvm_info(get_type_name(), $sformatf("After a trap, PC matches MTVEC value"), UVM_DEBUG)
if(cfg.xlen == 32) begin
if (instr.rvfi.pc_rdata[31:2] == mtvec_value[31:2]) begin
//we only support MTVEC Direct mode
`uvm_info(get_type_name(), $sformatf("After a trap, PC matches MTVEC value"), UVM_DEBUG)
end
else begin
`uvm_fatal(get_type_name(), "ERROR -> Doesn't jump to MTVEC")
end
end
else begin
`uvm_fatal(get_type_name(), "ERROR -> Doesn't jump to MTVEC")
//TODO add 64 bit configuration support
`uvm_info(get_type_name(), $sformatf("We only support 32 bit configuration"), UVM_DEBUG)
end
end
else begin