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:
parent
70cc19ff15
commit
fa173f93e5
@ -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 = []
|
||||
|
@ -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 = []
|
||||
|
@ -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 = []
|
||||
|
@ -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 = []
|
||||
|
@ -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 = []
|
||||
|
@ -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 = []
|
||||
|
@ -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 = []
|
||||
|
Loading…
x
Reference in New Issue
Block a user