compat.fhdl.specials: fix platform lowering.
authorwhitequark <cz@m-labs.hk>
Tue, 4 Jun 2019 12:26:09 +0000 (12:26 +0000)
committerwhitequark <cz@m-labs.hk>
Tue, 4 Jun 2019 12:26:09 +0000 (12:26 +0000)
get_tristate only has O/OE; the triple is created by get_input_output.

nmigen/compat/fhdl/specials.py

index 64f8db349c6ca7608d1a41399cb8870386efc547..491b5def5992bd8e257cb717738ad73a80f18ad8 100644 (file)
@@ -39,8 +39,8 @@ class Tristate(Elaboratable):
             self.triple.i = i
 
     def elaborate(self, platform):
-        if hasattr(platform, "get_tristate"):
-            return platform.get_tristate(self.triple, self.target)
+        if hasattr(platform, "get_input_output"):
+            return platform.get_input_output(self.triple, self.target, extras={})
 
         m = Module()
         m.d.comb += self.triple.i.eq(self.target)