Skip to content

updated CTS_BUF_DISTANCE handling + AT genMetric.py call fix #3115

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions flow/scripts/cts.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ set cts_args [list \
-sink_clustering_enable \
-balance_levels]

# TODO: The first three are no-ops since the arg order is wrong, but hard to get
append_env_var cts_args CTS_BUF_DISTANCE -distance_between_buffers 1
# TODO: The next two are no-ops since the arg order is wrong, but hard to get
# through CI since nine designs change metrics and the PR is blocked
append_env_var cts_args -distance_between_buffers CTS_BUF_DISTANCE 1
append_env_var cts_args -sink_clustering_size CTS_CLUSTER_SIZE 1
append_env_var cts_args -sink_clustering_max_diameter CTS_CLUSTER_DIAMETER 1
append_env_var cts_args CTS_BUF_LIST -buf_list 1
Expand Down
9 changes: 9 additions & 0 deletions tools/AutoTuner/src/autotuner/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,14 @@ def openroad(
base_dir, f"flow/reports/{args.platform}/{args.design}", flow_variant
)
)
results_path = os.path.abspath(
os.path.join(
base_dir, f"flow/results/{args.platform}/{args.design}", flow_variant
)
)
os.makedirs(log_path, exist_ok=True)
os.makedirs(report_path, exist_ok=True)
os.makedirs(results_path, exist_ok=True)

if install_path is None:
install_path = os.path.join(base_dir, "tools/install")
Expand Down Expand Up @@ -338,6 +344,9 @@ def openroad(
metrics_command += f" -v {flow_variant}"
metrics_command += f" -d {args.design}"
metrics_command += f" -p {args.platform}"
metrics_command += f" --logs {log_path}"
metrics_command += f" --reports {report_path}"
metrics_command += f" --results {results_path}"
metrics_command += f" -o {metrics_file}"
run_command(
args,
Expand Down
5 changes: 0 additions & 5 deletions tools/AutoTuner/test/smoke_test_sample_iteration.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,6 @@ class asap7SampleIterationSmokeTest(BaseSampleIterationSmokeTest):
design = "gcd"


class sky130hdSampleIterationSmokeTest(BaseSampleIterationSmokeTest):
platform = "sky130hd"
design = "gcd"


class ihpsg13g2SampleIterationSmokeTest(BaseSampleIterationSmokeTest):
platform = "ihp-sg13g2"
design = "gcd"
Expand Down