From: Mariusz Glebocki Date: Mon, 24 Aug 2020 11:03:59 +0000 (+0200) Subject: vendor.xilinx_7series: add `_part` property getter X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=512c69cfb08145909c99a85680ec1372a8d13d66;p=nmigen.git vendor.xilinx_7series: add `_part` property getter --- diff --git a/nmigen/vendor/xilinx_7series.py b/nmigen/vendor/xilinx_7series.py index 1716b91..e923e03 100644 --- a/nmigen/vendor/xilinx_7series.py +++ b/nmigen/vendor/xilinx_7series.py @@ -52,6 +52,10 @@ class Xilinx7SeriesPlatform(TemplatedPlatform): package = abstractproperty() speed = abstractproperty() + @property + def _part(self): + return "{}{}-{}".format(self.device, self.package, self.speed) + required_tools = ["vivado"] file_templates = { **TemplatedPlatform.build_script_templates, @@ -72,7 +76,7 @@ class Xilinx7SeriesPlatform(TemplatedPlatform): """, "{{name}}.tcl": r""" # {{autogenerated}} - create_project -force -name {{name}} -part {{platform.device}}{{platform.package}}-{{platform.speed}} + create_project -force -name {{name}} -part {{platform._part}} {% for file in platform.iter_extra_files(".v", ".sv", ".vhd", ".vhdl") -%} add_files {{file|tcl_escape}} {% endfor %}