Skip to content

Commit

Permalink
[aes, kmac, otbn] Perform final clean -purge step in Yosys synthesis
Browse files Browse the repository at this point in the history
The `-purge` argument will remove dangling wires in the final netlist
introduced due to the keep[_hierarchy] constraints and the flattening
step after removing these constraints. Removing these wires reduces the
size of netlist considerably thereby speeding up analysis using tools
like PROLEAD.

Signed-off-by: Pirmin Vogel <[email protected]>
  • Loading branch information
vogelpi authored and sameo committed May 7, 2024
1 parent 954fbad commit 3ef84c5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions hw/ip/aes/pre_syn/tcl/yosys_run_synth.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ if { $lr_synth_flatten } {
yosys "flatten"
}

yosys "clean"
yosys "clean -purge"
yosys "write_verilog $lr_synth_netlist_out"

if { $lr_synth_timing_run } {
Expand All @@ -96,4 +96,3 @@ yosys "check"
yosys "log ======== Yosys Stat Report ========"
yosys "tee -o $lr_synth_out_dir/reports/area.rpt stat -liberty $lr_synth_cell_library_path"
yosys "log ====== End Yosys Stat Report ======"

3 changes: 1 addition & 2 deletions hw/ip/kmac/pre_syn/tcl/yosys_run_synth.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ if { $lr_synth_flatten } {
yosys "flatten"
}

yosys "clean"
yosys "clean -purge"
yosys "write_verilog $lr_synth_netlist_out"

if { $lr_synth_timing_run } {
Expand All @@ -79,4 +79,3 @@ yosys "check"
yosys "log ======== Yosys Stat Report ========"
yosys "tee -o $lr_synth_out_dir/reports/area.rpt stat -liberty $lr_synth_cell_library_path"
yosys "log ====== End Yosys Stat Report ======"

2 changes: 1 addition & 1 deletion hw/ip/otbn/pre_syn/tcl/yosys_run_synth.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ if { $lr_synth_flatten } {
yosys "flatten"
}

yosys "clean"
yosys "clean -purge"
yosys "write_verilog $lr_synth_netlist_out"

if { $lr_synth_timing_run } {
Expand Down

0 comments on commit 3ef84c5

Please sign in to comment.