Skip to content

merge queue: checking #2484 + #2497 together on master (f7adacd) - #2504

Closed
mergify[bot] wants to merge 4 commits into
masterfrom
mergify/merge-queue/0c43aae9bb
Closed

mergify[bot] wants to merge 4 commits into
masterfrom
mergify/merge-queue/0c43aae9bb

Conversation

@mergify

@mergify mergify Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

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 changes queue, to test #2484 and #2497 before they merge into master. 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:

  1. master at f7adacd
  2. #2484 + #2497, the pull requests of this batch, tested together as one tip

🎉 Where it stands: checks passed

CI passed on this draft.

Follow the changes queue in the dashboard

What happens next

  • Mergify merges #2484 and #2497 into master and closes this draft.
Metadata for CI tooling, read by mergify ci
---
all_scopes: false
checking_base_sha: f7adacdab92cf10bcf0159c6b300ff41e6b46d3b
previous_check_retries: []
previous_failed_batches: []
pull_requests:
  - number: 2484
    scopes:
      - core
  - number: 2497
    scopes:
      - core
scopes:
  - core
...
1 scope
  • core
Required conditions of queue rule changes for merge
  • check-success = Conventional Commit title
  • check-success = Queue validation
  • depends-on = celox-sim/celox#2484 [⛓️ perf(testbench)!: roll up compiled Veryl testbench execution #2484]
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Lint & Format
    • check-neutral = @github-actions/Lint & Format
    • check-skipped = @github-actions/Lint & Format
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Rust Test & NAPI Build
    • check-neutral = @github-actions/Rust Test & NAPI Build
    • check-skipped = @github-actions/Rust Test & NAPI Build
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/JS Test (Ubuntu)
    • check-neutral = @github-actions/JS Test (Ubuntu)
    • check-skipped = @github-actions/JS Test (Ubuntu)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Conventional Commit title
    • check-neutral = @github-actions/Conventional Commit title
    • check-skipped = @github-actions/Conventional Commit title
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Queue validation
    • check-neutral = @github-actions/Queue validation
    • check-skipped = @github-actions/Queue validation
Required conditions to stay in the queue

tignear and others added 4 commits October 29, 2026 09:18
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant