vendor.xilinx: support setting options on synth_design

Closes #606.
This commit is contained in:
Irides 2021-12-11 06:02:39 -06:00 committed by Catherine
parent fd7d01ef10
commit b1eba5fd82

View file

@ -21,6 +21,7 @@ class XilinxPlatform(TemplatedPlatform):
Available overrides:
* ``script_after_read``: inserts commands after ``read_xdc`` in Tcl script.
* ``synth_design_opts``: sets options for ``synth_design``.
* ``script_after_synth``: inserts commands after ``synth_design`` in Tcl script.
* ``script_after_place``: inserts commands after ``place_design`` in Tcl script.
* ``script_after_route``: inserts commands after ``route_design`` in Tcl script.
@ -151,7 +152,7 @@ class XilinxPlatform(TemplatedPlatform):
read_xdc {{file|tcl_escape}}
{% endfor %}
{{get_override("script_after_read")|default("# (script_after_read placeholder)")}}
synth_design -top {{name}}
synth_design -top {{name}} {{get_override("synth_design_opts")}}
foreach cell [get_cells -quiet -hier -filter {amaranth.vivado.false_path == "TRUE"}] {
set_false_path -to $cell
}