Skip to content

Commit 0cd4a3f

Browse files
oharboeclaude
andcommitted
bazel: bump yosys to 0.65 via BCR PR registry override
Yosys 0.63 has a WRAPCELL/RTLIL-identifier memory corruption that produces garbage characters in module names like `'\\<random>_KOGGE_STONE'` during synthesis of designs that exercise the $alu architectural-options path (cva6, ibex, riscv32i*, swerv_wrapper, sky130hd/{ibex,microwatt} all hit this in the asap7+sky130hd sweep). Upstream yosys fixed it; 0.65 produces clean names like `ALU_64_0_64_0_64_KOGGE_STONE`. bazelbuild/bazel-central-registry#8863 adds 0.65 to BCR. Until that lands we point at oharboe's fork branch via an additional --registry in .bazelrc, then force the root resolution to 0.65 via single_version_override (bazel-orfs's MODULE.bazel pins to 0.63). Verified: //flow/designs/asap7/cva6:cva6_synth now builds clean. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
1 parent fd657fb commit 0cd4a3f

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

‎.bazelrc‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,12 @@ build --cxxopt "-std=c++20" --host_cxxopt "-std=c++20"
99
# bazel-orfs itself does (its own .bazelrc:7).
1010
common --lockfile_mode=off
1111

12+
# Test yosys 0.65 via the BCR PR (bazelbuild/bazel-central-registry#8863).
13+
# Upstream BCR doesn't have 0.65 yet, so point at oharboe's fork branch
14+
# as an additional registry; combined with single_version_override(yosys,
15+
# "0.65") in MODULE.bazel this resolves yosys to 0.65 with the
16+
# WRAPCELL/RTLIL-identifier corruption fix that was missing in 0.63.
17+
common --registry=https://raw.githubusercontent.com/oharboe/bazel-central-registry/yosys-0.65/
18+
common --registry=https://bcr.bazel.build/
19+
1220
try-import %workspace%/user.bazelrc

‎MODULE.bazel‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,16 @@ git_override(
6363
strip_prefix = "verilog",
6464
)
6565

66+
# Force yosys to 0.65 (from BCR PR #8863, picked up via the custom
67+
# registry in .bazelrc). 0.65 fixes the WRAPCELL/RTLIL-identifier
68+
# memory corruption that produces garbage like `\<garbage>_KOGGE_STONE`
69+
# strings in cva6 / ibex synthesis on 0.63. bazel-orfs pins yosys=0.63
70+
# in its MODULE.bazel; this root override wins.
71+
single_version_override(
72+
module_name = "yosys",
73+
version = "0.65",
74+
)
75+
6676
# yosys-slang is not on BCR. Pin to a commit on povik/yosys-slang master
6777
# that has the upstream Bazel build (povik/yosys-slang#310) and the
6878
# slang.so visibility fix (povik/yosys-slang#311). Submodules pull in

0 commit comments

Comments
 (0)