From: Florent Kermarrec Date: Fri, 18 Sep 2015 00:28:02 +0000 (+0200) Subject: actorlib/structuring: fix Pack in packetized mode X-Git-Tag: 24jan2021_ls180~2099^2~18^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e4329c739cce84f63ba99ead0a9ec385773d58fc;p=litex.git actorlib/structuring: fix Pack in packetized mode Params need to be registered for the case when eop appears before the end of the pack cycle. --- diff --git a/migen/actorlib/structuring.py b/migen/actorlib/structuring.py index 476bdf72..31414ec4 100644 --- a/migen/actorlib/structuring.py +++ b/migen/actorlib/structuring.py @@ -110,7 +110,7 @@ class Pack(Module): for f in description_to.param_layout: src = getattr(self.sink, f[0]) dst = getattr(self.source, f[0]) - self.comb += dst.eq(src) + self.sync += If(load_part, dst.eq(src)) if description_to.packetized: demux_last = ((demux == (n - 1)) | sink.eop)