From: Florent Kermarrec Date: Fri, 24 Apr 2015 09:31:10 +0000 (+0200) Subject: liteeth/core/ip: simplify ip rx checksum control X-Git-Tag: 24jan2021_ls180~2301 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=130fd19dec29e565bba7cfdec65c4088f37659f5;p=litex.git liteeth/core/ip: simplify ip rx checksum control --- 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")