tb: pcs: Wait for rx_ce when receiving errors

Without .value, pcs.rx_ce always evaluates as truthy.

Fixes: d351291 ("Initial commit")
Signed-off-by: Sean Anderson <seanga2@gmail.com>
This commit is contained in:
Sean Anderson 2022-08-06 15:29:32 -04:00
parent fdf3953ce9
commit d27d0089e6
1 changed files with 1 additions and 1 deletions

View File

@ -279,7 +279,7 @@ async def test_rx(pcs):
assert packet == await alist(mii_recv_packet(pcs))
for _ in range(3):
while not (pcs.receiving.value and pcs.rx_er.value and pcs.rx_ce):
while not (pcs.receiving.value and pcs.rx_er.value and pcs.rx_ce.value):
await RisingEdge(pcs.rx_clk)
assert pcs.rxd.value == 0xE
await FallingEdge(pcs.receiving)