From: whitequark Date: Tue, 4 Jun 2019 12:26:09 +0000 (+0000) Subject: compat.fhdl.specials: fix platform lowering. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=04a43c687717cd24fd22fc0d9d454c79f7846786;p=nmigen.git compat.fhdl.specials: fix platform lowering. get_tristate only has O/OE; the triple is created by get_input_output. --- diff --git a/nmigen/compat/fhdl/specials.py b/nmigen/compat/fhdl/specials.py index 64f8db3..491b5de 100644 --- 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)