interconnect/packet/PacketFIFO: Fix payload_fifo.sink.valid.

Needs to be filtered on param_fifo.sink.ready and not payload_fifo.sink.ready.
This commit is contained in:
Florent Kermarrec 2024-07-26 11:52:17 +02:00
parent c51d22074f
commit 5c5bc82f22
1 changed files with 1 additions and 1 deletions

View File

@ -386,7 +386,7 @@ class PacketFIFO(LiteXModule):
sink.connect(param_fifo.sink, keep=set([e[0] for e in param_layout])),
sink.connect(payload_fifo.sink, keep=set([e[0] for e in payload_layout] + ["last"])),
param_fifo.sink.valid.eq(sink.valid & sink.last),
payload_fifo.sink.valid.eq(sink.valid & payload_fifo.sink.ready),
payload_fifo.sink.valid.eq(sink.valid & param_fifo.sink.ready),
sink.ready.eq(param_fifo.sink.ready & payload_fifo.sink.ready),
]