From d44fe18bd9e7c21b755b814d5be715928cd6fb64 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Tue, 14 Apr 2020 17:34:57 +0200 Subject: [PATCH] stream/AsyncFIFO: add default depth (useful when used for CDC). --- litex/soc/interconnect/stream.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litex/soc/interconnect/stream.py b/litex/soc/interconnect/stream.py index 4558ac8c9..f70393aa3 100644 --- a/litex/soc/interconnect/stream.py +++ b/litex/soc/interconnect/stream.py @@ -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,