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