diff --git a/cocotb/hw_itl.py b/cocotb/hw_itl.py index e5e3de4..54ef8cb 100644 --- a/cocotb/hw_itl.py +++ b/cocotb/hw_itl.py @@ -42,6 +42,13 @@ class MacDevReceiver(): async def main_rx(self): while True: frame = await self.eth_rx.queue.get() + try: + while (frame[0] != 0xD5): + frame = frame[1:] + frame = frame[1:] + except: + self.dut._log.debug("NLP / Invalid frame") + continue self.dut._log.info("RX Frame: " + str(frame)) self.macdev.send(frame)