File tree Expand file tree Collapse file tree 2 files changed +16
-12
lines changed
Expand file tree Collapse file tree 2 files changed +16
-12
lines changed Original file line number Diff line number Diff line change @@ -166,6 +166,7 @@ Note:
166166
167167| Variable | Description |
168168| -----------------------| --------------------------------------------------------------------------------------------------------------|
169+ | ` CTS_ARGS ` | Override ` clock_tree_synthesis ` arguments |
169170| ` CTS_BUF_CELL ` | The buffer cell used in the clock tree. |
170171| ` FILL_CELLS ` | Fill cells are used to fill empty sites. |
171172| ` HOLD_SLACK_MARGIN ` | Specifies a time margin for the slack when fixing hold violations. This option allow you to overfix. |
Original file line number Diff line number Diff line change @@ -24,21 +24,24 @@ proc save_progress {stage} {
2424 write_sdc $::env(RESULTS_DIR) /$stage .sdc
2525}
2626
27+ set cts_args [list -root_buf " $::env(CTS_BUF_CELL) " -buf_list " $::env(CTS_BUF_CELL) " \
28+ -sink_clustering_enable \
29+ -sink_clustering_size $cluster_size \
30+ -sink_clustering_max_diameter $cluster_diameter \
31+ -balance_levels]
32+
2733if {[info exist ::env(CTS_BUF_DISTANCE)]} {
28- clock_tree_synthesis -root_buf " $::env(CTS_BUF_CELL) " -buf_list " $::env(CTS_BUF_CELL) " \
29- -sink_clustering_enable \
30- -sink_clustering_size $cluster_size \
31- -sink_clustering_max_diameter $cluster_diameter \
32- -distance_between_buffers " $::env(CTS_BUF_DISTANCE) " \
33- -balance_levels
34- } else {
35- clock_tree_synthesis -root_buf " $::env(CTS_BUF_CELL) " -buf_list " $::env(CTS_BUF_CELL) " \
36- -sink_clustering_enable \
37- -sink_clustering_size $cluster_size \
38- -sink_clustering_max_diameter $cluster_diameter \
39- -balance_levels
34+ lappend cts_args -distance_between_buffers " $::env(CTS_BUF_DISTANCE) "
35+ }
36+
37+ if {[info exist ::env(CTS_ARGS)]} {
38+ set cts_args $::env(CTS_ARGS)
4039}
4140
41+ puts " clock_tree_synthesis [ join $cts_args " " ] "
42+
43+ clock_tree_synthesis {*}$cts_args
44+
4245if {[info exist ::env(CTS_SNAPSHOTS)]} {
4346 save_progress 4_1_pre_repair_clock_nets
4447}
You can’t perform that action at this time.
0 commit comments