From: Sebastien Bourdeauducq Date: Fri, 24 Jul 2015 11:25:36 +0000 (+0800) Subject: Revert "migen/actorlib/fifo: add FIFO wrapper function" X-Git-Tag: 24jan2021_ls180~2099^2~34 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5a535ef3476f5c981bde150465877e8eca589aeb;p=litex.git Revert "migen/actorlib/fifo: add FIFO wrapper function" This reverts commit d0a19c4be85c2f3d21e891b8a5520ba5a7a3a258. --- diff --git a/migen/actorlib/fifo.py b/migen/actorlib/fifo.py index 4363870f..072e99c7 100644 --- a/migen/actorlib/fifo.py +++ b/migen/actorlib/fifo.py @@ -55,15 +55,3 @@ class SyncFIFO(_FIFOActor): class AsyncFIFO(_FIFOActor): def __init__(self, layout, depth): _FIFOActor.__init__(self, fifo.AsyncFIFO, layout, depth) - - -def FIFO(layout, depth, buffered=False, - sink_cd="sys", source_cd="sys"): - if sink_cd != source_cd: - if buffered: - ValueError("AsyncFIFO does not support buffered mode") - fifo = AsyncFIFO(layout, depth) - return ClockDomainsRenamer({"write": sink_cd, "read": source_cd})(fifo) - else: - fifo = SyncFIFO(layout, depth, buffered) - return ClockDomainsRenamer(sink_cd)(fifo)