Skip to content

Commit

Permalink
[cip/dv] Increase timeout when waiting for access
Browse files Browse the repository at this point in the history
Some CSR accesses via JTAG take a long time, hence the timeout
in wait_to_issue_reset() needs to be higher so that the function
does not error out unexpectedly.

Signed-off-by: Michael Schaffner <[email protected]>
  • Loading branch information
msfschaffner committed Feb 15, 2024
1 parent 25aedc2 commit 22a1c10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hw/dv/sv/cip_lib/seq_lib/cip_base_vseq.sv
Original file line number Diff line number Diff line change
Expand Up @@ -746,10 +746,10 @@ class cip_base_vseq #(
// Wait a random number of cycles (up to reset_delay_bound) before triggering the reset.
cfg.clk_rst_vif.wait_clks(rand_reset_delay);

// If there is an outstanding access, wait up to 1000 more cycles to allow it to clear. If it
// If there is an outstanding access, wait up to 10000 more cycles to allow it to clear. If it
// doesn't clear, something has gone wrong: we don't expect there to permanently be CSR
// accesses.
for (int i = 0; i < 1000; i++) begin
for (int i = 0; i < 10000; i++) begin
if (!has_outstanding_access()) break;
cfg.clk_rst_vif.wait_clks(1);
end
Expand Down

0 comments on commit 22a1c10

Please sign in to comment.