platforms/crosslink_nx_evn/vip: add default_clk.

This commit is contained in:
Florent Kermarrec 2020-11-12 14:26:17 +01:00
parent f3ccd140c2
commit ac075f18c7
2 changed files with 6 additions and 0 deletions

View File

@ -246,6 +246,9 @@ serial_pmods = [
# Platform ----------------------------------------------------------------------------------------- # Platform -----------------------------------------------------------------------------------------
class Platform(LatticePlatform): class Platform(LatticePlatform):
default_clk_name = "clk12"
default_clk_period = 1e9/12e6
def __init__(self, device="LIFCL", **kwargs): def __init__(self, device="LIFCL", **kwargs):
assert device in ["LIFCL"] assert device in ["LIFCL"]
LatticePlatform.__init__(self, device + "-40-9BG400C", _io, _connectors, toolchain="radiant", **kwargs) LatticePlatform.__init__(self, device + "-40-9BG400C", _io, _connectors, toolchain="radiant", **kwargs)

View File

@ -199,6 +199,9 @@ _connectors = [
# Platform ----------------------------------------------------------------------------------------- # Platform -----------------------------------------------------------------------------------------
class Platform(LatticePlatform): class Platform(LatticePlatform):
default_clk_name = "clk12"
default_clk_period = 1e9/12e6
def __init__(self, device="LIFCL", **kwargs): def __init__(self, device="LIFCL", **kwargs):
assert device in ["LIFCL"] assert device in ["LIFCL"]
LatticePlatform.__init__(self, device + "-40-9BG400C", _io, _connectors, toolchain="radiant", **kwargs) LatticePlatform.__init__(self, device + "-40-9BG400C", _io, _connectors, toolchain="radiant", **kwargs)