1
0
mirror of https://github.com/corundum/corundum.git synced 2025-01-16 08:12:53 +08:00

Avoid testbench reset during alignment test

Signed-off-by: Alex Forencich <alex@alexforencich.com>
This commit is contained in:
Alex Forencich 2023-07-24 00:57:43 -07:00
parent 70cc19ff15
commit fa173f93e5
7 changed files with 28 additions and 7 deletions

View File

@ -136,9 +136,12 @@ async def run_test_alignment(dut, payload_data=None, ifg=12):
tb.dut.ifg_delay.value = ifg
await tb.reset()
for length in range(60, 92):
await tb.reset()
for k in range(10):
await RisingEdge(dut.clk)
test_frames = [payload_data(length) for k in range(10)]
start_lane = []

View File

@ -121,9 +121,12 @@ async def run_test_alignment(dut, payload_data=None, ifg=12):
tb.dut.ifg_delay.value = ifg
await tb.reset()
for length in range(60, 92):
await tb.reset()
for k in range(10):
await RisingEdge(dut.clk)
test_frames = [payload_data(length) for k in range(10)]
start_lane = []

View File

@ -125,9 +125,12 @@ async def run_test_alignment(dut, payload_data=None, ifg=12):
tb.dut.ifg_delay.value = ifg
await tb.reset()
for length in range(60, 92):
await tb.reset()
for k in range(10):
await RisingEdge(dut.clk)
test_frames = [payload_data(length) for k in range(10)]
start_lane = []

View File

@ -230,9 +230,12 @@ async def run_test_tx_alignment(dut, payload_data=None, ifg=12):
tb.xgmii_source.ifg = ifg
tb.dut.ifg_delay.value = ifg
await tb.reset()
for length in range(60, 92):
await tb.reset()
for k in range(10):
await RisingEdge(dut.tx_clk)
test_frames = [payload_data(length) for k in range(10)]
start_lane = []

View File

@ -195,9 +195,12 @@ async def run_test_tx_alignment(dut, payload_data=None, ifg=12):
tb.xgmii_source.ifg = ifg
tb.dut.ifg_delay.value = ifg
await tb.reset()
for length in range(60, 92):
await tb.reset()
for k in range(10):
await RisingEdge(dut.tx_clk)
test_frames = [payload_data(length) for k in range(10)]
start_lane = []

View File

@ -204,9 +204,12 @@ async def run_test_tx_alignment(dut, payload_data=None, ifg=12):
tb.serdes_source.ifg = ifg
tb.dut.ifg_delay.value = ifg
await tb.reset()
for length in range(60, 92):
await tb.reset()
for k in range(10):
await RisingEdge(dut.tx_clk)
test_frames = [payload_data(length) for k in range(10)]
start_lane = []

View File

@ -216,9 +216,12 @@ async def run_test_tx_alignment(dut, payload_data=None, ifg=12):
tb.serdes_source.ifg = ifg
tb.dut.ifg_delay.value = ifg
await tb.reset()
for length in range(60, 92):
await tb.reset()
for k in range(10):
await RisingEdge(dut.tx_clk)
test_frames = [payload_data(length) for k in range(10)]
start_lane = []