From: Staf Verhaegen Date: Thu, 4 Jul 2019 15:13:56 +0000 (+0200) Subject: vendor.xilinx_{7series,spartan6}: Support extra VHDL files. X-Git-Tag: locally_working~112 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2829d040334e28055cc591c638291a82dceb26f8;p=nmigen.git vendor.xilinx_{7series,spartan6}: Support extra VHDL files. --- diff --git a/nmigen/vendor/xilinx_7series.py b/nmigen/vendor/xilinx_7series.py index 3c43b08..7b06cdb 100644 --- a/nmigen/vendor/xilinx_7series.py +++ b/nmigen/vendor/xilinx_7series.py @@ -55,7 +55,7 @@ class Xilinx7SeriesPlatform(TemplatedPlatform): "{{name}}.tcl": r""" # {{autogenerated}} create_project -force -name {{name}} -part {{platform.device}}{{platform.package}}-{{platform.speed}} - {% for file in platform.iter_extra_files(".v", ".sv") -%} + {% for file in platform.iter_extra_files(".v", ".sv", ".vhd", ".vhdl") -%} add_files {{file}} {% endfor %} add_files {{name}}.v diff --git a/nmigen/vendor/xilinx_spartan6.py b/nmigen/vendor/xilinx_spartan6.py index 4a0d3a6..7ac360a 100644 --- a/nmigen/vendor/xilinx_spartan6.py +++ b/nmigen/vendor/xilinx_spartan6.py @@ -57,6 +57,9 @@ class XilinxSpartan6Platform(TemplatedPlatform): """, "{{name}}.prj": r""" # {{autogenerated}} + {% for file in platform.iter_extra_files(".vhd", ".vhdl") -%} + vhdl work {{file}} + {% endfor %} {% for file in platform.iter_extra_files(".v") -%} verilog work {{file}} {% endfor %}