mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
build/toolchains: Specify passed toolchain when unknown.
This commit is contained in:
parent
3020344fd8
commit
419d605e38
9 changed files with 9 additions and 9 deletions
|
@ -22,7 +22,7 @@ class AlteraPlatform(GenericPlatform):
|
|||
if toolchain == "quartus":
|
||||
self.toolchain = quartus.AlteraQuartusToolchain()
|
||||
else:
|
||||
raise ValueError("Unknown toolchain")
|
||||
raise ValueError(f"Unknown toolchain {toolchain}")
|
||||
|
||||
def add_ip(self, filename):
|
||||
self.ips.add((os.path.abspath(filename)))
|
||||
|
|
|
@ -20,7 +20,7 @@ class AnlogicPlatform(GenericPlatform):
|
|||
if toolchain == "td":
|
||||
self.toolchain = anlogic.TangDinastyToolchain()
|
||||
else:
|
||||
raise ValueError("Unknown toolchain")
|
||||
raise ValueError(f"Unknown toolchain {toolchain}")
|
||||
|
||||
def get_verilog(self, *args, special_overrides=dict(), **kwargs):
|
||||
so = dict(common.anlogic_special_overrides)
|
||||
|
|
|
@ -41,7 +41,7 @@ class EfinixPlatform(GenericPlatform):
|
|||
if toolchain == "efinity":
|
||||
self.toolchain = efinity.EfinityToolchain(self.efinity_path)
|
||||
else:
|
||||
raise ValueError("Unknown toolchain")
|
||||
raise ValueError(f"Unknown toolchain {toolchain}")
|
||||
|
||||
self.parser = EfinixDbParser(self.efinity_path, self.device)
|
||||
self.pll_available = self.parser.get_block_instance_names('pll')
|
||||
|
|
|
@ -27,7 +27,7 @@ class GowinPlatform(GenericPlatform):
|
|||
elif toolchain == "apicula":
|
||||
raise ValueError("Apicula toolchain needs more work")
|
||||
else:
|
||||
raise ValueError("Unknown toolchain")
|
||||
raise ValueError(f"Unknown toolchain {toolchain}")
|
||||
|
||||
def get_verilog(self, *args, special_overrides=dict(), **kwargs):
|
||||
so = dict(common.gowin_special_overrides)
|
||||
|
|
|
@ -27,7 +27,7 @@ class LatticePlatform(GenericPlatform):
|
|||
elif toolchain == "oxide":
|
||||
self.toolchain = oxide.LatticeOxideToolchain()
|
||||
else:
|
||||
raise ValueError("Unknown toolchain")
|
||||
raise ValueError(f"Unknown toolchain {toolchain}")
|
||||
|
||||
def get_verilog(self, *args, special_overrides=dict(), **kwargs):
|
||||
so = dict() # No common overrides between ECP5 and iCE40.
|
||||
|
|
|
@ -17,7 +17,7 @@ class MicrosemiPlatform(GenericPlatform):
|
|||
if toolchain == "libero_soc_polarfire":
|
||||
self.toolchain = libero_soc.MicrosemiLiberoSoCPolarfireToolchain()
|
||||
else:
|
||||
raise ValueError("Unknown toolchain")
|
||||
raise ValueError(f"Unknown toolchain {toolchain}")
|
||||
|
||||
def get_verilog(self, *args, special_overrides=dict(), **kwargs):
|
||||
so = dict()
|
||||
|
|
|
@ -19,7 +19,7 @@ class QuickLogicPlatform(GenericPlatform):
|
|||
if toolchain == "symbiflow":
|
||||
self.toolchain = symbiflow.SymbiflowToolchain()
|
||||
else:
|
||||
raise ValueError("Unknown toolchain")
|
||||
raise ValueError(f"Unknown toolchain {toolchain}")
|
||||
|
||||
def get_verilog(self, *args, special_overrides=dict(), **kwargs):
|
||||
so = dict(common.quicklogic_special_overrides)
|
||||
|
|
|
@ -24,7 +24,7 @@ class SimPlatform(GenericPlatform):
|
|||
if toolchain == "verilator":
|
||||
self.toolchain = verilator.SimVerilatorToolchain()
|
||||
else:
|
||||
raise ValueError("Unknown toolchain")
|
||||
raise ValueError(f"Unknown toolchain {toolchain}")
|
||||
# we must always request the sim_trace signal
|
||||
self.trace = self.request("sim_trace")
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ class XilinxPlatform(GenericPlatform):
|
|||
# import symbiflow_nextpnr
|
||||
# self.toolchain = symbiflow_nextpnr.SymbiflowNextpnrToolchain()
|
||||
else:
|
||||
raise ValueError("Unknown toolchain")
|
||||
raise ValueError(f"Unknown toolchain {toolchain}")
|
||||
|
||||
def add_edif(self, filename):
|
||||
self.edifs.add((os.path.abspath(filename)))
|
||||
|
|
Loading…
Reference in a new issue