Skip to content

Commit

Permalink
interconnect/stream/AsyncFIFO: Remove Efinix workaround since seems t…
Browse files Browse the repository at this point in the history
…o be solved with Efinity 2023.x.
  • Loading branch information
enjoy-digital committed Aug 31, 2023
1 parent 124e0d2 commit ad924a5
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions litex/soc/interconnect/stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,19 +236,11 @@ class AsyncFIFO(_FIFOWrapper):
def __init__(self, layout, depth=None, buffered=False):
depth = 4 if depth is None else depth
assert depth >= 4
nbuffers = 0
if buffered:
nbuffers = 1
from litex.build.efinix import EfinixPlatform
if isinstance(LiteXContext.platform, EfinixPlatform):
nbuffers = 2 # Minimum of 2 buffers required on Efinix FPGAs.
_FIFOWrapper.__init__(self,
fifo_class = fifo.AsyncFIFOBuffered if nbuffers > 0 else fifo.AsyncFIFO,
fifo_class = fifo.AsyncFIFOBuffered if buffered else fifo.AsyncFIFO,
layout = layout,
depth = depth
)
if nbuffers > 1:
ClockDomainsRenamer("read")(BufferizeEndpoints({"source": DIR_SOURCE})(self))

# ClockDomainCrossing ------------------------------------------------------------------------------

Expand Down

0 comments on commit ad924a5

Please sign in to comment.