build/lattice/common: change LatticeECPXDDROutputImpl from ECP3 to ECP5.
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 24 Mar 2020 18:08:38 +0000 (19:08 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 24 Mar 2020 18:08:38 +0000 (19:08 +0100)
litex/build/lattice/common.py

index 2a99f848420351556b3acd215c6896f9375123b0..6c01ac41d9c3fa3407d4b9c97c780ea9300d33c7 100644 (file)
@@ -33,19 +33,16 @@ class LatticeECPXAsyncResetSynchronizer:
     def lower(dr):
         return LatticeECPXAsyncResetSynchronizerImpl(dr.cd, dr.async_reset)
 
-# ECPX Differential Output -------------------------------------------------------------------------
+# ECPX DDDR Output ---------------------------------------------------------------------------------
 
 class LatticeECPXDDROutputImpl(Module):
     def __init__(self, i1, i2, o, clk):
-        self.specials += [
-            Instance("ODDRXD1",
-                synthesis_directive="ODDRAPPS=\"SCLK_ALIGNED\"",
-                i_SCLK = clk,
-                i_DA   = i1,
-                i_DB   = i2,
-                o_Q    = o)
-        ]
-
+        self.specials += Instance("ODDRX1F",
+            i_SCLK = clk,
+            i_D0   = i1,
+            i_D1   = i2,
+            o_Q    = o,
+        )
 
 class LatticeECPXDDROutput:
     @staticmethod