Skip to content

Commit

Permalink
[cip,dv] Explicit some fcov flags init val.
Browse files Browse the repository at this point in the history
- Explicit has_mem_byte_access_err, has_wo_mem, has_ro_mem values as
no default has been set, which can lead to different behaviour with
different simulators I guess.

Signed-off-by: Martin Velay <mvelay@lowrisc.org>
  • Loading branch information
martin-velay authored and rswarbrick committed Dec 13, 2024
1 parent 41fc2b1 commit 2195059
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hw/dv/sv/cip_lib/cip_base_pkg.sv
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ package cip_base_pkg;
uvm_mem mems[$];
reg_block.get_memories(mems);

has_mem_byte_access_err = 0;
has_wo_mem = 0;
has_ro_mem = 0;

foreach (mems[i]) begin
dv_base_mem dv_mem;
`downcast(dv_mem, mems[i], , , msg_id)
Expand Down

0 comments on commit 2195059

Please sign in to comment.