projects
/
litex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7d7fe1
)
mibuild/lattice: use ODDRXD1 and new synthesis directive
author
Florent Kermarrec
<florent@enjoy-digital.fr>
Tue, 17 Mar 2015 13:59:36 +0000
(14:59 +0100)
committer
Florent Kermarrec
<florent@enjoy-digital.fr>
Tue, 17 Mar 2015 13:59:36 +0000
(14:59 +0100)
mibuild/lattice/common.py
patch
|
blob
|
history
diff --git
a/mibuild/lattice/common.py
b/mibuild/lattice/common.py
index 1f5654c4812bf804dec6af2f951c5eb19960c6cd..0cf8a07fbe51c67a9709995898bca0d4a4de74de 100644
(file)
--- a/
mibuild/lattice/common.py
+++ b/
mibuild/lattice/common.py
@@
-1,6
+1,8
@@
from migen.fhdl.std import *
from migen.genlib.io import *
+from migen.genlib.resetsync import AsyncResetSynchronizer
+
class LatticeAsyncResetSynchronizerImpl(Module):
def __init__(self, cd, async_reset):
rst1 = Signal()
@@
-18,8
+20,9
@@
class LatticeAsyncResetSynchronizer:
class LatticeDDROutputImpl(Module):
def __init__(self, i1, i2, o, clk):
- self.specials += Instance("ODDRA",
- i_CLK=clk, i_RST=0,
+ self.specials += Instance("ODDRXD1",
+ synthesis_directive="ODDRAPPS=\"SCLK_ALIGNED\"",
+ i_SCLK=clk,
i_DA=i1, i_DB=i2, o_Q=o,
)