projects
/
nmigen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5cb56a3
)
compat.fhdl.specials: fix platform lowering.
author
whitequark
<cz@m-labs.hk>
Tue, 4 Jun 2019 12:26:09 +0000
(12:26 +0000)
committer
whitequark
<cz@m-labs.hk>
Tue, 4 Jun 2019 12:26:09 +0000
(12:26 +0000)
get_tristate only has O/OE; the triple is created by get_input_output.
nmigen/compat/fhdl/specials.py
patch
|
blob
|
history
diff --git
a/nmigen/compat/fhdl/specials.py
b/nmigen/compat/fhdl/specials.py
index 64f8db349c6ca7608d1a41399cb8870386efc547..491b5def5992bd8e257cb717738ad73a80f18ad8 100644
(file)
--- a/
nmigen/compat/fhdl/specials.py
+++ b/
nmigen/compat/fhdl/specials.py
@@
-39,8
+39,8
@@
class Tristate(Elaboratable):
self.triple.i = i
def elaborate(self, platform):
- if hasattr(platform, "get_
tristate
"):
- return platform.get_
tristate(self.triple, self.target
)
+ if hasattr(platform, "get_
input_output
"):
+ return platform.get_
input_output(self.triple, self.target, extras={}
)
m = Module()
m.d.comb += self.triple.i.eq(self.target)