Skip to content

Commit 4428ddf

Browse files
authored
Merge pull request #2397 from Pinata-Consulting/scripts-cleanup-3
scripts: clean up cts
2 parents ed035fe + fa7c952 commit 4428ddf

File tree

2 files changed

+12
-17
lines changed

2 files changed

+12
-17
lines changed

flow/scripts/cts.tcl

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,17 @@ set cts_args [list \
1717
-sink_clustering_enable \
1818
-balance_levels]
1919

20-
if {[info exist ::env(CTS_BUF_DISTANCE)]} {
21-
lappend cts_args -distance_between_buffers $::env(CTS_BUF_DISTANCE)
22-
}
23-
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-
}
20+
append_env_var cts_args -distance_between_buffers CTS_BUF_DISTANCE 1
21+
append_env_var cts_args -sink_clustering_size CTS_CLUSTER_SIZE 1
22+
append_env_var cts_args -sink_clustering_max_diameter CTS_CLUSTER_DIAMETER 1
3123

32-
if {[info exist ::env(CTS_ARGS)]} {
24+
if {[env_var_exists_and_non_empty CTS_ARGS]} {
3325
set cts_args $::env(CTS_ARGS)
3426
}
3527

3628
log_cmd clock_tree_synthesis {*}$cts_args
3729

38-
if {[info exist ::env(CTS_SNAPSHOTS)]} {
30+
if {[env_var_equals CTS_SNAPSHOTS 1]} {
3931
save_progress 4_1_pre_repair_clock_nets
4032
}
4133

@@ -67,7 +59,7 @@ detailed_placement
6759

6860
estimate_parasitics -placement
6961

70-
if {[info exist ::env(CTS_SNAPSHOTS)]} {
62+
if {[env_var_equals CTS_SNAPSHOTS 1]} {
7163
save_progress 4_1_pre_repair_hold_setup
7264
}
7365

tools/AutoTuner/src/autotuner/distributed.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -397,10 +397,13 @@ def parse_config(config, path=os.getcwd()):
397397
)
398398
# Default case is VAR=VALUE
399399
else:
400+
# FIXME there is no robust way to get this metainformation from
401+
# ORFS about the variables, so disable this code for now.
402+
400403
# Sanity check: ignore all flow variables that are not tunable
401-
if key not in flow_variables:
402-
print(f"[ERROR TUN-0017] Variable {key} is not tunable.")
403-
sys.exit(1)
404+
# if key not in flow_variables:
405+
# print(f"[ERROR TUN-0017] Variable {key} is not tunable.")
406+
# sys.exit(1)
404407
options += f" {key}={value}"
405408
if bool(sdc):
406409
write_sdc(sdc, path)

0 commit comments

Comments
 (0)