migen/flow/actor: fix sop/eop validation in PipelinedActor (stb can be inactive when...
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Sun, 9 Aug 2015 17:53:50 +0000 (19:53 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Sun, 9 Aug 2015 17:54:38 +0000 (19:54 +0200)
migen/flow/actor.py

index dad0f64a311f5820250d034246b9728f1079c198..a2012a986b4cc48729e1332baf983fcbeba110d2 100644 (file)
@@ -165,8 +165,8 @@ class PipelinedActor(BinaryActor):
             self.busy.eq(busy)
         ]
         if sink.description.packetized:
-            sop = sink.sop
-            eop = sink.eop
+            sop = sink.stb & sink.sop
+            eop = sink.stb & sink.eop
             for i in range(latency):
                 sop_n = Signal()
                 eop_n = Signal()