mibuild/xilinx/common: add LatticeDDROutput

This commit is contained in:
Florent Kermarrec 2015-03-16 22:57:18 +01:00
parent 993059a59c
commit b5a9909b08
1 changed files with 18 additions and 1 deletions

View File

@ -1 +1,18 @@
lattice_special_overrides = {} 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",
i_CLK=clk, i_RST=0,
i_DA=i1, i_DB=i2, o_Q=o,
)
lattice_special_overrides = {
DDROutput: LatticeDDROutput
}