From 130fd19dec29e565bba7cfdec65c4088f37659f5 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Fri, 24 Apr 2015 11:31:10 +0200 Subject: [PATCH] liteeth/core/ip: simplify ip rx checksum control --- misoclib/com/liteeth/core/ip/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misoclib/com/liteeth/core/ip/__init__.py b/misoclib/com/liteeth/core/ip/__init__.py index f625f051..72d70423 100644 --- a/misoclib/com/liteeth/core/ip/__init__.py +++ b/misoclib/com/liteeth/core/ip/__init__.py @@ -121,8 +121,8 @@ class LiteEthIPRX(Module): self.submodules.checksum = checksum = LiteEthIPV4Checksum(skip_checksum=False) self.comb += [ checksum.header.eq(depacketizer.header), - checksum.reset.eq(depacketizer.source.stb & depacketizer.source.eop), - checksum.ce.eq(depacketizer.source.stb & depacketizer.source.sop) + checksum.reset.eq(~(depacketizer.source.stb & depacketizer.source.sop)), + checksum.ce.eq(1) ] self.submodules.fsm = fsm = FSM(reset_state="IDLE") -- 2.30.2