mirror of
https://github.com/openhwgroup/cva6.git
synced 2025-06-27 17:00:57 -04:00
Add missing value to return (#2959)
return requires a value to be returned (detected as an xcelium compilation error). Set a default value of 0.
This commit is contained in:
parent
6d9b76e560
commit
806a12d16d
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
|
@ -323,7 +323,7 @@ endfunction : check_mepc
|
|||
function bit [XLEN:0] uvme_cva6_sb_c::check_mcycle_h(uvma_isacov_instr_c instr, uvma_isacov_instr_c instr_prev, int cycle_count);
|
||||
|
||||
// Check mcycle value after a CSR read
|
||||
if (instr_prev == null) return;
|
||||
if (instr_prev == null) return 0;
|
||||
|
||||
write_in_mcycle = (instr_prev.is_csr_write() && instr_prev.csr_val == 12'hb00) ? 1 : 0;
|
||||
if (cfg.xlen == 32) begin
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue