Commit 5a535ef3 authored by Sebastien Bourdeauducq's avatar Sebastien Bourdeauducq
Browse files

Revert "migen/actorlib/fifo: add FIFO wrapper function"

This reverts commit d0a19c4b.
parent d0a19c4b
......@@ -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)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment