projects
/
nmigen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
14a5c42
)
vendor.quicklogic: part→package
author
whitequark
<whitequark@whitequark.org>
Thu, 5 Nov 2020 07:36:13 +0000
(07:36 +0000)
committer
whitequark
<whitequark@whitequark.org>
Thu, 5 Nov 2020 07:36:43 +0000
(07:36 +0000)
nmigen/vendor/quicklogic.py
patch
|
blob
|
history
diff --git
a/nmigen/vendor/quicklogic.py
b/nmigen/vendor/quicklogic.py
index 9de665fae0ca6fa64f1b3f8c51db1a718e9a42ad..c8bd5cb267310be940f347c395dd7068fefa76bc 100644
(file)
--- a/
nmigen/vendor/quicklogic.py
+++ b/
nmigen/vendor/quicklogic.py
@@
-12,6
+12,7
@@
class QuicklogicPlatform(TemplatedPlatform):
"""
Symbiflow toolchain
-------------------
"""
Symbiflow toolchain
-------------------
+
Required tools:
* ``symbiflow_synth``
* ``symbiflow_pack``
Required tools:
* ``symbiflow_synth``
* ``symbiflow_pack``
@@
-19,14
+20,16
@@
class QuicklogicPlatform(TemplatedPlatform):
* ``symbiflow_route``
* ``symbiflow_write_fasm``
* ``symbiflow_write_bitstream``
* ``symbiflow_route``
* ``symbiflow_write_fasm``
* ``symbiflow_write_bitstream``
+
The environment is populated by running the script specified in the environment variable
``NMIGEN_ENV_QLSymbiflow``, if present.
The environment is populated by running the script specified in the environment variable
``NMIGEN_ENV_QLSymbiflow``, if present.
+
Available overrides:
* ``add_constraints``: inserts commands in XDC file.
"""
device = abstractproperty()
Available overrides:
* ``add_constraints``: inserts commands in XDC file.
"""
device = abstractproperty()
- pa
rt
= abstractproperty()
+ pa
ckage
= abstractproperty()
# Since the QuickLogic version of SymbiFlow toolchain is not upstreamed yet
# we should distinguish the QuickLogic version from mainline one.
# Since the QuickLogic version of SymbiFlow toolchain is not upstreamed yet
# we should distinguish the QuickLogic version from mainline one.
@@
-82,7
+85,7
@@
class QuicklogicPlatform(TemplatedPlatform):
-v {% for file in platform.iter_extra_files(".v", ".sv", ".vhd", ".vhdl") -%} {{file}} {% endfor %} {{name}}.v
-d {{platform.device}}
-p {{name}}.pcf
-v {% for file in platform.iter_extra_files(".v", ".sv", ".vhd", ".vhdl") -%} {{file}} {% endfor %} {{name}}.v
-d {{platform.device}}
-p {{name}}.pcf
- -P {{platform.pa
rt
}}
+ -P {{platform.pa
ckage
}}
-x {{name}}.xdc
""",
r"""
-x {{name}}.xdc
""",
r"""
@@
-97,7
+100,7
@@
class QuicklogicPlatform(TemplatedPlatform):
-d {{platform.device}}
-p {{name}}.pcf
-n {{name}}.net
-d {{platform.device}}
-p {{name}}.pcf
-n {{name}}.net
- -P {{platform.pa
rt
}}
+ -P {{platform.pa
ckage
}}
-s {{name}}.sdc
""",
r"""
-s {{name}}.sdc
""",
r"""
@@
-116,7
+119,7
@@
class QuicklogicPlatform(TemplatedPlatform):
{{invoke_tool("symbiflow_write_bitstream")}}
-f {{name}}.fasm
-d {{platform.device}}
{{invoke_tool("symbiflow_write_bitstream")}}
-f {{name}}.fasm
-d {{platform.device}}
- -P {{platform.pa
rt
}}
+ -P {{platform.pa
ckage
}}
-b {{name}}.bit
"""
]
-b {{name}}.bit
"""
]