Skip to content

Commit c7fe4fe

Browse files
committed
updated cts.tcl for clustering size and diameter
Signed-off-by: Cho Moon <[email protected]>
1 parent a3ec9b4 commit c7fe4fe

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

flow/scripts/cts.tcl

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,13 @@ load_design 3_place.odb 3_place.sdc
66
# so cts does not try to buffer the inverted clocks.
77
repair_clock_inverters
88

9-
# Run CTS
10-
if {[info exist ::env(CTS_CLUSTER_SIZE)]} {
11-
set cluster_size "$::env(CTS_CLUSTER_SIZE)"
12-
} else {
13-
set cluster_size 30
14-
}
15-
if {[info exist ::env(CTS_CLUSTER_DIAMETER)]} {
16-
set cluster_diameter "$::env(CTS_CLUSTER_DIAMETER)"
17-
} else {
18-
set cluster_diameter 100
19-
}
20-
219
proc save_progress {stage} {
2210
puts "Run 'make gui_$stage.odb' to load progress snapshot"
2311
write_db $::env(RESULTS_DIR)/$stage.odb
2412
write_sdc -no_timestamp $::env(RESULTS_DIR)/$stage.sdc
2513
}
2614

15+
# Run CTS
2716
set cts_args [list \
2817
-sink_clustering_enable \
2918
-balance_levels]
@@ -32,6 +21,14 @@ if {[info exist ::env(CTS_BUF_DISTANCE)]} {
3221
lappend cts_args -distance_between_buffers "$::env(CTS_BUF_DISTANCE)"
3322
}
3423

24+
if {[info exist ::env(CTS_CLUSTER_SIZE)]} {
25+
lappend cts_args -sink_clustering_size "$::env(CTS_CLUSTER_SIZE)"
26+
}
27+
28+
if {[info exist ::env(CTS_CLUSTER_DIAMETER)]} {
29+
lappend cts_args -sink_clustering_max_diameter "$::env(CTS_CLUSTER_DIAMETER)"
30+
}
31+
3532
if {[info exist ::env(CTS_ARGS)]} {
3633
set cts_args $::env(CTS_ARGS)
3734
}

0 commit comments

Comments
 (0)