Skip to content

refactor(runtime)!: support explicitly invoked SIR process kernels - #2444

Merged
mergify[bot] merged 1 commit into
masterfrom
stack/tignear/perf/veryl-testbench-execution/replace-expression-vm-native-code--32c778a1
Oct 28, 2026
Merged

mergify[bot] merged 1 commit into
masterfrom
stack/tignear/perf/veryl-testbench-execution/replace-expression-vm-native-code--32c778a1

Conversation

@tignear

@tignear tignear commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Add a Callable process kind for kernels invoked by an explicit caller. Keep these kernels out of autonomous initial-process scheduling and timed-simulation requirements. Generalize ProcessKernelBuilder over the source address type so the Veryl testbench adapter can use the same suspension and continuation lowering as SystemVerilog.

Reserve a host-request family for testbench services. Existing initializer, regular and final procedures retain their scheduling behavior and serialized discriminants.

Validation: shared design, frontend-core and runtime unit tests; SystemVerilog process regressions; formatting and Clippy.

BREAKING CHANGE: ProcessKind and HostRequestKind gain variants; exhaustive matches in external adapters must handle explicitly invoked kernels and testbench requests.

@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 refactor(runtime)!: support explicitly invoked SIR process kernels #2444 👈
2 perf(testbench)!: compile Veryl testbenches through the HDL backends #2445
3 fix(bench): compare tiered simulators by total completion time #2462

@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-28T16:37:45.542781Z a3c57be New commits
ℹ️ 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 merge-ready Request merging through Mergify after required checks and removed merge-ready Request merging through Mergify after required checks labels Oct 28, 2026
Base automatically changed from stack/tignear/perf/veryl-testbench-execution/specialize-wiring-only-clock-updates--72879e7a to master October 28, 2026 14:52
@tignear tignear changed the title perf(testbench): replace the expression VM with native code refactor(runtime): support explicitly invoked SIR process kernels Oct 28, 2026
@tignear
tignear force-pushed the stack/tignear/perf/veryl-testbench-execution/replace-expression-vm-native-code--32c778a1 branch from 54d947d to 7a7a029 Compare October 28, 2026 16:12
@tignear

tignear commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor Author

Revision history

# Type Changes Reason Date
1 initial 54d947d 2026-10-28 16:12 UTC
2 content 54d947d → 7a7a029 2026-10-28 16:12 UTC
3 rebase 7a7a029 → 44f5ddd (rebase only) 2026-10-28 16:13 UTC
4 content 44f5ddd → a3c57be 2026-10-28 16:35 UTC

@tignear tignear changed the title refactor(runtime): support explicitly invoked SIR process kernels refactor(runtime)!: support explicitly invoked SIR process kernels Oct 28, 2026
@tignear
tignear force-pushed the stack/tignear/perf/veryl-testbench-execution/replace-expression-vm-native-code--32c778a1 branch from 7a7a029 to 44f5ddd Compare October 28, 2026 16:14

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 44f5ddd93b

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/celox-design/src/lib.rs Outdated
Comment on lines 539 to 541
/// Services owned by an explicitly invoked testbench kernel.
Testbench,
Plusargs,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Append Testbench to preserve serialized host-request variants

When loading a native image produced before this change, inserting Testbench before the existing variants shifts every Serde/Postcard variant index: an old Plusargs site now deserializes as Testbench, for example. NativeProgramImage persists these values in runtime_schema.host_request_sites, while image_file.rs still accepts the unchanged container version 52. The machine code retains the original request encoding, so simulation/process.rs cannot find the matching request site and returns InternalError. Append the new variant instead, preserving existing serialized indices, or explicitly version and reject incompatible images.

Useful? React with 👍 / 👎.

Add a Callable process kind for kernels invoked by an explicit caller. Keep these kernels out of autonomous initial-process scheduling and timed-simulation requirements. Generalize ProcessKernelBuilder over the source address type so the Veryl testbench adapter can use the same suspension and continuation lowering as SystemVerilog.

Reserve a host-request family for testbench services. Existing initializer, regular and final procedures retain their scheduling behavior and serialized discriminants.

Validation: shared design, frontend-core and runtime unit tests; SystemVerilog process regressions; formatting and Clippy.

BREAKING CHANGE: ProcessKind and HostRequestKind gain variants; exhaustive matches in external adapters must handle explicitly invoked kernels and testbench requests.

Change-Id: I32c778a1eda591d8bada9321a12c36ec4fa71cf5
@tignear
tignear force-pushed the stack/tignear/perf/veryl-testbench-execution/replace-expression-vm-native-code--32c778a1 branch from 44f5ddd to a3c57be Compare October 28, 2026 16:36
@tignear tignear added the merge-ready Request merging through Mergify after required checks label Oct 28, 2026
@mergify mergify Bot added the queued Mergify queue entry label Oct 28, 2026
@mergify

mergify Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

✅ Merged into master as 3321c16 at 18:01 UTC

16 min in the queue, 14 min of it CI.

So far

Merge conditions: 7 of 7 met

The batch, tested on draft #2472

Condition Required by
✅ check-success = Conventional Commit title —
✅ check-success = Queue validation —
✅ any of: check-success = @github-actions/Lint & Format, check-neutral = @github-actions/Lint & Format, check-skipped = @github-actions/Lint & Format GitHub repository ruleset rule master
✅ any of: check-success = @github-actions/Rust Test & NAPI Build, check-neutral = @github-actions/Rust Test & NAPI Build, check-skipped = @github-actions/Rust Test & NAPI Build GitHub repository ruleset rule master
✅ any of: check-success = @github-actions/JS Test (Ubuntu), check-neutral = @github-actions/JS Test (Ubuntu), check-skipped = @github-actions/JS Test (Ubuntu) GitHub repository ruleset rule master
✅ any of: check-success = @github-actions/Conventional Commit title, check-neutral = @github-actions/Conventional Commit title, check-skipped = @github-actions/Conventional Commit title GitHub repository ruleset rule master
✅ any of: check-success = @github-actions/Queue validation, check-neutral = @github-actions/Queue validation, check-skipped = @github-actions/Queue validation GitHub repository ruleset rule master

Times in UTC · dashboard · how the merge queue works

@mergify mergify Bot mentioned this pull request Oct 28, 2026
32 of 55 tasks
@mergify
mergify Bot merged commit 3321c16 into master Oct 28, 2026
23 checks passed
@mergify
mergify Bot deleted the stack/tignear/perf/veryl-testbench-execution/replace-expression-vm-native-code--32c778a1 branch October 28, 2026 18:01
@mergify mergify Bot removed the queued Mergify queue entry label Oct 28, 2026
@github-actions github-actions Bot mentioned this pull request Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-ready Request merging through Mergify after required checks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant