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:
whitequark 2019-06-04 12:26:09 +00:00
parent 0cbb743df9
commit 79a3710255

View file

@ -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)