1
0
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:
Alex Forencich 2023-08-14 16:57:30 -07:00
parent 62c2148c8f
commit ac2c0fdac8
4 changed files with 10 additions and 10 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)