Repository navigation
merge queue: checking #2106 + #2088 together on master (2e63829), stacked on #2107 - #2114
Closed
mergify[bot] wants to merge 6 commits into
Closed
mergify[bot] wants to merge 6 commits into
mergify[bot] wants to merge 6 commits into
Conversation
SystemVerilog final procedures were rejected, so testbenches could not inspect their last state or report results at termination. Preserve them as terminal process kernels and run them once on $finish, $fatal, or explicit Simulation::finish(). The batch CLI and sv-tests driver finish on quiescence; bounded host runs remain resumable. Program finals also run after implicit termination. Keep final execution sequential and at zero simulation time. Resume $stop inside final at its cursor, stop immediately at $finish inside final, preserve the initiating fatal error, and prevent queued HDL events or deferred assertions from executing after termination. Validate function-statement restrictions, including omitted argument defaults. Route fatal errors from explicit waveform dumps and end-of-run waveform evaluation through the same terminal phase. Finalize immediate fatal errors raised by lazy runtime-event draining before collecting reports. Settle and execute final procedures before capturing saved state, and reject saving if final execution stops. Keep differential scheduling synchronized on these host-triggered termination paths. Document the lifecycle and restrictions. Validation: - 18 final API tests cover two/four-state Interpreter, Cranelift, WASM, Native and Tiered execution, differential scheduling, checkpoints and native-image roundtrip. - CI follow-up: default-feature library 150, enabled-feature library 229, VCD 36, reference-adapter 7, the unsupported-construct regression and JS boundary 9 tests pass. Formatting and Clippy pass. Fatal errors terminate execution while preserving the original diagnostic and waveform; tests no longer require recovery from $fatal. - P2 regression coverage: all four added tests fail before the fix and pass after it. Related library, checkpoint, observer, runtime API, state-file, deferred-assertion and VCD tests pass (1,281 tests; 34 existing ignores). Rebuilt the debug NAPI addon; 28 JS checkpoint/runtime-event/timing tests, formatting and Clippy pass. - Direct portable fixtures: Icarus 13.0 passes all three; Verilator 5.052 passes state/hierarchy but continues after $finish inside final, contrary to 9.2.3. Keep immediate-termination expectations. These fixtures use owning-crate API tests because the shared timed emitter has its own final checker with unspecified relative ordering. - Focused sv-tests rerun: 70 additional passing cases per mode out of 108 previously blocked by final; update exactly 140 measured expectations. Full release-driver conformance remains in CI as requested. BREAKING CHANGE: ProcessSlots and ProcessRefs use ProcessKind instead of is_initializer; fatal errors have a distinct Fatal variant; SimulationState::finish is fallible; native image format advances to version 39. Change-Id: I75200be6ce640d73a84562a25ff48cdae2237106
…ports Modules with interface array ports evaluated their declaration scope before binding any interface formals. A localparam such as b.W therefore failed even when b was a scalar interface port next to an unrelated array port. Include unbound interface formals in declaration dependency deferral, alongside local interface instances. Evaluate their dependent parameters, types and port widths after binding has populated the interface symbols. Add a shared regression covering scalar and array interface parameters, transitive declarations, interface-dependent input widths, parameter overrides, and ascending and descending array bounds through all five SV backends. Validation on master f2934be: - SystemVerilog and diagnostic suites: 5240 passed, 20 existing skips. - SV analyzer: 819 passed, 3 ignored; 2 doctests passed. - Analyzer and Celox consumer clippy, formatting and diff checks passed. - New shared case passed Verilator 5.052. Icarus 13.0 rejects interface port declarations, so it could not simulate this case. Change-Id: I1a8a70a40d9679109baba4e0a5d98a212e8469d8
Cut the combinational settle into contiguous ranges of its schedule, each guarded by a dirty flag in a hidden `$settle.flags` object. A partition that runs clears its flag and sets the flags of the partitions reading what it wrote; every other writer of state the settle reads or writes sets them too: generated stores and commits, host and VCD writes, initial values, state loads, and a retained raw view (the untracked flag, after which every partition runs). Off unless `SirPass::PartitionedSettle` is enabled or `SimulatorBuilder::settle_partition` is called (#2013). The flags stay out of state files and of the differential and derived-edge checks. `SimulatorBuilder::settle_check` runs every settle a second time with every partition flagged and panics where the two differ. BREAKING CHANGE: RuntimeSchema has a new field, `settle_partitions`, and MemoryLayout a new field, `settle`; SirPass has a new variant, PartitionedSettle. Native images use container format 39; images written by earlier versions must be rebuilt. Change-Id: I6d2c7e90376cf6fd96173e2cd4959f79171834fc
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 decisive-radis-5afiwb of the
changesqueue, to test #2106 and #2088 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 #2106 and #2088 still pass CI once combined with everything queued ahead of them. CI runs on this draft's code, built in this order:
masterat2e638294ec6c85The 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 #2106 + #2088. 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 validationmaster]: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:holdbase ~= ^(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 0402b6a6ef964ed89f37c5e10e067fee["decisive-radis-5afiwb<br/>#2106 + #2088<br/>scopes: core"] 50878b0508b1467495a294c8a032769f["intact-pave-tprr98<br/>#1938<br/>scopes: core"] 0402b6a6ef964ed89f37c5e10e067fee --> 50878b0508b1467495a294c8a032769f style 0402b6a6ef964ed89f37c5e10e067fee fill:#6366f1,color:#fff