From 79a371025542ffb72699ddc6f21445d8b18429eb 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