Skip to content

Commit 6dd8d89

Browse files
committedMar 17, 2015
mibuild/lattice: fix LatticeDDROutput
1 parent 9adf3f0 commit 6dd8d89

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
 

‎mibuild/lattice/common.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
from migen.fhdl.std import *
22
from migen.genlib.io import *
33

4-
class LatticeDifferentialOutput:
5-
@staticmethod
6-
def lower(dr):
7-
return LatticeDifferentialOutputImpl(dr.i, dr.o_p, dr.o_n)
8-
94
class LatticeDDROutputImpl(Module):
105
def __init__(self, i1, i2, o, clk):
116
self.specials += Instance("ODDRA",
127
i_CLK=clk, i_RST=0,
138
i_DA=i1, i_DB=i2, o_Q=o,
149
)
1510

11+
class LatticeDDROutput:
12+
@staticmethod
13+
def lower(dr):
14+
return LatticeDDROutputImpl(dr.i1, dr.i2, dr.o, dr.clk)
15+
1616
lattice_special_overrides = {
1717
DDROutput: LatticeDDROutput
1818
}

0 commit comments

Comments
 (0)
Please sign in to comment.