mirror of
https://github.com/openhwgroup/cva6.git
synced 2025-04-20 04:07:36 -04:00
Configure uvm scoreboard to fix 64 issue (#2440)
This commit is contained in:
parent
af4e3744d4
commit
9b576c1200
1 changed files with 10 additions and 4 deletions
14
verif/env/uvme/uvme_cva6_sb.sv
vendored
14
verif/env/uvme/uvme_cva6_sb.sv
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue