bench: hw_itl: Add debug prints for RX/TX
This commit is contained in:
parent
50b65bccec
commit
3c1c14f953
@ -50,6 +50,7 @@ class MacDevReceiver():
|
|||||||
if len(r) < 60:
|
if len(r) < 60:
|
||||||
r += b'\x00' * (60 - len(r))
|
r += b'\x00' * (60 - len(r))
|
||||||
r += self.eth_fcs(r)
|
r += self.eth_fcs(r)
|
||||||
|
self.dut._log.debug("DUT RX: " + str(r))
|
||||||
await self.eth_tx.send(ETH_HEAD + r);
|
await self.eth_tx.send(ETH_HEAD + r);
|
||||||
except:
|
except:
|
||||||
await Timer(1, "us")
|
await Timer(1, "us")
|
||||||
@ -64,7 +65,7 @@ class MacDevReceiver():
|
|||||||
except:
|
except:
|
||||||
self.dut._log.debug("NLP / Invalid frame")
|
self.dut._log.debug("NLP / Invalid frame")
|
||||||
continue
|
continue
|
||||||
self.dut._log.info("RX Frame: " + str(frame))
|
self.dut._log.debug("DUT TX: " + str(frame))
|
||||||
self.macdev.send(frame)
|
self.macdev.send(frame)
|
||||||
|
|
||||||
async def start(self):
|
async def start(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user