mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
stream/AsyncFIFO: add default depth (useful when used for CDC).
This commit is contained in:
parent
ded10c89dc
commit
d44fe18bd9
1 changed files with 1 additions and 1 deletions
|
@ -228,7 +228,7 @@ class SyncFIFO(_FIFOWrapper):
|
|||
|
||||
|
||||
class AsyncFIFO(_FIFOWrapper):
|
||||
def __init__(self, layout, depth, buffered=False):
|
||||
def __init__(self, layout, depth=4, buffered=False):
|
||||
assert depth >= 4
|
||||
_FIFOWrapper.__init__(self,
|
||||
fifo_class = fifo.AsyncFIFOBuffered if buffered else fifo.AsyncFIFO,
|
||||
|
|
Loading…
Reference in a new issue