Repository navigation
perf(native): specialize wiring-only clock updates - #2420
Merged
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Contributor
Author
Revision history
|
tignear
force-pushed
the
stack/tignear/perf/veryl-testbench-execution/specialize-wiring-only-clock-updates--72879e7a
branch
from
October 28, 2026 11:30
eae4020 to
45fd807
Compare
Contributor
🚫 Left the queue7 min in the queue, with no time running CI. So far
Reason The pull request #2420 has been manually updated Merge conditions: 0 of 7 metThe batch, tested on draft #2443
Requeued — the merge queue status continues in this comment ↓. Times in UTC · dashboard · how the merge queue works |
20 of 55 tasks
Moving a clock through child-port aliases currently requests a full combinational evaluation even when the clock level only feeds wiring. Compile a small update function for such clocks and use it before edge execution, including coincident edges and tiered native execution. Preserve the original stores and trigger bookkeeping, and retain the full-settle fallback for data-dependent clocks, four-state execution, force support, observers, and persistent combinational state. Prove that every clock consumer is an unconditional alias copy outside CFG cycles; unrelated procedural iteration does not disqualify the clock. Optional named native-image exports allow existing images to retain their original execution path without a container-format change. Rica kernel-user native TB, 16 replays, O2/two-state/one thread, four alternating pairs on this machine: median execution CPU time 29.38s -> 17.40s (41% lower), wall time 31.76s -> 18.56s, and instructions 284.49B -> 158.75B (44% fewer). Both sides load the same generated code and layout; renaming the optional exports selects the full-settle baseline. Every replay retained 231,188 cycles and 66,472 retired instructions. These measurements compare this optimization, not Veryl simulator performance. Validation: formatting and Clippy; 170 Celox unit tests; 81 runtime tests; 4,440 common native cases including four-state and parallel variants; five specialization regressions (image roundtrip, trigger bits, dirty inputs, coincident clocks, unrelated procedural loops); native TB comparisons (98 passed, one ignored), completion adapters and tiered promotion tests. Existing images without the optional exports also pass their load-and-execute regression. Change-Id: I72879e7a9f0e8e644083c796eb009d0476dbdc8f
tignear
force-pushed
the
stack/tignear/perf/veryl-testbench-execution/specialize-wiring-only-clock-updates--72879e7a
branch
from
October 28, 2026 12:29
45fd807 to
4e121f0
Compare
Contributor
Author
|
This pull request is part of a Mergify stack:
|
Contributor
✅ Merged into
|
| 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
This was referenced Oct 28, 2026
mergify
Bot
deleted the
stack/tignear/perf/veryl-testbench-execution/specialize-wiring-only-clock-updates--72879e7a
branch
October 28, 2026 14:52
Closed
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.
Moving a clock through child-port aliases currently requests a full combinational evaluation even when the clock level only feeds wiring. Compile a small update function for such clocks and use it before edge execution, including coincident edges and tiered native execution. Preserve the original stores and trigger bookkeeping, and retain the full-settle fallback for data-dependent clocks, four-state execution, force support, observers, and persistent combinational state.
Prove that every clock consumer is an unconditional alias copy outside CFG cycles; unrelated procedural iteration does not disqualify the clock. Optional named native-image exports allow existing images to retain their original execution path without a container-format change.
Rica kernel-user native TB, 16 replays, O2/two-state/one thread, four alternating pairs on this machine: median execution CPU time 29.38s -> 17.40s (41% lower), wall time 31.76s -> 18.56s, and instructions 284.49B -> 158.75B (44% fewer). Both sides load the same generated code and layout; renaming the optional exports selects the full-settle baseline. Every replay retained 231,188 cycles and 66,472 retired instructions. These measurements compare this optimization, not Veryl simulator performance.
Validation: formatting and Clippy; 170 Celox unit tests; 81 runtime tests; 4,440 common native cases including four-state and parallel variants; five specialization regressions (image roundtrip, trigger bits, dirty inputs, coincident clocks, unrelated procedural loops); native TB comparisons (98 passed, one ignored), completion adapters and tiered promotion tests. Existing images without the optional exports also pass their load-and-execute regression.