tb: pmd: Wait on signal_status and not valid

valid is an internal signal which isn't available in post-synthesis
simulation. Use signal_status instead, which is externally available.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
This commit is contained in:
Sean Anderson 2022-08-06 15:52:47 -04:00
parent 24ec0a4150
commit 16dfe09fba
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ async def test_rx(pmd):
await cocotb.start(generate_bits())
# Wait for things to stabilize
await RisingEdge(pmd.valid)
await RisingEdge(pmd.signal_status)
outs = []
while pmd.signal_status.value:
await RisingEdge(pmd.rx_clk_125)