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:
parent
fdf3953ce9
commit
d27d0089e6
|
@ -279,7 +279,7 @@ async def test_rx(pcs):
|
||||||
assert packet == await alist(mii_recv_packet(pcs))
|
assert packet == await alist(mii_recv_packet(pcs))
|
||||||
|
|
||||||
for _ in range(3):
|
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)
|
await RisingEdge(pcs.rx_clk)
|
||||||
assert pcs.rxd.value == 0xE
|
assert pcs.rxd.value == 0xE
|
||||||
await FallingEdge(pcs.receiving)
|
await FallingEdge(pcs.receiving)
|
||||||
|
|
Loading…
Reference in New Issue