mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
mibuild/lattice: fix LatticeDDROutput
This commit is contained in:
parent
9adf3f02f2
commit
6dd8d89c6c
1 changed files with 5 additions and 5 deletions
|
@ -1,11 +1,6 @@
|
||||||
from migen.fhdl.std import *
|
from migen.fhdl.std import *
|
||||||
from migen.genlib.io 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):
|
class LatticeDDROutputImpl(Module):
|
||||||
def __init__(self, i1, i2, o, clk):
|
def __init__(self, i1, i2, o, clk):
|
||||||
self.specials += Instance("ODDRA",
|
self.specials += Instance("ODDRA",
|
||||||
|
@ -13,6 +8,11 @@ class LatticeDDROutputImpl(Module):
|
||||||
i_DA=i1, i_DB=i2, o_Q=o,
|
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 = {
|
lattice_special_overrides = {
|
||||||
DDROutput: LatticeDDROutput
|
DDROutput: LatticeDDROutput
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue