From: Florent Kermarrec Date: Sun, 17 Nov 2019 10:57:14 +0000 (+0100) Subject: soc/interconnect/packet/Depacketizer: cleanup "ALIGNED-DATA-COPY" state X-Git-Tag: 24jan2021_ls180~851 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=af52203c003cb1cf1aa67fc30c21466545fcd10c;p=litex.git soc/interconnect/packet/Depacketizer: cleanup "ALIGNED-DATA-COPY" state --- diff --git a/litex/soc/interconnect/packet.py b/litex/soc/interconnect/packet.py index 3b4d1aef..89bd1955 100644 --- a/litex/soc/interconnect/packet.py +++ b/litex/soc/interconnect/packet.py @@ -355,10 +355,10 @@ class Depacketizer(Module): ) ) fsm.act("ALIGNED-DATA-COPY", + source.valid.eq(sink.valid | sink_d.last), source.last.eq(sink.last | sink_d.last), - source.data.eq(sink.data), sink.ready.eq(source.ready), - source.valid.eq(sink.valid | sink_d.last), + source.data.eq(sink.data), If(source.valid & source.ready, If(source.last, NextState("IDLE")