soc/interconnect/packet/Depacketizer: cleanup "ALIGNED-DATA-COPY" state
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Sun, 17 Nov 2019 10:57:14 +0000 (11:57 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Sun, 17 Nov 2019 10:57:14 +0000 (11:57 +0100)
litex/soc/interconnect/packet.py

index 3b4d1aef5ddee4a012ebcb3abdd65562feaa60a4..89bd19554ab17ed06437762056646e87c4c9efd6 100644 (file)
@@ -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")