tb: pcs_rx: Allow err to be optional

The downstream TX side of the MII is almost the same as the upstream RX
side of the MII. However, MACs may never generate TX_ER, so I will be
leaving it out. TO allow testing this, make the err signal optional.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
This commit is contained in:
Sean Anderson 2023-01-09 21:02:35 -05:00
parent d72a7b7e1e
commit 6b2eb4d27c
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ async def mii_recv_packet(pcs, signals=None):
while signals['valid'].value:
if signals['ce'].value:
if signals['err'].value:
if 'err' in signals and signals['err'].value:
yield None
else:
yield signals['data'].value