mibuild/lattice: fix LatticeDDROutput
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 17 Mar 2015 08:40:25 +0000 (09:40 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 17 Mar 2015 08:40:25 +0000 (09:40 +0100)
mibuild/lattice/common.py

index c087c2aadf6e1ac90831fa98280b01f6ecfef4a5..e238a327ab80ed54b9d5d8c4c780e22e6cb4fde9 100644 (file)
@@ -1,11 +1,6 @@
 from migen.fhdl.std import *
 from migen.genlib.io import *
 
-class LatticeDifferentialOutput:
-       @staticmethod
-       def lower(dr):
-               return LatticeDifferentialOutputImpl(dr.i, dr.o_p, dr.o_n)
-
 class LatticeDDROutputImpl(Module):
        def __init__(self, i1, i2, o, clk):
                self.specials += Instance("ODDRA",
@@ -13,6 +8,11 @@ class LatticeDDROutputImpl(Module):
                                i_DA=i1, i_DB=i2, o_Q=o,
                )
 
+class LatticeDDROutput:
+       @staticmethod
+       def lower(dr):
+               return LatticeDDROutputImpl(dr.i1, dr.i2, dr.o, dr.clk)
+
 lattice_special_overrides = {
        DDROutput:      LatticeDDROutput
 }