From 82d4e6808b869a5796eae77a4704a8d7e288985a Mon Sep 17 00:00:00 2001 From: Markus Koch Date: Sat, 30 Apr 2022 12:48:39 +0200 Subject: [PATCH] bench: hwitl: Fix design to HW comms Forgot to remove the sync header. --- cocotb/hw_itl.py | 7 +++++++ 1 file changed, 7 insertions(+) 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)