Skip to content

Commit

Permalink
Make error if number of checkers is not enough, make sure write read …
Browse files Browse the repository at this point in the history
…sequence would at least make some checks
  • Loading branch information
M0stafaRady committed Oct 10, 2024
1 parent ddbe496 commit 0f8311c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bus_env/bus_seq_lib/write_read_regs.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ async def body(self):
self.create_new_item()
await uvm_do_with(self, self.req, lambda addr: addr in self.address)
if (
len(self.address) < 2
len(self.address) < 2 and i > 200
): # if only one is still can't get high coverage it probabily need corner test
break

Expand Down
2 changes: 1 addition & 1 deletion scoreboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def extract_phase(self, phase):
f"IP queue still have unchecked items queue ip {self.q_ip._queue} size {self.q_ip.qsize()} ip_ref_model {self.q_ip_ref_model._queue} size {self.q_ip_ref_model.qsize()}",
)
if self.compare_counter < self.min_compare_num:
uvm_warning(
uvm_error(
self.tag,
f"Not enough compares happened in scoreboard actual compares {self.compare_counter} minimum compares {self.min_compare_num}",
)
Expand Down

0 comments on commit 0f8311c

Please sign in to comment.