Skip to content

Commit adaa6a9

Browse files
oharboeclaude
andcommitted
bazel: drop OpenROAD pinning, keep local_path_override
The single-process flow test needs three OpenROAD fixes (two drt, one sta) to make the single-process and per-stage flows byte-identical. This PR carried them as patches under patches/openroad and, since local_path_override cannot apply patches, pinned OpenROAD via git_override(commit=..., patches=[...]) plus a tools/OpenROAD gitlink bump. Those fixes belong upstream, not in ORFS: the two drt fixes are tracked in their own OpenROAD PRs and the sta fix has already landed in parallaxsw/OpenSTA master. Pinning a specific OpenROAD hash also breaks the ORFS master policy of local_path_override, where bazel builds the live tools/OpenROAD checkout. Drop the pinning only: revert to local_path_override, remove patches/openroad/, and un-bump the tools/OpenROAD gitlink. bazel is a local testing workflow (not CI); local_path_override builds whatever OpenROAD the developer has checked out, so gcd_single_flow_test proves the flow scripts are correct once the tracked OpenROAD/OpenSTA fixes land. Everything else (hermetic-llvm toolchain, overrides, flow scripts, the single_flow test) is unchanged. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
1 parent ffdf48c commit adaa6a9

6 files changed

Lines changed: 3 additions & 241 deletions

‎MODULE.bazel‎

Lines changed: 2 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -77,47 +77,10 @@ single_version_override(
7777
],
7878
)
7979

80-
# openroad is normally consumed straight from the tools/OpenROAD
81-
# submodule via local_path_override. While OpenROAD fixes are carried
82-
# as patches in //patches/openroad (local_path_override does not accept
83-
# patches), it is fetched via git_override instead, pinned to the exact
84-
# commit the submodule records so make (submodule) and bazel (fetched +
85-
# patched) build the same base. Note that bazel builds the fetched
86-
# source, not the live submodule tree, while this override is in place;
87-
# revert to local_path_override when the patches land upstream.
88-
#
89-
# patches/openroad/0001-sta-register-new-instance-pin-vertices-as-endpoints.patch:
90-
# pins of a freshly created instance that are never connected (eg the
91-
# dangling outputs of CTS dummy-load buffers) never enter the STA
92-
# endpoint set, so their requireds are never seeded and a propagated
93-
# clock arrival yields a bogus negative net slack in the process that
94-
# inserted them — resistance-aware global routing then routes
95-
# differently in a single-process flow than in a stage-per-process
96-
# flow. Applies to the src/sta submodule content (init_submodules).
97-
#
98-
# patches/openroad/0002-drt-make-incremental-design-updates-match-a-fresh-read.patch:
99-
# detailed route iterated nets/instances in incremental-update order
100-
# (appended) instead of odb order, and emitted vias in history-derived
101-
# order — a single-process flow routed differently than a fresh
102-
# process on a byte-identical database.
103-
#
104-
# patches/openroad/0003-drt-do-not-duplicate-bterm-access-points.patch:
105-
# every pin access update appended block-terminal access points
106-
# without destroying the previously written ones, so staged flows
107-
# accumulate stale access points at each stage that reruns pin access
108-
# (69 -> 138 on asap7/gcd between grt and route).
10980
bazel_dep(name = "openroad", dev_dependency = True)
110-
git_override(
81+
local_path_override(
11182
module_name = "openroad",
112-
commit = "e82300449bc71da46a0959fdb67ab6686f7b1240",
113-
init_submodules = True,
114-
patch_strip = 1,
115-
patches = [
116-
"//patches/openroad:0001-sta-register-new-instance-pin-vertices-as-endpoints.patch",
117-
"//patches/openroad:0002-drt-make-incremental-design-updates-match-a-fresh-read.patch",
118-
"//patches/openroad:0003-drt-do-not-duplicate-bterm-access-points.patch",
119-
],
120-
remote = "https://github.com/The-OpenROAD-Project/OpenROAD.git",
83+
path = "tools/OpenROAD",
12184
)
12285

12386
bazel_dep(name = "qt-bazel", dev_dependency = True)

‎patches/openroad/0001-sta-register-new-instance-pin-vertices-as-endpoints.patch‎

Lines changed: 0 additions & 25 deletions
This file was deleted.

‎patches/openroad/0002-drt-make-incremental-design-updates-match-a-fresh-read.patch‎

Lines changed: 0 additions & 146 deletions
This file was deleted.

‎patches/openroad/0003-drt-do-not-duplicate-bterm-access-points.patch‎

Lines changed: 0 additions & 21 deletions
This file was deleted.

‎patches/openroad/BUILD.bazel‎

Lines changed: 0 additions & 9 deletions
This file was deleted.

‎tools/OpenROAD‎

Submodule OpenROAD updated 62 files

0 commit comments

Comments
 (0)