compat.fhdl.specials: fix platform lowering.
get_tristate only has O/OE; the triple is created by get_input_output.
This commit is contained in:
parent
0cbb743df9
commit
79a3710255
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue