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", + ], +)