From 0c687bc29e8e38450ec71eda677bf9f59291f38b Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Sat, 8 Dec 2018 01:24:08 +0100 Subject: [PATCH] soc/interconnect/stream: add support for buffered async fifo --- litex/soc/interconnect/stream.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/litex/soc/interconnect/stream.py b/litex/soc/interconnect/stream.py index 1bf81ef13..0c185a197 100644 --- a/litex/soc/interconnect/stream.py +++ b/litex/soc/interconnect/stream.py @@ -106,8 +106,11 @@ class SyncFIFO(_FIFOWrapper): class AsyncFIFO(_FIFOWrapper): - def __init__(self, layout, depth): - _FIFOWrapper.__init__(self, fifo.AsyncFIFO, layout, depth) + def __init__(self, layout, depth, buffered=False): + _FIFOWrapper.__init__( + self, + fifo.AsyncFIFOBuffered if buffered else fifo.AsyncFIFO, + layout, depth) class Multiplexer(Module):