From: Sebastien Bourdeauducq Date: Fri, 21 Nov 2014 02:46:54 +0000 (-0800) Subject: actorlib/fifo: add buffered parameter X-Git-Tag: 24jan2021_ls180~2099^2~263 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f5fc4b365f12f360a2f90c6b1c6789e44134375a;p=litex.git actorlib/fifo: add buffered parameter --- diff --git a/migen/actorlib/fifo.py b/migen/actorlib/fifo.py index b0aecaf5..52d2b50a 100644 --- a/migen/actorlib/fifo.py +++ b/migen/actorlib/fifo.py @@ -23,8 +23,11 @@ class _FIFOActor(Module): ] class SyncFIFO(_FIFOActor): - def __init__(self, layout, depth): - _FIFOActor.__init__(self, fifo.SyncFIFO, layout, depth) + def __init__(self, layout, depth, buffered=False): + _FIFOActor.__init__( + self, + fifo.SyncFIFOBuffered if buffered else fifo.SyncFIFO, + layout, depth) class AsyncFIFO(_FIFOActor): def __init__(self, layout, depth):