From: Florent Kermarrec Date: Thu, 16 Jan 2020 08:46:54 +0000 (+0100) Subject: soc/interconnect/packet/Depacketizer: use both sink.valid and sink.ready to update... X-Git-Tag: 24jan2021_ls180~741 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a26853702c109fb4e650ef2d53cfd631a4bec328;p=litex.git soc/interconnect/packet/Depacketizer: use both sink.valid and sink.ready to update sink_d, fix Etherbone regression on Arty. --- diff --git a/litex/soc/interconnect/packet.py b/litex/soc/interconnect/packet.py index 7ac82027..961179e6 100644 --- a/litex/soc/interconnect/packet.py +++ b/litex/soc/interconnect/packet.py @@ -336,7 +336,7 @@ class Depacketizer(Module): ) ) ) - self.sync += If(sink.ready, sink_d.eq(sink)) + self.sync += If(sink.valid & sink.ready, sink_d.eq(sink)) fsm.act("UNALIGNED-DATA-COPY", source.valid.eq(sink.valid | sink_d.last), source.last.eq(sink.last | sink_d.last),