Skip to content

Commit 3fdc470

Browse files
committed
Merge branch 'marushchenko-fix-uvm-network_module-add_delay_to_prevent_sending_counter_reset_command_too_soon' into 'devel'
Add a delay to prevent sending the counter reset command too soon in the NETMOD verification See merge request ndk/ndk-fpga!214
2 parents 9653423 + 850b92b commit 3fdc470

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

core/comp/eth/network_mod/uvm/tbench/cmac/env/sequence.sv

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@ class virt_sequence_port #(
165165
seq_sync_usr_rx.send_stop();
166166
seq_sync_eth_tx.send_stop();
167167

168+
#(300ns);
169+
168170
// Read statistics
169171
for (int unsigned it = 0; it < ETH_PORT_CHAN; it++) begin
170172
uvm_network_mod_env::read_rx_counters#(RX_MAC_COUNT) rx_stats;
@@ -188,6 +190,8 @@ class virt_sequence_port #(
188190
tx_stats.reset();
189191
join
190192

193+
#(40ns);
194+
191195
fork
192196
rx_stats.start(null);
193197
tx_stats.start(null);

core/comp/eth/network_mod/uvm/tbench/e-tile/env/sequence.sv

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ class virt_sequence_port #(ETH_TX_HDR_WIDTH, ETH_RX_HDR_WIDTH, ITEM_WIDTH, REGIO
151151
seq_sync_usr_rx.send_stop();
152152
seq_sync_eth_rx.send_stop();
153153

154+
#(300ns);
155+
154156
//READ STATISTIC
155157
for (int unsigned it = 0; it < ETH_PORT_CHAN; it++) begin
156158
uvm_network_mod_env::read_rx_counters#(RX_MAC_COUNT) rx_stats;

core/comp/eth/network_mod/uvm/tbench/f-tile/env/sequence.sv

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,8 @@ class virt_sequence_port #(
162162
seq_sync_usr_rx.send_stop();
163163
seq_sync_eth_rx.send_stop();
164164

165+
#(300ns);
166+
165167
//READ STATISTIC
166168
for (int unsigned it = 0; it < ETH_PORT_CHAN; it++) begin
167169
uvm_network_mod_env::read_rx_counters#(RX_MAC_COUNT) rx_stats;
@@ -185,7 +187,7 @@ class virt_sequence_port #(
185187
tx_stats.reset();
186188
join
187189

188-
//#(40ns);
190+
#(40ns);
189191

190192
fork
191193
rx_stats.start(null);

0 commit comments

Comments
 (0)