lib.io: pass pin to platform.get_tristate().
authorwhitequark <cz@m-labs.hk>
Mon, 14 Jan 2019 21:39:19 +0000 (21:39 +0000)
committerwhitequark <cz@m-labs.hk>
Mon, 14 Jan 2019 21:39:19 +0000 (21:39 +0000)
nmigen/lib/io.py

index 313c8b753b75d4dc6b3d6975a159667f4e6ff17e..bd7d82356818f7cd859d3ceaadf95148d920421e 100644 (file)
@@ -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)