From 9fd63973aa7141233c5895c321f94a218593b9aa Mon Sep 17 00:00:00 2001 From: Gwenhael Goavec-Merou Date: Thu, 4 Jul 2024 09:51:09 +0200 Subject: [PATCH] build/altera/quartus.py: added support for ips other than QSYS_FILE --- litex/build/altera/quartus.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/litex/build/altera/quartus.py b/litex/build/altera/quartus.py index 985ad0729..5be426c29 100644 --- a/litex/build/altera/quartus.py +++ b/litex/build/altera/quartus.py @@ -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: