vendor.quicklogic: fix toolchain nomenclature

Signed-off-by: Jan Kowalewski <jkowalewski@antmicro.com>
This commit is contained in:
Jan Kowalewski 2020-10-20 12:46:58 +02:00 committed by whitequark
parent 05decc43b2
commit b88009bd96

View file

@ -13,14 +13,14 @@ class QuicklogicPlatform(TemplatedPlatform):
Symbiflow toolchain Symbiflow toolchain
------------------- -------------------
Required tools: Required tools:
* ``synth`` * ``symbiflow_synth``
* ``pack`` * ``symbiflow_pack``
* ``place`` * ``symbiflow_place``
* ``route`` * ``symbiflow_route``
* ``write_fasm`` * ``symbiflow_write_fasm``
* ``write_bitstream`` * ``symbiflow_write_bitstream``
The environment is populated by running the script specified in the environment variable The environment is populated by running the script specified in the environment variable
``NMIGEN_ENV_Quicklogic``, if present. ``NMIGEN_ENV_QLSymbiflow``, if present.
Available overrides: Available overrides:
* ``add_constraints``: inserts commands in XDC file. * ``add_constraints``: inserts commands in XDC file.
""" """
@ -28,13 +28,18 @@ class QuicklogicPlatform(TemplatedPlatform):
device = abstractproperty() device = abstractproperty()
part = abstractproperty() part = abstractproperty()
# Since the QuickLogic version of SymbiFlow toolchain is not upstreamed yet
# we should distinguish the QuickLogic version from mainline one.
# QuickLogic toolchain: https://github.com/QuickLogic-Corp/quicklogic-fpga-toolchain/releases
toolchain = "QLSymbiflow"
required_tools = [ required_tools = [
"synth", "symbiflow_synth",
"pack", "symbiflow_pack",
"place", "symbiflow_place",
"route", "symbiflow_route",
"write_fasm", "symbiflow_write_fasm",
"write_bitstream" "symbiflow_write_bitstream"
] ]
file_templates = { file_templates = {
**TemplatedPlatform.build_script_templates, **TemplatedPlatform.build_script_templates,
@ -72,7 +77,7 @@ class QuicklogicPlatform(TemplatedPlatform):
} }
command_templates = [ command_templates = [
r""" r"""
{{invoke_tool("synth")}} {{invoke_tool("symbiflow_synth")}}
-t {{name}} -t {{name}}
-v {% for file in platform.iter_extra_files(".v", ".sv", ".vhd", ".vhdl") -%} {{file}} {% endfor %} {{name}}.v -v {% for file in platform.iter_extra_files(".v", ".sv", ".vhd", ".vhdl") -%} {{file}} {% endfor %} {{name}}.v
-d {{platform.device}} -d {{platform.device}}
@ -81,13 +86,13 @@ class QuicklogicPlatform(TemplatedPlatform):
-x {{name}}.xdc -x {{name}}.xdc
""", """,
r""" r"""
{{invoke_tool("pack")}} {{invoke_tool("symbiflow_pack")}}
-e {{name}}.eblif -e {{name}}.eblif
-d {{platform.device}} -d {{platform.device}}
-s {{name}}.sdc -s {{name}}.sdc
""", """,
r""" r"""
{{invoke_tool("place")}} {{invoke_tool("symbiflow_place")}}
-e {{name}}.eblif -e {{name}}.eblif
-d {{platform.device}} -d {{platform.device}}
-p {{name}}.pcf -p {{name}}.pcf
@ -96,19 +101,19 @@ class QuicklogicPlatform(TemplatedPlatform):
-s {{name}}.sdc -s {{name}}.sdc
""", """,
r""" r"""
{{invoke_tool("route")}} {{invoke_tool("symbiflow_route")}}
-e {{name}}.eblif -e {{name}}.eblif
-d {{platform.device}} -d {{platform.device}}
-s {{name}}.sdc -s {{name}}.sdc
""", """,
r""" r"""
{{invoke_tool("write_fasm")}} {{invoke_tool("symbiflow_write_fasm")}}
-e {{name}}.eblif -e {{name}}.eblif
-d {{platform.device}} -d {{platform.device}}
-s {{name}}.sdc -s {{name}}.sdc
""", """,
r""" r"""
{{invoke_tool("write_bitstream")}} {{invoke_tool("symbiflow_write_bitstream")}}
-f {{name}}.fasm -f {{name}}.fasm
-d {{platform.device}} -d {{platform.device}}
-P {{platform.part}} -P {{platform.part}}