mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
actorlib/structuring: fix eop generation in Pack
This commit is contained in:
parent
d51d33af73
commit
319465445d
1 changed files with 6 additions and 5 deletions
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue