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.
This commit is contained in:
Florent Kermarrec 2015-09-18 02:28:02 +02:00
parent 07efe9d7b1
commit e4329c739c
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ class Pack(Module):
for f in description_to.param_layout: for f in description_to.param_layout:
src = getattr(self.sink, f[0]) src = getattr(self.sink, f[0])
dst = getattr(self.source, 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: if description_to.packetized:
demux_last = ((demux == (n - 1)) | sink.eop) demux_last = ((demux == (n - 1)) | sink.eop)