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:
parent
b316c6764e
commit
060e55b915
@ -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 = []
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user