tb: axis_mii_tx: Test one-cycle error

Ensure we transition properly even if buf_err is only high for one
cycle.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
This commit is contained in:
Sean Anderson 2023-01-11 17:31:42 -05:00
parent 4746b3b6cd
commit 01ff073916
1 changed files with 5 additions and 0 deletions

View File

@ -225,6 +225,11 @@ async def test_underflow(mac):
send, status = await start(mac, [*range(x), None])
await underflow(mac, send, status)
# Error on last byte valid for one cycle
send, status = await start(mac, [*range(x), None],
last_extra=(12 + 8 + x) * 10 - x + 5)
await underflow(mac, send, status)
# Error with more to come
send, status = await start(mac, [*range(x), None, 1])
await underflow(mac, send, status)