Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kestrel Collaboration
Kestrel LiteX
migen
Commits
5a535ef3
Commit
5a535ef3
authored
9 years ago
by
Sebastien Bourdeauducq
Browse files
Options
Download
Email Patches
Plain Diff
Revert "migen/actorlib/fifo: add FIFO wrapper function"
This reverts commit
d0a19c4b
.
parent
d0a19c4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
12 deletions
+0
-12
migen/actorlib/fifo.py
migen/actorlib/fifo.py
+0
-12
No files found.
migen/actorlib/fifo.py
View file @
5a535ef3
...
...
@@ -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
)
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment