mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
liteeth/core/ip: simplify ip rx checksum control
This commit is contained in:
parent
5b48e7bb52
commit
130fd19dec
1 changed files with 2 additions and 2 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue