-
Notifications
You must be signed in to change notification settings - Fork 210
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migen/genlib: add io.py to define generic I/O specials to be lowered …
…by mibuild
1 parent
00e8616
commit c8ba8cd
Showing
2 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from migen.fhdl.std import * | ||
from migen.fhdl.specials import Special | ||
from migen.fhdl.tools import list_signals | ||
|
||
class DifferentialInput(Special): | ||
def __init__(self, i_p, i_n, o): | ||
Special.__init__(self) | ||
self.i_p = i_p | ||
self.i_n = i_n | ||
self.o = o | ||
|
||
def iter_expressions(self): | ||
yield self, "i_p", SPECIAL_INPUT | ||
yield self, "i_n", SPECIAL_INPUT | ||
yield self, "o", SPECIAL_OUTPUT | ||
|
||
@staticmethod | ||
def lower(dr): | ||
raise NotImplementedError("Attempted to use a reset synchronizer, but platform does not support them") | ||
This comment has been minimized.
Sorry, something went wrong. |
1 comment
on commit c8ba8cd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks! fixed.
copy paste error