Skip to content

Commit

Permalink
mibuild/lattice: fix LatticeDDROutput
Browse files Browse the repository at this point in the history
  • Loading branch information
enjoy-digital committed Mar 17, 2015
1 parent 9adf3f0 commit 6dd8d89
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions mibuild/lattice/common.py
@@ -1,18 +1,18 @@
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,
)

class LatticeDDROutput:
@staticmethod
def lower(dr):
return LatticeDDROutputImpl(dr.i1, dr.i2, dr.o, dr.clk)

lattice_special_overrides = {
DDROutput: LatticeDDROutput
}

0 comments on commit 6dd8d89

Please sign in to comment.