From: Alain Péteut Date: Mon, 22 Apr 2019 08:37:06 +0000 (+0200) Subject: compat.fhdl.specials: fix Tristate. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3d184214e3210f4095fe6f84b4e00caeb420b642;p=nmigen.git compat.fhdl.specials: fix Tristate. --- 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,