Skip to content

Commit dcfcf0c

Browse files
committed
fix(tx_mac_lite): fix UMII verification according to new asserts
1 parent 344ddc1 commit dcfcf0c

File tree

1 file changed

+7
-5
lines changed
  • comp/nic/mac_lite/tx_mac_lite/top/umii/ver/tbench

1 file changed

+7
-5
lines changed

comp/nic/mac_lite/tx_mac_lite/top/umii/ver/tbench/test.sv

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ import crc32_ethernet_pkg::*;
1414
program TEST (
1515
input logic RX_CLK,
1616
input logic RX_CLK_X2,
17-
output logic RX_RESET,
17+
output logic RX_RESET=1,
1818
input logic TX_CLK,
19-
output logic TX_RESET,
19+
output logic TX_RESET=1,
2020
input logic MI_CLK,
21-
output logic MI_RESET,
21+
output logic MI_RESET=1,
2222
iMfbRx.tb RX,
2323
iMiiTx.tb TX,
2424
iMi32.tb MI32
@@ -93,6 +93,8 @@ program TEST (
9393
mi32Transaction = new();
9494
mi32Driver = new("Mi32 Driver", null, MI32);
9595

96+
#(10*MI_CLK_PERIOD);
97+
9698
// Disable OBUF
9799
mi32Transaction.rw = 1;
98100
mi32Transaction.be = '1;
@@ -219,8 +221,9 @@ program TEST (
219221

220222
task test1();
221223
$write("\n\n############ TEST CASE 1 ############\n\n");
222-
initObuf();
223224
enableTestEnvironment();
225+
resetDesign();
226+
initObuf();
224227
generator.setEnabled(TRANSACTION_COUNT);
225228
wait(!generator.enabled);
226229
disableTestEnvironment();
@@ -230,7 +233,6 @@ program TEST (
230233
endtask
231234

232235
initial begin
233-
resetDesign();
234236
createGeneratorEnvironment(FRAME_SIZE_MAX, FRAME_SIZE_MIN);
235237
createEnvironment();
236238
test1();

0 commit comments

Comments
 (0)