From af52203c003cb1cf1aa67fc30c21466545fcd10c Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Sun, 17 Nov 2019 11:57:14 +0100 Subject: [PATCH] soc/interconnect/packet/Depacketizer: cleanup "ALIGNED-DATA-COPY" state --- litex/soc/interconnect/packet.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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") -- 2.30.2