Repository navigation
merge queue: checking #1938 on master (f80551c), stacked on #2106 and #2088 - #2115
Closed
mergify[bot] wants to merge 12 commits into
Closed
mergify[bot] wants to merge 12 commits into
mergify[bot] wants to merge 12 commits into
Conversation
NativeProgramImage::signal_identity, signal_aliases, force_slots and has_processes answer from the image what NativeProgramInstance kept to itself, so that a host of a timed Simulation of the image can address and force its signals the same way. Simulation::peek_four_state reads stored state without a settle, and set_observed_signals replaces the signals a slot observer watches. Change-Id: Ice5f5f4d43c2630b20c59540f41548a631556212
celox vpi build compiles a SystemVerilog design with processes into a timed Simulation image instead of rejecting it, and the executable runs the processes in step with cocotb. Its VPI host drives the simulation through a slot observer: timers and NextTimeStep open a time step, value changes of clocks run before the domains commit, value changes of other signals, ReadWrite and ReadOnly run when the step has settled. A cocotb write is a blocking host write at the current time; the simulation schedules its edges. Designs without processes keep the untimed program instance. Closes #1730 Change-Id: If5f8d9ac914c6dd5b83a1ddd86990dadff1e5f8c
The external-suite job (sv, icarus) runs icarus_and_celox_agree_on_dut_processes, which compares a cocotb test module's traces on Celox and on Icarus, with the locked tool versions of nix develop. Change-Id: I026ef342f35c2dd778aea6e85778642db92bdd21
A timed run counts the rounds it spends at one time, the settles of callback writes, ReadWrite passes and due timers alike, and fails with "simulation does not advance at time T" after a million. VPI writes during ReadOnly callbacks are rejected (IEEE 1800-2023 38.36.2), and a zero-delay timer registered there runs read-only without opening the time step's regions again. The cocotb guide describes the value-change timing the host has: at each boundary of a time step, after the settle of the wave that made the change and before the processes it wakes. It notes that pulses within one wave are not reported, that reads outside a step see stored values, and that only celox vpi build supports designs with processes (#1983). Change-Id: Ib964d9258f4e3844cff344d5f2c88f5c716e758b
… before its slot Timers due at the current time, including the zero-delay ones a timer or ReadWrite callback registers, now run in a loop until none is due, both before the step's slot and before its ReadOnly region; the same-time bound covers the loop. A vpiFinish from a due timer ends the run before the design's slot at that time runs, as in the untimed host. Change-Id: I8b52b5e212d440fe19398a4458d256fdb7fc6ceb
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
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
Propagate vpiFinish from slot observers through SlotIo::request_finish and Halt::Finish, stopping the running scheduler before its pending domains execute. IEEE 1800-2023 38.4 executes $finish on return from the application routine; 20.2 ends the simulation. Preserve writes already made by the observer. Run the fallback combinational settle through timed_step so the Simulation is out of the runtime borrow during observer dispatch, and its result and events are handled through the same path as scheduled steps. Use VERIFY_SHELL for the CI Icarus comparison, matching the external job's explicit development shell selection and its workflow regression contract. Validation: - Strengthened finish regression fails before the fix (count 1 instead of 0). - VPI suite with all ignored tests enabled: 158 passed, including cocotb and Icarus process-region comparisons. - Host library, native image and slot observer regressions: 236 passed; observer finish covered Native, Interpreter, Cranelift and Wasm. - Repository script suite: 296 passed. - Celox and celox-vpi all-target clippy, formatting and diff checks passed. Change-Id: Iac1ad02c9fa9f3f543f47663f23080e4b1204716
…ackends Retain Native and Interpreter coverage for compiled and reference execution without requiring the optional Cranelift and Wasm builder methods introduced on current master. All four backends were verified during local validation; both retained observer finish regressions pass. Change-Id: Ifefe2684679445782a2f28d1b4d38f596caaca91
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 intact-pave-tprr98 of the
changesqueue, to test #1938 before it merges intomaster. Pushing to this branch or closing this pull request removes #1938 from the queue.What this draft tests
Mergify checks that #1938 still passes CI once combined with everything queued ahead of it. CI runs on this draft's code, built in this order:
masteratf80551c86820f1The 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 2 pull requests ahead, so a failure here can come from them as much as from #1938. See only this batch's changes.
Queued ahead of this batch
These pull requests entered the queue before this batch and are 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 title