Skip to content

Commit

Permalink
Revert "migen/actorlib/fifo: add FIFO wrapper function"
Browse files Browse the repository at this point in the history
This reverts commit d0a19c4.
sbourdeauducq committed Jul 24, 2015
1 parent d0a19c4 commit 5a535ef
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions migen/actorlib/fifo.py
Original file line number Diff line number Diff line change
@@ -55,15 +55,3 @@ def __init__(self, layout, depth, buffered=False):
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)

0 comments on commit 5a535ef

Please sign in to comment.