build/xilinx/common: update XilinxDDRInputImplS7 and XilinxDDRInputImplKU (from migen)
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 4 Oct 2018 06:17:44 +0000 (08:17 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 4 Oct 2018 06:17:44 +0000 (08:17 +0200)
litex/build/xilinx/common.py

index 9e90e3426258d35d4f03fef7559b866aecadbe55..fffa7a447513734733930c4099aa18c0f1adb473 100644 (file)
@@ -169,9 +169,9 @@ class XilinxDDROutputS7:
 class XilinxDDRInputImplS7(Module):
     def __init__(self, i, o1, o2, clk):
         self.specials += Instance("IDDR",
-                p_DDR_CLK_EDGE="SAME_EDGE_PIPELINED",
+                p_DDR_CLK_EDGE="SAME_EDGE",
                 i_C=clk, i_CE=1, i_S=0, i_R=0,
-                o_D=i, i_Q1=o1, i_Q2=o2,
+                i_D=i, o_Q1=o1, o_Q2=o2,
         )
 
 
@@ -206,9 +206,10 @@ class XilinxDDRInputImplKU(Module):
         self.specials += Instance("IDDRE1",
             p_DDR_CLK_EDGE="SAME_EDGE_PIPELINED",
             p_IS_C_INVERTED=0,
+            p_IS_CB_INVERTED=1,
             i_D=i,
             o_Q1=o1, o_Q2=o2,
-            i_C=clk, i_CB=~clk,
+            i_C=clk, i_CB=clk,
             i_R=0
         )