Repository navigation
merge queue: checking #1880 + #1881 + #1882 together on master (5670901), stacked on #1879 - #2142
Closed
mergify[bot] wants to merge 8 commits into
Closed
mergify[bot] wants to merge 8 commits into
mergify[bot] wants to merge 8 commits into
Conversation
Implement sampled values for static variables using copies captured before advancing to a later timestamp (IEEE 1800-2023 16.5.1 and 16.9.3). Initialize from declarations, preserve automatic variables, and copy strided arrays through their layouts. Same-timestamp host resumptions and writes retain the Preponed baseline; untimed Simulator calls each form a slot. Resolve sampled select operands before hoisting nested calls, including calls with side effects. Cover timed host-only writes, repeated run_until calls, bounded runs, step, advance_to, and report watching. Verify that the compiled scheduler actually executes in the regression. The runtime schema gains sample_shadows; native image version is 42. Combinational $sampled and handle operands remain unsupported in this stack member. Validation: - sv_sampled: 35 passed across interpreter, native, actual Cranelift and WASM. - Celox/runtime unit tests: 309 passed. - Time, stop, state-file, runtime API, clock and image consumers: 110 passed, 2 ignored. - Formatting and affected-crate Clippy with -D warnings. Change-Id: I764da6c419a54df2ca88f784d797f22e5c8520eb
…cesses Implement $past, $rose, $fell, $stable and $changed using per-process sampled histories and an inferred clock. Initialize history from declared/default values, support constant history depth and gated ticks, and compare four-state values using case equality where required. Reject history operands whose semantics cannot yet be represented. NativeProgramInstance rejects images requiring sampled/history slot boundaries; Simulator and Simulation retain the metadata and initialization copies. Rebase that check onto the current native image API and bump the image container to version 43. Preserve nested sampled operands both during call discovery and when lowering select indices; resolve their histories before evaluation. Support numeric stability/change comparisons for real and shortreal, including signed zero and nested sampled expressions. Validation on this stack member: sv_past, sv_sampled and native_simulation_image across interpreter, native, actual Cranelift and WASM, 96 passed; frontend unit tests, 7 passed; formatting and affected-crate Clippy with -D warnings. Both newly added regressions failed on all four backends before the fixes. Change-Id: I8980d66c6a630a5297ed41429c982e3b02a62f9b
Store the issuing simulation time in severity report records, so draining several slots together preserves each report's original time. Keep timestamp arguments out of formatted messages and combinational sensitivity. RuntimeEventSite gains timestamp_arg; the native image container version is 44. Settle pending combinational reports before leaving their time, including when no event is scheduled. A $finish or $fatal during that settle runs final procedures and leaves the simulation at its termination time. Propagate terminal halts through the host boundary, preserve the original fatal diagnostic, and allow a $stop in a final procedure to suspend and resume without advancing time. Regression coverage exercises run_until, step, advance_to and bounded runs, with and without later clocks/report watching, across interpreter, native, Cranelift and WASM. The new regressions reproduced missing termination/finalization before the review fix. Validation: report, VCD, stop/resume and deferred-assertion integration tests (181 passed); celox/runtime unit tests (308 passed); formatting and affected-crate all-targets Clippy with -D warnings. Change-Id: I865a9dced4edb57838192ef0ed22fc22618d835a
Sample static locals and permit $sampled in combinational logic, while retaining the process's ordinary sensitivity. Infer the history clock in asynchronous-reset processes and called subroutines, including omitted-argument defaults. Reject nested sampled history and gates depending on unsupported subroutine arguments explicitly. For multi-event processes, advance history on every four-state edge in IEEE 1800-2023 Table 9-2. Compare the clock's least significant bit with case equality so 0-to-X/Z rising edges and 1-to-X/Z falling edges count too. The regression covers all ten positive/negative transitions on all four backends and failed before the fix. The documented limitation remains: a clock that returns to its pre-slot level within the same slot cannot yet be distinguished from another triggering event by the history guard. The regression registrations explicitly select build_cranelift; the default build() method selects native. Optional backends are feature-gated. Validation: - Sampled/history/deferred-assertion and native-image regressions: 187 passed. - SV analyzer/frontend, simulator and runtime units: 1,142 passed, 3 ignored. - Common SV timing suite including fork/process control: 1,057 passed; final procedures: 18 passed. - Affected-crate all-targets Clippy with -D warnings and formatting. - Debug NAPI build and timing/cascaded-clock/runtime-event JS integration: 9 passed. Change-Id: I964607db06fbe5e75728e0b7f4cfd935c303e332
This was referenced Oct 26, 2026
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.
Note
This is a merge queue draft opened by Mergify. Nobody needs to act on it.
Mergify opened it for batch peachy-escargot-4mrcad of the
changesqueue, to test #1880, #1881 and #1882 before they merge intomaster. Pushing to this branch or closing this pull request removes them from the queue.What this draft tests
Mergify checks that #1880, #1881 and #1882 still pass CI once combined with everything queued ahead of them. CI runs on this draft's code, built in this order:
masterat56709015a24932The check is speculative: it assumes the pull requests ahead will merge, so it starts without waiting for them.
🎉 Where it stands: checks passed
CI passed on this draft.
Follow the
changesqueue in the dashboardWhat happens next
masterand closes this draft.Tip
A red check is not necessarily caused by this batch. These checks run on a tip that also carries the commits of the pull request ahead, so a failure here can come from it as much as from #1880 + #1881 + #1882. See only this batch's changes.
Queued ahead of this batch
This pull request entered the queue before this batch and is not part of it.
Metadata for CI tooling, read by
mergify ci1 scope
coreRequired conditions of queue rule
changesfor mergecheck-success = Conventional Commit titlecheck-success = Queue validationdepends-on = celox-sim/celox#1881[⛓️ fix(sv)!: give reports the time they are issued at #1881]master]:check-success = @github-actions/Lint & Formatcheck-neutral = @github-actions/Lint & Formatcheck-skipped = @github-actions/Lint & Formatmaster]:check-success = @github-actions/NAPI Build (Linux ARM64 GNU)check-neutral = @github-actions/NAPI Build (Linux ARM64 GNU)check-skipped = @github-actions/NAPI Build (Linux ARM64 GNU)master]:check-success = @github-actions/NAPI Build (Windows)check-neutral = @github-actions/NAPI Build (Windows)check-skipped = @github-actions/NAPI Build (Windows)master]:check-success = @github-actions/Rust Test & NAPI Buildcheck-neutral = @github-actions/Rust Test & NAPI Buildcheck-skipped = @github-actions/Rust Test & NAPI Buildmaster]:check-success = @github-actions/JS Test (Ubuntu)check-neutral = @github-actions/JS Test (Ubuntu)check-skipped = @github-actions/JS Test (Ubuntu)master]:check-success = @github-actions/JS Test (Windows)check-neutral = @github-actions/JS Test (Windows)check-skipped = @github-actions/JS Test (Windows)master]:check-success = @github-actions/Conventional Commit titlecheck-neutral = @github-actions/Conventional Commit titlecheck-skipped = @github-actions/Conventional Commit titleRequired conditions to stay in the queue
-conflict-draft-head ~= ^(integration/|renovate/veryl-crates$|upgrade/veryl-|release-please--branches--master--components--celox$|master$)-head ~= ^renovate/-label = release:holddepends-on = celox-sim/celox#1881[⛓️ fix(sv)!: give reports the time they are issued at #1881]base ~= ^(master|develop)$base ~= ^stack/body ~= (?m)^Depends-On:head != release-please--branches--master--components--celoxlabel = merge-readymaster]:check-success = @github-actions/Lint & Formatcheck-neutral = @github-actions/Lint & Formatcheck-skipped = @github-actions/Lint & Formatmaster]:check-skipped = @github-actions/NAPI Build (Linux ARM64 GNU)check-neutral = @github-actions/NAPI Build (Linux ARM64 GNU)check-success = @github-actions/NAPI Build (Linux ARM64 GNU)master]:check-skipped = @github-actions/NAPI Build (Windows)check-neutral = @github-actions/NAPI Build (Windows)check-success = @github-actions/NAPI Build (Windows)master]:check-success = @github-actions/Rust Test & NAPI Buildcheck-neutral = @github-actions/Rust Test & NAPI Buildcheck-skipped = @github-actions/Rust Test & NAPI Buildmaster]:check-success = @github-actions/JS Test (Ubuntu)check-neutral = @github-actions/JS Test (Ubuntu)check-skipped = @github-actions/JS Test (Ubuntu)master]:check-skipped = @github-actions/JS Test (Windows)check-neutral = @github-actions/JS Test (Windows)check-success = @github-actions/JS Test (Windows)master]:check-success = @github-actions/Conventional Commit titlecheck-neutral = @github-actions/Conventional Commit titlecheck-skipped = @github-actions/Conventional Commit titleQueue graph
The diagram is not laid out in queue order, so a node's position says nothing about when it merges.
graph LR a1104551e6234aa1bd15a03659c86c44["peachy-escargot-4mrcad<br/>#1880 + #1881 + #1882<br/>scopes: core"] 835e66d1a78c4d3a9cdd2ab5160b5ce1["emotional-pistou-con6zx<br/>#2141<br/>scopes: core"] a1104551e6234aa1bd15a03659c86c44 --> 835e66d1a78c4d3a9cdd2ab5160b5ce1 style a1104551e6234aa1bd15a03659c86c44 fill:#6366f1,color:#fff