From edd98c23cbd8b213636d938fe0a2435375f96a80 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 25 Apr 2022 15:48:05 +0200 Subject: [PATCH] interconnect/packet/PacketFIFO: +1 on param_depth to allow dequeuing current while equeuing next. --- litex/soc/interconnect/packet.py | 1 + 1 file changed, 1 insertion(+) diff --git a/litex/soc/interconnect/packet.py b/litex/soc/interconnect/packet.py index 40c0cf6d3..ac7a0bf1e 100644 --- a/litex/soc/interconnect/packet.py +++ b/litex/soc/interconnect/packet.py @@ -379,6 +379,7 @@ class PacketFIFO(Module): # Create the FIFOs. payload_description = stream.EndpointDescription(payload_layout=payload_layout) param_description = stream.EndpointDescription(param_layout=param_layout) + param_depth = param_depth + 1 # +1 to allow dequeuing current while enqueuing next. self.submodules.payload_fifo = payload_fifo = stream.SyncFIFO(payload_description, payload_depth, buffered) self.submodules.param_fifo = param_fifo = stream.SyncFIFO(param_description, param_depth, buffered)