mirror of
https://github.com/corundum/corundum.git
synced 2025-01-16 08:12:53 +08:00
Wait longer to ensure PTP CDC module has fully stabilized in MAC testbenches
Signed-off-by: Alex Forencich <alex@alexforencich.com>
This commit is contained in:
parent
f9ae6da8bd
commit
a9e3d3cae8
@ -110,6 +110,8 @@ async def run_test_rx(dut, payload_lengths=None, payload_data=None, ifg=12):
|
||||
tb.log.info("Wait for PTP CDC lock")
|
||||
while not dut.rx_ptp.rx_ptp_cdc.locked.value.integer:
|
||||
await RisingEdge(dut.rx_clk)
|
||||
for k in range(1000):
|
||||
await RisingEdge(dut.rx_clk)
|
||||
|
||||
test_frames = [payload_data(x) for x in payload_lengths()]
|
||||
tx_frames = []
|
||||
@ -159,6 +161,8 @@ async def run_test_tx(dut, payload_lengths=None, payload_data=None, ifg=12):
|
||||
tb.log.info("Wait for PTP CDC lock")
|
||||
while not dut.tx_ptp.tx_ptp_cdc.locked.value.integer:
|
||||
await RisingEdge(dut.tx_clk)
|
||||
for k in range(1000):
|
||||
await RisingEdge(dut.tx_clk)
|
||||
|
||||
test_frames = [payload_data(x) for x in payload_lengths()]
|
||||
|
||||
@ -209,6 +213,8 @@ async def run_test_tx_alignment(dut, payload_data=None, ifg=12):
|
||||
tb.log.info("Wait for PTP CDC lock")
|
||||
while not dut.tx_ptp.tx_ptp_cdc.locked.value.integer:
|
||||
await RisingEdge(dut.tx_clk)
|
||||
for k in range(1000):
|
||||
await RisingEdge(dut.tx_clk)
|
||||
|
||||
for length in range(60, 92):
|
||||
|
||||
|
@ -127,6 +127,8 @@ async def run_test_rx(dut, payload_lengths=None, payload_data=None, ifg=12):
|
||||
tb.log.info("Wait for PTP CDC lock")
|
||||
while not dut.rx_ptp.rx_ptp_cdc.locked.value.integer:
|
||||
await RisingEdge(dut.rx_clk)
|
||||
for k in range(1000):
|
||||
await RisingEdge(dut.rx_clk)
|
||||
|
||||
# clear out sink buffer
|
||||
tb.axis_sink.clear()
|
||||
@ -179,6 +181,8 @@ async def run_test_tx(dut, payload_lengths=None, payload_data=None, ifg=12):
|
||||
tb.log.info("Wait for PTP CDC lock")
|
||||
while not dut.tx_ptp.tx_ptp_cdc.locked.value.integer:
|
||||
await RisingEdge(dut.tx_clk)
|
||||
for k in range(1000):
|
||||
await RisingEdge(dut.tx_clk)
|
||||
|
||||
test_frames = [payload_data(x) for x in payload_lengths()]
|
||||
|
||||
@ -229,6 +233,8 @@ async def run_test_tx_alignment(dut, payload_data=None, ifg=12):
|
||||
tb.log.info("Wait for PTP CDC lock")
|
||||
while not dut.tx_ptp.tx_ptp_cdc.locked.value.integer:
|
||||
await RisingEdge(dut.tx_clk)
|
||||
for k in range(1000):
|
||||
await RisingEdge(dut.tx_clk)
|
||||
|
||||
for length in range(60, 92):
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user