From 04a43c687717cd24fd22fc0d9d454c79f7846786 Mon Sep 17 00:00:00 2001 From: whitequark Date: Tue, 4 Jun 2019 12:26:09 +0000 Subject: [PATCH] compat.fhdl.specials: fix platform lowering. get_tristate only has O/OE; the triple is created by get_input_output. --- nmigen/compat/fhdl/specials.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.30.2