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
c8cae394
Commit
c8cae394
authored
5 years ago
by
Etienne Wodey
Committed by
Robert Jördens
5 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Lattice iCE40: implement DifferentialInput
parent
a6f9cbd0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
migen/build/lattice/common.py
migen/build/lattice/common.py
+18
-1
No files found.
migen/build/lattice/common.py
View file @
c8cae394
...
@@ -135,8 +135,25 @@ class LatticeiCE40DifferentialOutput:
...
@@ -135,8 +135,25 @@ class LatticeiCE40DifferentialOutput:
def
lower
(
dr
):
def
lower
(
dr
):
return
LatticeiCE40DifferentialOutputImpl
(
dr
.
i
,
dr
.
o_p
,
dr
.
o_n
)
return
LatticeiCE40DifferentialOutputImpl
(
dr
.
i
,
dr
.
o_p
,
dr
.
o_n
)
class
LatticeiCE40DifferentialInputImpl
(
Module
):
def
__init__
(
self
,
i_p
,
i_n
,
o
):
self
.
specials
+=
Instance
(
"SB_IO"
,
p_PIN_TYPE
=
C
(
0b000001
,
6
),
# simple input pin
p_IO_STANDARD
=
"SB_LVDS_INPUT"
,
io_PACKAGE_PIN
=
i_n
,
o_D_IN_0
=
o
)
class
LatticeiCE40DifferentialInput
:
@
staticmethod
def
lower
(
dr
):
return
LatticeiCE40DifferentialInputImpl
(
dr
.
i_p
,
dr
.
i_n
,
dr
.
o
)
lattice_ice40_special_overrides
=
{
lattice_ice40_special_overrides
=
{
AsyncResetSynchronizer
:
LatticeiCE40AsyncResetSynchronizer
,
AsyncResetSynchronizer
:
LatticeiCE40AsyncResetSynchronizer
,
Tristate
:
LatticeiCE40Tristate
,
Tristate
:
LatticeiCE40Tristate
,
DifferentialOutput
:
LatticeiCE40DifferentialOutput
DifferentialOutput
:
LatticeiCE40DifferentialOutput
,
DifferentialInput
:
LatticeiCE40DifferentialInput
,
}
}
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