Skip to content

Commit

Permalink
build/altera/quartus.py: added support for ips other than QSYS_FILE
Browse files Browse the repository at this point in the history
  • Loading branch information
trabucayre committed Jul 4, 2024
1 parent 7393c35 commit 9fd6397
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion litex/build/altera/quartus.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9fd6397

Please sign in to comment.