stream/AsyncFIFO: add default depth (useful when used for CDC).

This commit is contained in:
Florent Kermarrec 2020-04-14 17:34:57 +02:00
parent ded10c89dc
commit d44fe18bd9
1 changed files with 1 additions and 1 deletions

View File

@ -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,