actorlib/structuring: fix eop generation in Pack

This commit is contained in:
Florent Kermarrec 2015-02-12 23:29:53 +01:00 committed by Sebastien Bourdeauducq
parent d51d33af73
commit 319465445d

View file

@ -118,11 +118,12 @@ class Pack(Module):
if description_to.packetized: if description_to.packetized:
self.sync += [ self.sync += [
If(source.stb & source.ack, If(source.stb & source.ack,
source.sop.eq(load_part & sink.sop) source.sop.eq(sink.sop),
).Else( source.eop.eq(sink.eop),
source.sop.eq((load_part & sink.sop) | source.sop) ).Elif(sink.stb & sink.ack,
), source.sop.eq(sink.sop | source.sop),
source.eop.eq(load_part & sink.eop) source.eop.eq(sink.eop | source.eop)
)
] ]
class Chunkerize(CombinatorialActor): class Chunkerize(CombinatorialActor):