From 319465445d6c4a3588457932e1283c650569c787 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Thu, 12 Feb 2015 23:29:53 +0100 Subject: [PATCH] actorlib/structuring: fix eop generation in Pack --- migen/actorlib/structuring.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/migen/actorlib/structuring.py b/migen/actorlib/structuring.py index fa1e55762..de733a266 100644 --- a/migen/actorlib/structuring.py +++ b/migen/actorlib/structuring.py @@ -118,11 +118,12 @@ class Pack(Module): if description_to.packetized: self.sync += [ If(source.stb & source.ack, - source.sop.eq(load_part & sink.sop) - ).Else( - source.sop.eq((load_part & sink.sop) | source.sop) - ), - source.eop.eq(load_part & sink.eop) + source.sop.eq(sink.sop), + source.eop.eq(sink.eop), + ).Elif(sink.stb & sink.ack, + source.sop.eq(sink.sop | source.sop), + source.eop.eq(sink.eop | source.eop) + ) ] class Chunkerize(CombinatorialActor):