diff --git a/litex/build/altera/quartus.py b/litex/build/altera/quartus.py index 985ad0729b..5be426c293 100644 --- a/litex/build/altera/quartus.py +++ b/litex/build/altera/quartus.py @@ -152,7 +152,8 @@ def build_project(self): # 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: