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

Wait for correct PTP CDC instance to lock

Signed-off-by: Alex Forencich <alex@alexforencich.com>
This commit is contained in:
Alex Forencich 2023-09-18 16:39:30 -07:00
parent b316c6764e
commit 060e55b915
2 changed files with 4 additions and 4 deletions

View File

@ -108,8 +108,8 @@ async def run_test_rx(dut, payload_lengths=None, payload_data=None, ifg=12):
await tb.reset()
tb.log.info("Wait for PTP CDC lock")
while not dut.tx_ptp.tx_ptp_cdc.locked.value.integer:
await RisingEdge(dut.tx_clk)
while not dut.rx_ptp.rx_ptp_cdc.locked.value.integer:
await RisingEdge(dut.rx_clk)
test_frames = [payload_data(x) for x in payload_lengths()]
tx_frames = []

View File

@ -125,8 +125,8 @@ async def run_test_rx(dut, payload_lengths=None, payload_data=None, ifg=12):
await RisingEdge(dut.rx_clk)
tb.log.info("Wait for PTP CDC lock")
while not dut.tx_ptp.tx_ptp_cdc.locked.value.integer:
await RisingEdge(dut.tx_clk)
while not dut.rx_ptp.rx_ptp_cdc.locked.value.integer:
await RisingEdge(dut.rx_clk)
# clear out sink buffer
tb.axis_sink.clear()