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
8f18c28a
Commit
8f18c28a
authored
7 years ago
by
William D. Jones
Committed by
Sébastien Bourdeauducq
7 years ago
Browse files
Options
Download
Email Patches
Plain Diff
build/lattice: Add Icestorm AsyncResetSynchronizer implementation.
parent
3f16323a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
migen/build/lattice/common.py
migen/build/lattice/common.py
+17
-1
No files found.
migen/build/lattice/common.py
View file @
8f18c28a
...
...
@@ -41,6 +41,22 @@ diamond_special_overrides = {
}
icestorm_special_overrides
=
{
class
IcestormAsyncResetSynchronizerImpl
(
Module
):
def
__init__
(
self
,
cd
,
async_reset
):
rst1
=
Signal
()
self
.
specials
+=
[
Instance
(
"SB_DFFS"
,
i_D
=
0
,
i_S
=
async_reset
,
i_C
=
cd
.
clk
,
o_Q
=
rst1
),
Instance
(
"SB_DFFS"
,
i_D
=
rst1
,
i_S
=
async_reset
,
i_C
=
cd
.
clk
,
o_Q
=
cd
.
rst
)
]
class
IcestormAsyncResetSynchronizer
:
@
staticmethod
def
lower
(
dr
):
return
IcestormAsyncResetSynchronizerImpl
(
dr
.
cd
,
dr
.
async_reset
)
icestorm_special_overrides
=
{
AsyncResetSynchronizer
:
IcestormAsyncResetSynchronizer
,
}
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