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