interconnect/packet/PacketFIFO: +1 on param_depth to allow dequeuing current while equeuing next.

This commit is contained in:
Florent Kermarrec 2022-04-25 15:48:05 +02:00
parent 625261c693
commit edd98c23cb
1 changed files with 1 additions and 0 deletions

View File

@ -379,6 +379,7 @@ class PacketFIFO(Module):
# Create the FIFOs. # Create the FIFOs.
payload_description = stream.EndpointDescription(payload_layout=payload_layout) payload_description = stream.EndpointDescription(payload_layout=payload_layout)
param_description = stream.EndpointDescription(param_layout=param_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.payload_fifo = payload_fifo = stream.SyncFIFO(payload_description, payload_depth, buffered)
self.submodules.param_fifo = param_fifo = stream.SyncFIFO(param_description, param_depth, buffered) self.submodules.param_fifo = param_fifo = stream.SyncFIFO(param_description, param_depth, buffered)