Repository navigation
merge queue: checking #2484 + #2497 together on master (f7adacd) - #2504
Closed
mergify[bot] wants to merge 4 commits into
Closed
mergify[bot] wants to merge 4 commits into
mergify[bot] wants to merge 4 commits into
Conversation
Land the Veryl testbench execution stack as one queue entry; its members are not merged into master individually. Lower Veryl testbench expressions and resumable processes into shared SIR before optimization and state layout, and run them through the native, interpreter, Cranelift and Wasm backends, so tiered execution promotes DUT and TB kernels together. The separate TB VM, Cranelift compiler, scalar assembler and runtime loop evaluator are removed. Concurrent TB continuation dispatch, clock waits and multi-clock time progression are generated as ordinary SIR composed with the shared compiled clock-domain scheduler, so process arithmetic, settlement and eligible clock slots execute together between host services and tiering safe points. The shared scheduler no longer invalidates clean combinational state for unchanged clocks and internal clock-alias notifications. Native SIR/MIR traces now include process entries, including compiled testbench and scheduler code. Tiered circuit and Heliodor comparisons publish only total workload time; startup and execution intervals stay in diagnostic reports. The tree is identical to #2483 at the SHA below. The source PRs are held with release:hold while this rollup is active. Their changes are squashed here; they close automatically when this PR lands on master. If a source head changes, rebuild the rollup before queueing it. Removing this rollup requires releasing those holds before resuming individual stack merges. Source PRs and pinned heads: - #2445: a26c0a4 — perf(testbench)!: compile Veryl testbenches through the HDL backends - #2462: 544ca13 — fix(bench): compare tiered simulators by total completion time - #2482: 7a0ee19 — fix(trace): include native process kernels in codegen traces - #2483: 387fb86 — perf(testbench)!: compile concurrent Veryl scheduling through SIR Validation (from the source PRs, same tree as #2483): - 281 Celox library tests; 98 native TB tests (1 existing ignored); 9 native MIR tests including a native testbench process trace; 8 native image tests; 5 completion tests; 8 slot-observer tests; 6 tiered tests. - 81 runtime and 28 testbench library tests; affected-crate all-target Clippy with systemverilog, cranelift, veryl-reference and wasm-runtime; compiler-only, WASI and ARM64 code-generation checks; formatting and the default-dependency guard. - SHA-256, FFT and LZ77 pass both positive and deliberately broken oracle qualification. Rica completes all 16 replays with identical cycle and retirement counts. - Benchmark publication and runner tests, Heliodor conversion fixtures, and the VitePress production build. Performance status: no end-to-end speedup over Veryl simulator has been established; this rollup makes no performance claim. No large Heliodor workload was run. BREAKING CHANGE: CompiledExpr no longer evaluates expressions against a raw memory pointer; compile testbenches with the simulator pipeline and invoke their bound backend kernels. Serialized testbench metadata gains scheduler state, and appended native images use container version 55 and must be regenerated. Change-Id: If61ef7bfc9c47ddc0c3bf3e81cf6bdbce4d62a28
The compiled scheduler deferred a combinational settle only when every load
of storage the settle writes was covered by an earlier store. A bit-level
schedule may load a whole range before the bits it needs are stored and
discard the stale ones, so designs such as Rica (an instruction cache port
read as `{frame, pc} >> 4`) settled eagerly in every slot and never used
their fused domain units.
The combinational scheduler now reports which paths keep state from one
settle to the next (previous-value reads, loops, guarded processes), or that
it cannot tell (capture events, partitioned settles). A settle without such
paths is deferred. Otherwise only the part of the settle that computes the
stateful paths runs where the reference settles, as one shared copy, and
the rest stays deferred. The load-coverage check remains the fallback.
A compiled Veryl testbench observes the design itself: before each
expression that reads the DUT, it computes only the part of the settle that
the read needs, and its runs of the shared scheduler leave a deferred settle
pending (`defer_limit_settle`). Before dispatching edges it computes the
levels of the event signals instead of requiring a settled design. Slices
come from one data and control dependence index of the settle, so each is
linear in what it reaches.
A fatal assertion in a domain run from the compiled testbench now reports its
message instead of the raw error code.
Validation:
- Workspace nextest with the CI feature set: 19,901 tests; the only failures
are testbench_reset_polarity (2) and run_diagnostics, which fail on the
base rollup as well and are fixed there.
- New tests: comb slicer units, a stale-bit fixture that the load check
rejects but the scheduler now defers, and the existing differential tests
for latches and guarded processes, which now take the stateful path.
- Rica kernel-syscalls: identical cycle and commit counts. Its testbench
reads now compute 20-82 SIR instructions instead of the 14,245-instruction
settle. Execution time is unchanged within noise (one combinational
evaluation per cycle remains); compilation grows about 0.2-0.6 s because
the fused domain units are now inlined into the scheduler.
BREAKING CHANGE: the scheduler slots gain `defer_limit_settle` and TB settle
requests carry their reads; appended native images use container version 56
and must be regenerated.
Change-Id: I592604c0d0cdff07b89cf0054851a136f8369b29
This was referenced Oct 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
This is a merge queue draft opened by Mergify. Nobody needs to act on it.
Mergify opened it for batch satisfied-tartelette-uzs2hg of the
changesqueue, to test #2484 and #2497 before they merge intomaster. Pushing to this branch or closing this pull request removes them from the queue.What this draft tests
Mergify checks that #2484 and #2497 still pass CI on top of
master. CI runs on this draft's code, built in this order:masteratf7adacd🎉 Where it stands: checks passed
CI passed on this draft.
Follow the
changesqueue in the dashboardWhat happens next
masterand closes this draft.Metadata for CI tooling, read by
mergify ci1 scope
coreRequired conditions of queue rule
changesfor mergecheck-success = Conventional Commit titlecheck-success = Queue validationdepends-on = celox-sim/celox#2484[⛓️ perf(testbench)!: roll up compiled Veryl testbench execution #2484]master]:check-success = @github-actions/Lint & Formatcheck-neutral = @github-actions/Lint & Formatcheck-skipped = @github-actions/Lint & Formatmaster]:check-success = @github-actions/Rust Test & NAPI Buildcheck-neutral = @github-actions/Rust Test & NAPI Buildcheck-skipped = @github-actions/Rust Test & NAPI Buildmaster]:check-success = @github-actions/JS Test (Ubuntu)check-neutral = @github-actions/JS Test (Ubuntu)check-skipped = @github-actions/JS Test (Ubuntu)master]:check-success = @github-actions/Conventional Commit titlecheck-neutral = @github-actions/Conventional Commit titlecheck-skipped = @github-actions/Conventional Commit titlemaster]:check-success = @github-actions/Queue validationcheck-neutral = @github-actions/Queue validationcheck-skipped = @github-actions/Queue validationRequired conditions to stay in the queue
-conflict-draft-head ~= ^(integration/|renovate/veryl-crates$|upgrade/veryl-|release-please--branches--master--components--celox$|master$)-head ~= ^renovate/-label = release:holddepends-on = celox-sim/celox#2484[⛓️ perf(testbench)!: roll up compiled Veryl testbench execution #2484]base ~= ^(master|develop)$base ~= ^stack/body ~= (?m)^Depends-On:head != release-please--branches--master--components--celoxlabel = merge-readymaster]:check-success = @github-actions/Lint & Formatcheck-neutral = @github-actions/Lint & Formatcheck-skipped = @github-actions/Lint & Formatmaster]:check-success = @github-actions/Rust Test & NAPI Buildcheck-neutral = @github-actions/Rust Test & NAPI Buildcheck-skipped = @github-actions/Rust Test & NAPI Buildmaster]:check-success = @github-actions/JS Test (Ubuntu)check-neutral = @github-actions/JS Test (Ubuntu)check-skipped = @github-actions/JS Test (Ubuntu)master]:check-success = @github-actions/Conventional Commit titlecheck-neutral = @github-actions/Conventional Commit titlecheck-skipped = @github-actions/Conventional Commit titlemaster]:check-skipped = @github-actions/Queue validationcheck-neutral = @github-actions/Queue validationcheck-success = @github-actions/Queue validation