build/altera/quartus.py: added support for ips other than QSYS_FILE

This commit is contained in:
Gwenhael Goavec-Merou 2024-07-04 09:51:09 +02:00
parent 7393c35264
commit 9fd63973aa
1 changed files with 2 additions and 1 deletions

View File

@ -152,7 +152,8 @@ class AlteraQuartusToolchain(GenericToolchain):
# Add IPs
for filename in self.platform.ips:
qsf.append("set_global_assignment -name QSYS_FILE " + filename.replace("\\", "/"))
file_ext = os.path.splitext(filename)[1][1:].upper()
qsf.append(f"set_global_assignment -name {file_ext}_FILE " + filename.replace("\\", "/"))
# Add include paths
for path in self.platform.verilog_include_paths: