Skip to content

Commit

Permalink
APP-UVM: [BUGFIX] Increased module/end timeouts due to very slow sequ…
Browse files Browse the repository at this point in the history
…ences
  • Loading branch information
jakubcabal committed Sep 23, 2024
1 parent 062c175 commit c5a959d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app/uvm/tests/base.sv
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class base#(ETH_STREAMS, ETH_CHANNELS, ETH_PKT_MTU, ETH_RX_HDR_WIDTH, ETH_TX_HDR
endfunction

function void connect_phase(uvm_phase phase);
m_env.delay_max_set(1ms);
m_env.delay_max_set(10ms, 10ms);
endfunction

virtual task run_reset(uvm_phase phase);
Expand Down Expand Up @@ -151,7 +151,7 @@ class base#(ETH_STREAMS, ETH_CHANNELS, ETH_PKT_MTU, ETH_RX_HDR_WIDTH, ETH_TX_HDR
stop_seq.start(m_env.m_sequencer);
join_none;

end_time = $time() + 1ms; // Prevents verification from freezing after a very long time!
end_time = $time() + 50ms; // Prevents verification from freezing after a very long time!
rdy2end = 0;
while (end_time > $time() && rdy2end < 5) begin
// The check of the number of incomplete packets in the verification must pass repeatedly!
Expand Down
4 changes: 2 additions & 2 deletions app/uvm/tests/fifo.sv
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ class fifo#(ETH_STREAMS, ETH_CHANNELS, ETH_PKT_MTU, ETH_RX_HDR_WIDTH, ETH_TX_HDR

function void connect_phase(uvm_phase phase);
super.connect_phase(phase);
m_env.delay_max_set(1ms);
m_env.delay_max_set(10ms, 10ms);
endfunction

virtual task run_phase(uvm_phase phase);
Expand Down Expand Up @@ -405,7 +405,7 @@ class fifo#(ETH_STREAMS, ETH_CHANNELS, ETH_PKT_MTU, ETH_RX_HDR_WIDTH, ETH_TX_HDR
stop_seq.start(m_env.m_sequencer);
join_none;

end_time = $time() + 1ms; // Prevents verification from freezing after a very long time!
end_time = $time() + 50ms; // Prevents verification from freezing after a very long time!
rdy2end = 0;
while (end_time > $time() && rdy2end < 5) begin
// The check of the number of incomplete packets in the verification must pass repeatedly!
Expand Down
4 changes: 2 additions & 2 deletions app/uvm/tests/full_speed.sv
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ class full_speed#(ETH_STREAMS, ETH_CHANNELS, ETH_PKT_MTU, ETH_RX_HDR_WIDTH, ETH_

function void connect_phase(uvm_phase phase);
super.connect_phase(phase);
m_env.delay_max_set(1ms);
m_env.delay_max_set(10ms, 10ms);
endfunction

virtual task run_phase(uvm_phase phase);
Expand Down Expand Up @@ -188,7 +188,7 @@ class full_speed#(ETH_STREAMS, ETH_CHANNELS, ETH_PKT_MTU, ETH_RX_HDR_WIDTH, ETH_
stop_seq.start(m_env.m_sequencer);
join_none;

end_time = $time() + 1ms; // Prevents verification from freezing after a very long time!
end_time = $time() + 50ms; // Prevents verification from freezing after a very long time!
rdy2end = 0;
while (end_time > $time() && rdy2end < 5) begin
// The check of the number of incomplete packets in the verification must pass repeatedly!
Expand Down

0 comments on commit c5a959d

Please sign in to comment.