From 5328af215f70a7e3ca67b8a82f5562c475e3cbc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Harboe?= Date: Wed, 5 Aug 2026 20:29:28 +0200 Subject: [PATCH 1/2] build: fix Bazel build constraints and bump bazel-orfs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Bumped bazel-orfs commit in MODULE.bazel to pull latest upstream patches. - Fixed an invalid label reference (bazel/install.sh -> //bazel:install.sh) in BUILD.bazel. - Added `allow_empty = True` to patches glob in bazel/BUILD to prevent failures when no patches exist. - Removed unsupported `extra` argument from orfs_design in flow/designs/design.bzl. - Added missing variable scopes (user_arguments, local_arguments, user_sources) to design BUILD files for gf180 and ihp-sg13g2 to pass bazel-orfs strict validation. Signed-off-by: Øyvind Harboe --- BUILD.bazel | 2 +- MODULE.bazel | 2 +- bazel/BUILD | 5 +- flow/designs/design.bzl | 59 ------------------- flow/designs/gf180/aes-hybrid/BUILD | 10 +++- flow/designs/gf180/aes/BUILD | 5 +- .../ihp-sg13g2/i2c-gpio-expander/BUILD | 14 ++++- tools/OpenROAD | 2 +- 8 files changed, 33 insertions(+), 66 deletions(-) diff --git a/BUILD.bazel b/BUILD.bazel index 21e694405f..a10ca06fab 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -2,5 +2,5 @@ load("@rules_shell//shell:sh_binary.bzl", "sh_binary") sh_binary( name = "install_for_bazel", - srcs = ["bazel/install.sh"], + srcs = ["//bazel:install.sh"], ) diff --git a/MODULE.bazel b/MODULE.bazel index a36173378f..f828679d3f 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -101,7 +101,7 @@ bazel_dep(name = "bazel-orfs", version = "0.0.1") bazel_dep(name = "bazel-orfs-verilog", dev_dependency = True) -BAZEL_ORFS_COMMIT = "3342596c1f7017b9fda5b4a55a25a54ff2aaedf8" +BAZEL_ORFS_COMMIT = "6ebadeb4be5c9ada103081c9a5e668c014126616" BAZEL_ORFS_REMOTE = "https://github.com/The-OpenROAD-Project/bazel-orfs.git" diff --git a/bazel/BUILD b/bazel/BUILD index d518110449..fdc8908ee8 100644 --- a/bazel/BUILD +++ b/bazel/BUILD @@ -1 +1,4 @@ -exports_files(glob(["*.patch"])) +exports_files( + ["install.sh"] + glob(["*.patch"], allow_empty = True), + visibility = ["//visibility:public"], +) diff --git a/flow/designs/design.bzl b/flow/designs/design.bzl index c317e34b9a..f60030caf3 100644 --- a/flow/designs/design.bzl +++ b/flow/designs/design.bzl @@ -52,64 +52,6 @@ def _export_design_files(): visibility = ["//visibility:private"], ) -def _engine_variant_targets( - name, - platform, - verilog_files, - arguments, - user_arguments, - sources, - user_sources, - macros, - stage_data, - tags): # buildifier: disable=unused-variable - """Forced-engine flow variants for one design (orfs_design extra hook). - - Emits, always tagged "manual" (even for CI designs, so only explicit - invocations such as //flow/designs/asap7:syn_test run them), two full - flows that pin the synthesis engine regardless of the config.mk - default: - - - variant "syn": SYNTH_USE_SYN=1 (OpenROAD-SYN) — lets any design be - tested under OpenROAD-SYN before its config.mk officially switches. - - variant "yosys": SYNTH_USE_SYN=0 — keeps the yosys baseline - reproducible after a design officially switches (e.g. asap7/gcd). - - When the design has a rules-base.json each variant gets the same QoR - gates as the regular flow, congruent with the Jenkins/dashboard - signal because they check the same rules file with the same script: - - - __test: the full flow gated on all of rules-base.json - (the real, dashboard-equivalent gate). - - __synth_test: the fast tier — synthesis plus a check - of only the synth__/constraints__ subset of rules-base.json. - QoR-only (no LEC), but a minutes-scale iteration signal that shares - its synth action with the full-flow variant. - - The generated __update targets must NOT be run: they - would overwrite the design's rules-base.json with the forced engine's - numbers. - """ - for engine, use_syn in [("syn", "1"), ("yosys", "0")]: - orfs_flow( - name = name, - verilog_files = verilog_files, - pdk = "//flow:" + platform, - arguments = arguments | {"SYNTH_USE_SYN": use_syn}, - user_arguments = user_arguments, - # sources carries the auto-detected rules-base.json as - # RULES_JSON, which gates the variant's tests. - sources = sources, - user_sources = user_sources, - macros = macros, - stage_data = stage_data, - variant = engine, - tags = ["manual"], - test_kwargs = {"tags": ["manual"]}, - # Sibling packages consume stage outputs (e.g. asap7/gcd's - # single-process comparison seeds from the yosys netlist). - visibility = ["//visibility:public"], - ) def design(config = "config.mk", user_arguments = [], user_sources = [], local_arguments = []): """Standard BUILD body for flow/designs///. @@ -135,7 +77,6 @@ def design(config = "config.mk", user_arguments = [], user_sources = [], local_a user_sources = user_sources, local_arguments = local_arguments, blender = True, - extra = _engine_variant_targets, ) def files(group, extra_srcs = None): diff --git a/flow/designs/gf180/aes-hybrid/BUILD b/flow/designs/gf180/aes-hybrid/BUILD index 527d6542e1..dd26db5908 100644 --- a/flow/designs/gf180/aes-hybrid/BUILD +++ b/flow/designs/gf180/aes-hybrid/BUILD @@ -1,3 +1,11 @@ load("//flow/designs:design.bzl", "design") -design(config = "config.mk") +design( + config = "config.mk", + local_arguments = [ + "BC_ADDITIONAL_LIB_FILES", + "TC_ADDITIONAL_LIB_FILES", + "WC_ADDITIONAL_LIB_FILES", + ], + user_arguments = ["DESIGN_TYPE"], +) diff --git a/flow/designs/gf180/aes/BUILD b/flow/designs/gf180/aes/BUILD index 527d6542e1..7725f6e2de 100644 --- a/flow/designs/gf180/aes/BUILD +++ b/flow/designs/gf180/aes/BUILD @@ -1,3 +1,6 @@ load("//flow/designs:design.bzl", "design") -design(config = "config.mk") +design( + config = "config.mk", + user_arguments = ["DESIGN_TYPE"], +) diff --git a/flow/designs/ihp-sg13g2/i2c-gpio-expander/BUILD b/flow/designs/ihp-sg13g2/i2c-gpio-expander/BUILD index 527d6542e1..a185811d3c 100644 --- a/flow/designs/ihp-sg13g2/i2c-gpio-expander/BUILD +++ b/flow/designs/ihp-sg13g2/i2c-gpio-expander/BUILD @@ -1,3 +1,15 @@ load("//flow/designs:design.bzl", "design") -design(config = "config.mk") +design( + config = "config.mk", + user_arguments = [ + "IO_EAST_PINS", + "IO_NORTH_PINS", + "IO_SOUTH_PINS", + "IO_WEST_PINS", + ], + user_sources = [ + "ADDITIONAL_FAST_LIBS", + "ADDITIONAL_SLOW_LIBS", + ], +) diff --git a/tools/OpenROAD b/tools/OpenROAD index 7cfb2105c9..710a71bb25 160000 --- a/tools/OpenROAD +++ b/tools/OpenROAD @@ -1 +1 @@ -Subproject commit 7cfb2105c93c35ce73de9cf4f538de1c9bf8115a +Subproject commit 710a71bb252d8e05764dd87363398d7c81b1fada From b004abaaaf52e031512b9cb780fb9986cd16d84a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Harboe?= Date: Wed, 5 Aug 2026 20:40:07 +0200 Subject: [PATCH 2/2] build: revert accidental OpenROAD submodule bump MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Øyvind Harboe --- tools/OpenROAD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/OpenROAD b/tools/OpenROAD index 710a71bb25..7cfb2105c9 160000 --- a/tools/OpenROAD +++ b/tools/OpenROAD @@ -1 +1 @@ -Subproject commit 710a71bb252d8e05764dd87363398d7c81b1fada +Subproject commit 7cfb2105c93c35ce73de9cf4f538de1c9bf8115a