build/lattice/common: change LatticeECPXDDROutputImpl from ECP3 to ECP5.

This commit is contained in:
Florent Kermarrec 2020-03-24 19:08:38 +01:00
parent 5a402264d0
commit 0123ccc893
1 changed files with 7 additions and 10 deletions

View File

@ -33,19 +33,16 @@ class LatticeECPXAsyncResetSynchronizer:
def lower(dr):
return LatticeECPXAsyncResetSynchronizerImpl(dr.cd, dr.async_reset)
# ECPX Differential Output -------------------------------------------------------------------------
# ECPX DDDR Output ---------------------------------------------------------------------------------
class LatticeECPXDDROutputImpl(Module):
def __init__(self, i1, i2, o, clk):
self.specials += [
Instance("ODDRXD1",
synthesis_directive="ODDRAPPS=\"SCLK_ALIGNED\"",
self.specials += Instance("ODDRX1F",
i_SCLK = clk,
i_DA = i1,
i_DB = i2,
o_Q = o)
]
i_D0 = i1,
i_D1 = i2,
o_Q = o,
)
class LatticeECPXDDROutput:
@staticmethod