Skip to content

flow: exports_files for scripts/synth.tcl - #4240

Merged
maliberty merged 1 commit into
The-OpenROAD-Project:masterfrom
oharboe:bazel-exports-synth-tcl
May 19, 2026
Merged

maliberty merged 1 commit into
The-OpenROAD-Project:masterfrom
oharboe:bazel-exports-synth-tcl

Conversation

@oharboe

@oharboe oharboe commented May 19, 2026

Copy link
Copy Markdown
Collaborator

...

Lets bazel-orfs reference `@orfs//flow:scripts/synth.tcl` as a direct
Label, so its `_synth_tcl` attr default can point at this script
instead of vendoring its own copy at the bazel-orfs repo root.

bazel-orfs has carried a forked synth.tcl since parallel partition
synthesis landed (e9b84aa orfs: ship parallel synthesis scripts and
wrapper Makefile, bazel-orfs). The fork has drifted on a couple of
points (missing the `-noabc` on `synth -run fine:`, lost
`SYNTH_MINIMUM_KEEP_SIZE` branch, etc.) and the drift has caused real
WNS regressions when yosys was bumped past 0.62. Exporting this label
upstream is the first step toward retiring the bazel-orfs copy and
letting it inherit fixes from this script directly.

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Comment thread flow/BUILD
# Expose synth.tcl as an addressable source label so bazel-orfs can
# point its `_synth_tcl` attr default at `@orfs//flow:scripts/synth.tcl`
# instead of vendoring its own (drifting) copy at the bazel-orfs repo
# root. See bazel-orfs `private/rules.bzl`.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bazel-orfs uses this to implement parallel synthesis

@oharboe
oharboe requested a review from maliberty May 19, 2026 12:01

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the flow/BUILD file to export scripts/synth.tcl as a public label, allowing external tools like bazel-orfs to reference it directly. The reviewer suggests using a glob to export all scripts in the directory instead of a single file to improve maintainability and ensure that sourced dependencies are also available as labels.

Comment thread flow/BUILD Resolved
@maliberty
maliberty merged commit 5c27245 into The-OpenROAD-Project:master May 19, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants