Skip to content

Commit

Permalink
interconnect/packet/PacketFIFO: +1 on param_depth to allow dequeuing …
Browse files Browse the repository at this point in the history
…current while equeuing next.
  • Loading branch information
enjoy-digital committed Apr 25, 2022
1 parent 625261c commit edd98c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions litex/soc/interconnect/packet.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ def __init__(self, layout, payload_depth, param_depth=None, buffered=False):
# 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)

Expand Down

0 comments on commit edd98c2

Please sign in to comment.