mirror of
https://github.com/corundum/corundum.git
synced 2025-01-16 08:12:53 +08:00
Read configuration directly from DUT
Signed-off-by: Alex Forencich <alex@alexforencich.com>
This commit is contained in:
parent
62c2148c8f
commit
ac2c0fdac8
@ -152,7 +152,7 @@ async def run_test_tuser_assert(dut):
|
||||
test_frame = AxiStreamFrame(test_data, tuser=1)
|
||||
await tb.source.send(test_frame)
|
||||
|
||||
if int(os.getenv("PARAM_DROP_BAD_FRAME")):
|
||||
if dut.DROP_BAD_FRAME.value:
|
||||
for k in range(64):
|
||||
await RisingEdge(dut.s_clk)
|
||||
|
||||
@ -302,7 +302,7 @@ async def run_test_shift_in_source_reset(dut):
|
||||
for k in range(64):
|
||||
await RisingEdge(dut.s_clk)
|
||||
|
||||
if int(os.getenv("PARAM_FRAME_FIFO")):
|
||||
if dut.FRAME_FIFO.value:
|
||||
assert tb.sink.empty()
|
||||
else:
|
||||
rx_frame = await tb.sink.recv()
|
||||
@ -463,7 +463,7 @@ async def run_test_overflow(dut):
|
||||
|
||||
tb.sink.pause = False
|
||||
|
||||
if int(os.getenv("PARAM_DROP_OVERSIZE_FRAME")):
|
||||
if dut.DROP_OVERSIZE_FRAME.value:
|
||||
for k in range(2048):
|
||||
await RisingEdge(dut.s_clk)
|
||||
|
||||
|
@ -149,7 +149,7 @@ async def run_test_tuser_assert(dut):
|
||||
test_frame = AxiStreamFrame(test_data, tuser=1)
|
||||
await tb.source.send(test_frame)
|
||||
|
||||
if int(os.getenv("PARAM_DROP_BAD_FRAME")):
|
||||
if dut.DROP_BAD_FRAME.value:
|
||||
for k in range(64):
|
||||
await RisingEdge(dut.s_clk)
|
||||
|
||||
@ -299,7 +299,7 @@ async def run_test_shift_in_source_reset(dut):
|
||||
for k in range(64):
|
||||
await RisingEdge(dut.s_clk)
|
||||
|
||||
if int(os.getenv("PARAM_FRAME_FIFO")):
|
||||
if dut.FRAME_FIFO.value:
|
||||
assert tb.sink.empty()
|
||||
else:
|
||||
rx_frame = await tb.sink.recv()
|
||||
@ -460,7 +460,7 @@ async def run_test_overflow(dut):
|
||||
|
||||
tb.sink.pause = False
|
||||
|
||||
if int(os.getenv("PARAM_DROP_OVERSIZE_FRAME")):
|
||||
if dut.DROP_OVERSIZE_FRAME.value:
|
||||
for k in range(2048):
|
||||
await RisingEdge(dut.s_clk)
|
||||
|
||||
|
@ -122,7 +122,7 @@ async def run_test_tuser_assert(dut):
|
||||
test_frame = AxiStreamFrame(test_data, tuser=1)
|
||||
await tb.source.send(test_frame)
|
||||
|
||||
if int(os.getenv("PARAM_DROP_BAD_FRAME")):
|
||||
if dut.DROP_BAD_FRAME.value:
|
||||
for k in range(64):
|
||||
await RisingEdge(dut.clk)
|
||||
|
||||
@ -249,7 +249,7 @@ async def run_test_overflow(dut):
|
||||
|
||||
tb.sink.pause = False
|
||||
|
||||
if int(os.getenv("PARAM_DROP_OVERSIZE_FRAME")):
|
||||
if dut.DROP_OVERSIZE_FRAME.value:
|
||||
for k in range(2048):
|
||||
await RisingEdge(dut.clk)
|
||||
|
||||
|
@ -122,7 +122,7 @@ async def run_test_tuser_assert(dut):
|
||||
test_frame = AxiStreamFrame(test_data, tuser=1)
|
||||
await tb.source.send(test_frame)
|
||||
|
||||
if int(os.getenv("PARAM_DROP_BAD_FRAME")):
|
||||
if dut.DROP_BAD_FRAME.value:
|
||||
for k in range(64):
|
||||
await RisingEdge(dut.clk)
|
||||
|
||||
@ -249,7 +249,7 @@ async def run_test_overflow(dut):
|
||||
|
||||
tb.sink.pause = False
|
||||
|
||||
if int(os.getenv("PARAM_DROP_OVERSIZE_FRAME")):
|
||||
if dut.DROP_OVERSIZE_FRAME.value:
|
||||
for k in range(2048):
|
||||
await RisingEdge(dut.clk)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user