Skip to content

Commit 520cc50

Browse files
authored
Merge pull request #50 from m42uko/fix/diamond-prefs
diamond: Use the project name as the name for the combined constraints
2 parents 9fb634e + cdfec22 commit 520cc50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyfpga/templates/diamond.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ prj_src add {% if 'lib' in attr %}-work {{ attr.lib }}{% else %}{% endif %} {{ n
2525
# Constraints inclusion
2626
# Diamond only supports one constraints file, so we need to combine them into the default diamond.lpf.
2727
# We can't just do `prj_src add <constraints-file>` multiple times.
28-
set fileId [open diamond.lpf "w"]
28+
set fileId [open {{ project }}.lpf "w"]
2929
{% for name, attr in constraints.items() %}
3030
set fp [open "{{ name }}" r]
3131
set file_data [read $fp]

0 commit comments

Comments
 (0)