Skip to content

fix(trace): include native process kernels in codegen traces - #2482

Closed
tignear wants to merge 1 commit into
stack/tignear/perf/veryl-testbench-execution/compare-tiered-simulators-total-completion-time--94c190fbfrom
stack/tignear/perf/veryl-testbench-execution/include-native-process-kernels-codegen-traces--175feb50
Closed

tignear wants to merge 1 commit into
stack/tignear/perf/veryl-testbench-execution/compare-tiered-simulators-total-completion-time--94c190fbfrom
stack/tignear/perf/veryl-testbench-execution/include-native-process-kernels-codegen-traces--175feb50

Conversation

@tignear

@tignear tignear commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

Native SIR/MIR traces omitted process entries, including compiled testbench and scheduler code. Capture and render those entries when tracing is requested so the code that executes can be inspected.

Validation: all 9 native_mir tests pass, including a native testbench process trace regression. Normal compilation still leaves trace capture disabled.

Depends-On: #2462

Native SIR/MIR traces omitted process entries, including compiled testbench and scheduler code. Capture and render those entries when tracing is requested so the code that executes can be inspected.

Validation: all 9 native_mir tests pass, including a native testbench process trace regression. Normal compilation still leaves trace capture disabled.
Change-Id: I175feb5048269300b08cfe3d6b0d4e820887bf2f
@tignear

tignear commented Oct 28, 2026

Copy link
Copy Markdown
Contributor Author

This pull request is part of a Mergify stack:

# Pull Request Link
1 perf(testbench)!: compile Veryl testbenches through the HDL backends #2445
2 fix(bench): compare tiered simulators by total completion time #2462
3 fix(trace): include native process kernels in codegen traces #2482 👈
4 perf(testbench)!: compile concurrent Veryl scheduling through SIR #2483

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-28T19:40:06.597039Z 7a0ee19 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@tignear tignear added the release:hold Prevent the release pull request from merging label Oct 28, 2026
tignear added a commit that referenced this pull request Oct 28, 2026
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
@tignear

tignear commented Oct 29, 2026

Copy link
Copy Markdown
Contributor Author

Landed on master as part of the rollup #2484.

@tignear tignear closed this Oct 29, 2026
@tignear
tignear deleted the stack/tignear/perf/veryl-testbench-execution/include-native-process-kernels-codegen-traces--175feb50 branch November 8, 2026 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release:hold Prevent the release pull request from merging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant