From: Florent Kermarrec Date: Tue, 17 Mar 2015 08:40:25 +0000 (+0100) Subject: mibuild/lattice: fix LatticeDDROutput X-Git-Tag: 24jan2021_ls180~2099^2~175 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6dd8d89c6cf4aeb20a9d80559dbf8387cc18e1d0;p=litex.git mibuild/lattice: fix LatticeDDROutput --- diff --git a/mibuild/lattice/common.py b/mibuild/lattice/common.py index c087c2aa..e238a327 100644 --- a/mibuild/lattice/common.py +++ b/mibuild/lattice/common.py @@ -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 }