From b67f5cfa6564b3456529eb67d534b59f3b913a74 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alain=20P=C3=A9teut?= Date: Tue, 2 Jul 2019 09:47:40 +0200 Subject: [PATCH] vendor.xilinx_7series: read extra .xdc files. --- nmigen/vendor/xilinx_7series.py | 5 +++++ 1 file changed, 5 insertions(+) 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)")}} -- 2.30.2