mirror of
https://github.com/saymrwulf/litex-boards.git
synced 2026-11-19 09:50:49 +00:00
plaforms/lattice_certuspro_nx_xx: SPI_MASTER_PORT disabled (required to have access to the flash), added default clk period constraints
This commit is contained in:
parent
5d4ebeb09c
commit
ab732011b3
3 changed files with 18 additions and 3 deletions
|
|
@ -137,9 +137,14 @@ class Platform(LatticeNexusPlatform):
|
||||||
def __init__(self, device="LFCPNX", toolchain="radiant", **kwargs):
|
def __init__(self, device="LFCPNX", toolchain="radiant", **kwargs):
|
||||||
assert device in ["LFCPNX"]
|
assert device in ["LFCPNX"]
|
||||||
LatticeNexusPlatform.__init__(self, device + "-100-9LFG672C", _io, _connectors, toolchain=toolchain, **kwargs)
|
LatticeNexusPlatform.__init__(self, device + "-100-9LFG672C", _io, _connectors, toolchain=toolchain, **kwargs)
|
||||||
self.add_platform_command("ldc_set_sysconfig {{MASTER_SPI_PORT=SERIAL}}")
|
# SPI Pins may be used as General IO Pins (see FPGA-AN-02048 4.1.7)
|
||||||
|
self.add_platform_command("ldc_set_sysconfig {{MASTER_SPI_PORT=DISABLE}}")
|
||||||
# Evaluation mode (with free license)
|
# Evaluation mode (with free license)
|
||||||
self.toolchain.set_prj_strategy_opts({"bit_ip_eval": "true"})
|
self.toolchain.set_prj_strategy_opts({"bit_ip_eval": "true"})
|
||||||
|
|
||||||
def create_programmer(self):
|
def create_programmer(self):
|
||||||
return OpenFPGALoader()
|
return OpenFPGALoader()
|
||||||
|
|
||||||
|
def do_finalize(self, fragment):
|
||||||
|
LatticeNexusPlatform.do_finalize(self, fragment)
|
||||||
|
self.add_period_constraint(self.lookup_request("clk125", loose=True), 1e9/125e6)
|
||||||
|
|
|
||||||
|
|
@ -136,9 +136,14 @@ class Platform(LatticeNexusPlatform):
|
||||||
def __init__(self, device="LFCPNX", toolchain="radiant", **kwargs):
|
def __init__(self, device="LFCPNX", toolchain="radiant", **kwargs):
|
||||||
assert device in ["LFCPNX"]
|
assert device in ["LFCPNX"]
|
||||||
LatticeNexusPlatform.__init__(self, device + "-100-9LFG672I", _io, _connectors, toolchain=toolchain, **kwargs)
|
LatticeNexusPlatform.__init__(self, device + "-100-9LFG672I", _io, _connectors, toolchain=toolchain, **kwargs)
|
||||||
self.add_platform_command("ldc_set_sysconfig {{MASTER_SPI_PORT=SERIAL}}")
|
# SPI Pins may be used as General IO Pins (see FPGA-AN-02048 4.1.7)
|
||||||
|
self.add_platform_command("ldc_set_sysconfig {{MASTER_SPI_PORT=DISABLE}}")
|
||||||
# Evaluation mode (with free license)
|
# Evaluation mode (with free license)
|
||||||
self.toolchain.set_prj_strategy_opts({"bit_ip_eval": "true"})
|
self.toolchain.set_prj_strategy_opts({"bit_ip_eval": "true"})
|
||||||
|
|
||||||
def create_programmer(self):
|
def create_programmer(self):
|
||||||
return OpenFPGALoader()
|
return OpenFPGALoader()
|
||||||
|
|
||||||
|
def do_finalize(self, fragment):
|
||||||
|
LatticeNexusPlatform.do_finalize(self, fragment)
|
||||||
|
self.add_period_constraint(self.lookup_request("clkin125", loose=True), 1e9/125e6)
|
||||||
|
|
|
||||||
|
|
@ -110,9 +110,14 @@ class Platform(LatticeNexusPlatform):
|
||||||
def __init__(self, device="LFCPNX", toolchain="radiant", **kwargs):
|
def __init__(self, device="LFCPNX", toolchain="radiant", **kwargs):
|
||||||
assert device in ["LFCPNX"]
|
assert device in ["LFCPNX"]
|
||||||
LatticeNexusPlatform.__init__(self, device + "-100-9BBG484I", _io, _connectors, toolchain=toolchain, **kwargs)
|
LatticeNexusPlatform.__init__(self, device + "-100-9BBG484I", _io, _connectors, toolchain=toolchain, **kwargs)
|
||||||
self.add_platform_command("ldc_set_sysconfig {{MASTER_SPI_PORT=SERIAL}}")
|
# SPI Pins may be used as General IO Pins (see FPGA-AN-02048 4.1.7)
|
||||||
|
self.add_platform_command("ldc_set_sysconfig {{MASTER_SPI_PORT=DISABLE}}")
|
||||||
# Evaluation mode (with free license)
|
# Evaluation mode (with free license)
|
||||||
self.toolchain.set_prj_strategy_opts({"bit_ip_eval": "true"})
|
self.toolchain.set_prj_strategy_opts({"bit_ip_eval": "true"})
|
||||||
|
|
||||||
def create_programmer(self):
|
def create_programmer(self):
|
||||||
return OpenFPGALoader()
|
return OpenFPGALoader()
|
||||||
|
|
||||||
|
def do_finalize(self, fragment):
|
||||||
|
LatticeNexusPlatform.do_finalize(self, fragment)
|
||||||
|
self.add_period_constraint(self.lookup_request("clk24", loose=True), 1e9/24e6)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue