From: whitequark Date: Mon, 14 Jan 2019 21:39:19 +0000 (+0000) Subject: lib.io: pass pin to platform.get_tristate(). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0b04b1a6ebde6bb882e8ab6d4eedca3ea3947348;p=nmigen.git lib.io: pass pin to platform.get_tristate(). --- diff --git a/nmigen/lib/io.py b/nmigen/lib/io.py index 313c8b7..bd7d823 100644 --- a/nmigen/lib/io.py +++ b/nmigen/lib/io.py @@ -31,7 +31,7 @@ class Tristate: def get_fragment(self, platform): if hasattr(platform, "get_tristate"): - return platform.get_tristate(self.triple) + return platform.get_tristate(self.triple, self.io) m = Module() m.d.comb += self.triple.i.eq(self.io)