build/lattice/common: fix LatticeECPXPrjTrellisTristateImpl
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 30 Oct 2018 07:32:24 +0000 (08:32 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 30 Oct 2018 07:47:12 +0000 (08:47 +0100)
litex/build/lattice/common.py

index 0b5ef703101eb7dc6ff2912cc432a334a81dcf3e..4e84329574269032ef7ef00ce46a819f927b6155 100644 (file)
@@ -49,9 +49,10 @@ class LatticeECPXPrjTrellisTristateImpl(Module):
             self.specials += \
                 Instance("TRELLIS_IO",
                     p_DIR="BIDIR",
-                    i_B=~io[bit],
+                    i_B=io[bit],
                     i_I=o[bit],
-                    o_O=i[bit]
+                    o_O=i[bit],
+                    i_T=~oe,
                 )
 
 class LatticeECPXPrjTrellisTristate(Module):