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:
OlivierBetschi 2025-05-12 23:08:26 +02:00 committed by GitHub
parent 6d9b76e560
commit 806a12d16d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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