stream/AsyncFIFO: add default depth (useful when used for CDC).
This commit is contained in:
parent
ded10c89dc
commit
d44fe18bd9
|
@ -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 New Issue