From: Alain Péteut Date: Tue, 2 Jul 2019 07:47:40 +0000 (+0200) Subject: vendor.xilinx_7series: read extra .xdc files. X-Git-Tag: locally_working~132 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b67f5cfa6564b3456529eb67d534b59f3b913a74;p=nmigen.git vendor.xilinx_7series: read extra .xdc files. --- diff --git a/nmigen/vendor/xilinx_7series.py b/nmigen/vendor/xilinx_7series.py index b711be0..b0f8f99 100644 --- a/nmigen/vendor/xilinx_7series.py +++ b/nmigen/vendor/xilinx_7series.py @@ -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)")}}