Closed gts-bzi closed 2 weeks ago
Hi @gts-bzi Thanks. It was fixed a few days ago and moved to https://github.com/PyFPGA/pyfpga/blob/dev/pyfpga/templates/vivado.jinja:
add_file -fileset constrs_1 {{ name }}
{% if attr == "syn" %}
set_property USED_IN_IMPLEMENTATION FALSE [get_files {{ name }}]
{% elif attr == "par" %}
set_property USED_IN_SYNTHESIS FALSE [get_files {{ name }}]
{% endif %}
PS: I'm considering removing it (at the moment, it is Vivado-specific and only useful to avoid WARNINGs).
Seems like a copy&paste issue and am unsure what the original intention is:
But either of the two conditions seems faulty. Otherwise move them into the same if. Reference: https://github.com/PyFPGA/pyfpga/blob/dev/pyfpga/vivado.py#L48 at current head 73417f8