From 26c01a16277c05bd9519e85bafff761eaff4e212 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Wed, 1 Nov 2017 23:23:02 +0100 Subject: [PATCH] core/mac/crc: fix crc_error generation --- liteeth/core/mac/crc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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",