From a26853702c109fb4e650ef2d53cfd631a4bec328 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Thu, 16 Jan 2020 09:46:54 +0100 Subject: [PATCH] soc/interconnect/packet/Depacketizer: use both sink.valid and sink.ready to update sink_d, fix Etherbone regression on Arty. --- litex/soc/interconnect/packet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litex/soc/interconnect/packet.py b/litex/soc/interconnect/packet.py index 7ac82027d..961179e65 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),