eth: Warn on out-of-frame data transfers in BASE-R model

Signed-off-by: Alex Forencich <alex@alexforencich.com>
This commit is contained in:
Alex Forencich
2026-07-31 23:23:14 -07:00
parent ba71a5815f
commit 40f47d5748

View File

@@ -851,6 +851,8 @@ class BaseRSerdesSink:
# data
dl = db
cl = [0]*8
if frame is None:
self.log.warning("Data transfer outside of frame")
elif hdr == BaseRSync.CTRL:
if db[0] == BaseRBlockType.CTRL:
# C7 C6 C5 C4 C3 C2 C1 C0 BT
@@ -987,6 +989,10 @@ class BaseRSerdesSink:
else:
self.log.info("RX sequence ordered set: 0x%06x", self.os)
if frame is None:
if cl[0] == 0:
self.log.warning("Data transfer outside of frame")
for k in range(8):
d_val = dl[k]
c_val = cl[k]