From f5fc4b365f12f360a2f90c6b1c6789e44134375a Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Thu, 20 Nov 2014 18:46:54 -0800 Subject: [PATCH] actorlib/fifo: add buffered parameter --- migen/actorlib/fifo.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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): -- 2.30.2