File tree Expand file tree Collapse file tree 4 files changed +10
-10
lines changed
Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ async def run_test_tuser_assert(dut):
152152 test_frame = AxiStreamFrame (test_data , tuser = 1 )
153153 await tb .source .send (test_frame )
154154
155- if int ( os . getenv ( "PARAM_DROP_BAD_FRAME" )) :
155+ if dut . DROP_BAD_FRAME . value :
156156 for k in range (64 ):
157157 await RisingEdge (dut .s_clk )
158158
@@ -302,7 +302,7 @@ async def run_test_shift_in_source_reset(dut):
302302 for k in range (64 ):
303303 await RisingEdge (dut .s_clk )
304304
305- if int ( os . getenv ( "PARAM_FRAME_FIFO" )) :
305+ if dut . FRAME_FIFO . value :
306306 assert tb .sink .empty ()
307307 else :
308308 rx_frame = await tb .sink .recv ()
@@ -463,7 +463,7 @@ async def run_test_overflow(dut):
463463
464464 tb .sink .pause = False
465465
466- if int ( os . getenv ( "PARAM_DROP_OVERSIZE_FRAME" )) :
466+ if dut . DROP_OVERSIZE_FRAME . value :
467467 for k in range (2048 ):
468468 await RisingEdge (dut .s_clk )
469469
Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ async def run_test_tuser_assert(dut):
149149 test_frame = AxiStreamFrame (test_data , tuser = 1 )
150150 await tb .source .send (test_frame )
151151
152- if int ( os . getenv ( "PARAM_DROP_BAD_FRAME" )) :
152+ if dut . DROP_BAD_FRAME . value :
153153 for k in range (64 ):
154154 await RisingEdge (dut .s_clk )
155155
@@ -299,7 +299,7 @@ async def run_test_shift_in_source_reset(dut):
299299 for k in range (64 ):
300300 await RisingEdge (dut .s_clk )
301301
302- if int ( os . getenv ( "PARAM_FRAME_FIFO" )) :
302+ if dut . FRAME_FIFO . value :
303303 assert tb .sink .empty ()
304304 else :
305305 rx_frame = await tb .sink .recv ()
@@ -460,7 +460,7 @@ async def run_test_overflow(dut):
460460
461461 tb .sink .pause = False
462462
463- if int ( os . getenv ( "PARAM_DROP_OVERSIZE_FRAME" )) :
463+ if dut . DROP_OVERSIZE_FRAME . value :
464464 for k in range (2048 ):
465465 await RisingEdge (dut .s_clk )
466466
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ async def run_test_tuser_assert(dut):
122122 test_frame = AxiStreamFrame (test_data , tuser = 1 )
123123 await tb .source .send (test_frame )
124124
125- if int ( os . getenv ( "PARAM_DROP_BAD_FRAME" )) :
125+ if dut . DROP_BAD_FRAME . value :
126126 for k in range (64 ):
127127 await RisingEdge (dut .clk )
128128
@@ -249,7 +249,7 @@ async def run_test_overflow(dut):
249249
250250 tb .sink .pause = False
251251
252- if int ( os . getenv ( "PARAM_DROP_OVERSIZE_FRAME" )) :
252+ if dut . DROP_OVERSIZE_FRAME . value :
253253 for k in range (2048 ):
254254 await RisingEdge (dut .clk )
255255
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ async def run_test_tuser_assert(dut):
122122 test_frame = AxiStreamFrame (test_data , tuser = 1 )
123123 await tb .source .send (test_frame )
124124
125- if int ( os . getenv ( "PARAM_DROP_BAD_FRAME" )) :
125+ if dut . DROP_BAD_FRAME . value :
126126 for k in range (64 ):
127127 await RisingEdge (dut .clk )
128128
@@ -249,7 +249,7 @@ async def run_test_overflow(dut):
249249
250250 tb .sink .pause = False
251251
252- if int ( os . getenv ( "PARAM_DROP_OVERSIZE_FRAME" )) :
252+ if dut . DROP_OVERSIZE_FRAME . value :
253253 for k in range (2048 ):
254254 await RisingEdge (dut .clk )
255255
You can’t perform that action at this time.
0 commit comments