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,
""",
"{{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 %}