Repository navigation
perf(runtime)!: defer settles that are a function of their inputs - #2497
Merged
Conversation
Contributor
Author
|
This pull request is part of a Mergify stack:
|
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. |
tignear
force-pushed
the
stack/tignear/perf/rollup-veryl-testbench-execution/defer-settles-func-their-inputs--592604c0
branch
from
October 28, 2026 23:59
03c0892 to
18070c2
Compare
tignear
force-pushed
the
stack/tignear/perf/rollup-veryl-testbench-execution/roll-compiled-veryl-testbench-execution--f61ef7bf
branch
from
October 28, 2026 23:59
0e76169 to
102f3d5
Compare
Contributor
Author
Revision history
|
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
tignear
force-pushed
the
stack/tignear/perf/rollup-veryl-testbench-execution/defer-settles-func-their-inputs--592604c0
branch
from
October 29, 2026 00:19
18070c2 to
23ea84f
Compare
tignear
force-pushed
the
stack/tignear/perf/rollup-veryl-testbench-execution/roll-compiled-veryl-testbench-execution--f61ef7bf
branch
from
October 29, 2026 00:19
102f3d5 to
8ade1aa
Compare
Contributor
✅ Merged into
|
| Condition | |
|---|---|
| ✅ | depends-on = celox-sim/celox#2484 |
The batch, tested on draft #2504
| 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
35 of 57 tasks
Base automatically changed from
stack/tignear/perf/rollup-veryl-testbench-execution/roll-compiled-veryl-testbench-execution--f61ef7bf
to
master
October 29, 2026 01:02
mergify
Bot
deleted the
stack/tignear/perf/rollup-veryl-testbench-execution/defer-settles-func-their-inputs--592604c0
branch
October 29, 2026 01:03
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.
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 usedtheir 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 thelevels 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:
are testbench_reset_polarity (2) and run_diagnostics, which fail on the
base rollup as well and are fixed there.
rejects but the scheduler now defers, and the existing differential tests
for latches and guarded processes, which now take the stateful path.
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_settleand TB settlerequests carry their reads; appended native images use container version 56
and must be regenerated.
Depends-On: #2484