vendor.xilinx_7series: read extra .xdc files.
authorAlain Péteut <alain.peteut@yahoo.com>
Tue, 2 Jul 2019 07:47:40 +0000 (09:47 +0200)
committerwhitequark <whitequark@whitequark.org>
Tue, 2 Jul 2019 08:23:37 +0000 (08:23 +0000)
nmigen/vendor/xilinx_7series.py

index b711be0c1eb850cfd29229505cb774126ee63049..b0f8f99b0610cf932113380eded1f304339c0456 100644 (file)
@@ -62,6 +62,11 @@ class Xilinx7SeriesPlatform(TemplatedPlatform):
             {% endfor %}
             add_files {{name}}.v
             read_xdc {{name}}.xdc
+            {% for file in platform.extra_files %}
+                {% if file.endswith("xdc") -%}
+                    read_xdc {{file}}
+                {% endif %}
+            {% endfor %}
             {{get_override("script_after_read")|default("# (script_after_read placeholder)")}}
             synth_design -top {{name}} -part {{platform.device}}{{platform.package}}-{{platform.speed}}
             {{get_override("script_after_synth")|default("# (script_after_synth placeholder)")}}