From 3d184214e3210f4095fe6f84b4e00caeb420b642 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alain=20P=C3=A9teut?= Date: Mon, 22 Apr 2019 10:37:06 +0200 Subject: [PATCH] compat.fhdl.specials: fix Tristate. --- nmigen/compat/fhdl/specials.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nmigen/compat/fhdl/specials.py b/nmigen/compat/fhdl/specials.py index 053f213..b119990 100644 --- a/nmigen/compat/fhdl/specials.py +++ b/nmigen/compat/fhdl/specials.py @@ -41,12 +41,12 @@ class Tristate: def elaborate(self, platform): if hasattr(platform, "get_tristate"): - return platform.get_tristate(self.triple, self.io) + return platform.get_tristate(self.triple, self.target) m = Module() - m.d.comb += self.triple.i.eq(self.io) + m.d.comb += self.triple.i.eq(self.target) m.submodules += Instance("$tribuf", - p_WIDTH=len(self.io), + p_WIDTH=len(self.target), i_EN=self.triple.oe, i_A=self.triple.o, o_Y=self.io, -- 2.30.2