Skip to content

Commit

Permalink
Merge pull request #50 from m42uko/fix/diamond-prefs
Browse files Browse the repository at this point in the history
diamond: Use the project name as the name for the combined constraints
  • Loading branch information
rodrigomelo9 authored Aug 23, 2024
2 parents 9fb634e + cdfec22 commit 520cc50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyfpga/templates/diamond.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ prj_src add {% if 'lib' in attr %}-work {{ attr.lib }}{% else %}{% endif %} {{ n
# Constraints inclusion
# Diamond only supports one constraints file, so we need to combine them into the default diamond.lpf.
# We can't just do `prj_src add <constraints-file>` multiple times.
set fileId [open diamond.lpf "w"]
set fileId [open {{ project }}.lpf "w"]
{% for name, attr in constraints.items() %}
set fp [open "{{ name }}" r]
set file_data [read $fp]
Expand Down

0 comments on commit 520cc50

Please sign in to comment.