Skip to content

Commit 5ad987b

Browse files
committed
updated CTS_BUF_DISTANCE handling + AT genMetric.py call fix
Signed-off-by: Jeff Ng <[email protected]>
1 parent bb5ebee commit 5ad987b

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

flow/scripts/cts.tcl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ set cts_args [list \
1818
-sink_clustering_enable \
1919
-balance_levels]
2020

21-
# TODO: The first three are no-ops since the arg order is wrong, but hard to get
21+
append_env_var cts_args CTS_BUF_DISTANCE -distance_between_buffers 1
22+
# TODO: The next two are no-ops since the arg order is wrong, but hard to get
2223
# through CI since nine designs change metrics and the PR is blocked
23-
append_env_var cts_args -distance_between_buffers CTS_BUF_DISTANCE 1
2424
append_env_var cts_args -sink_clustering_size CTS_CLUSTER_SIZE 1
2525
append_env_var cts_args -sink_clustering_max_diameter CTS_CLUSTER_DIAMETER 1
2626
append_env_var cts_args CTS_BUF_LIST -buf_list 1

tools/AutoTuner/src/autotuner/utils.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,14 @@ def openroad(
307307
base_dir, f"flow/reports/{args.platform}/{args.design}", flow_variant
308308
)
309309
)
310+
results_path = os.path.abspath(
311+
os.path.join(
312+
base_dir, f"flow/results/{args.platform}/{args.design}", flow_variant
313+
)
314+
)
310315
os.makedirs(log_path, exist_ok=True)
311316
os.makedirs(report_path, exist_ok=True)
317+
os.makedirs(results_path, exist_ok=True)
312318

313319
if install_path is None:
314320
install_path = os.path.join(base_dir, "tools/install")
@@ -338,6 +344,9 @@ def openroad(
338344
metrics_command += f" -v {flow_variant}"
339345
metrics_command += f" -d {args.design}"
340346
metrics_command += f" -p {args.platform}"
347+
metrics_command += f" --logs {log_path}"
348+
metrics_command += f" --reports {report_path}"
349+
metrics_command += f" --results {results_path}"
341350
metrics_command += f" -o {metrics_file}"
342351
run_command(
343352
args,

0 commit comments

Comments
 (0)