diff --git a/liteeth/core/mac/crc.py b/liteeth/core/mac/crc.py index 5407689..6a49ea3 100644 --- a/liteeth/core/mac/crc.py +++ b/liteeth/core/mac/crc.py @@ -256,7 +256,7 @@ class LiteEthMACCRCChecker(Module): source.payload.eq(fifo.source.payload), source.error.eq(sink.error | crc.error), - self.crc_error.eq(sink.last & crc.error), + self.crc_error.eq(source.valid & source.last & crc.error), ] fsm.act("RESET",