Skip to content

merge queue: checking #1938 on master (f80551c), stacked on #2106 and #2088 - #2115

Closed
mergify[bot] wants to merge 12 commits into
masterfrom
mergify/merge-queue/5a6af86bab
Closed

mergify[bot] wants to merge 12 commits into
masterfrom
mergify/merge-queue/5a6af86bab

Conversation

@mergify

@mergify mergify Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

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 changes queue, to test #1938 before it merges into master. 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:

  1. master at f80551c
  2. the 2 pull requests queued ahead of this batch, listed below, which bring the tip to 86820f1
  3. #1938, the pull request of this batch

The 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 changes queue in the dashboard

What happens next

  • Once the pull requests ahead have merged, Mergify merges #1938 into master and closes this draft.
  • If a pull request ahead fails or leaves the queue without merging, this batch is requeued and checked again on a new draft: these checks assumed it would merge.

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 ci
---
all_scopes: false
checking_base_sha: 86820f10b13de53b9a460050abcbd2dff657d728
previous_check_retries: []
previous_failed_batches: []
pull_requests:
  - number: 1938
    scopes:
      - core
scopes:
  - core
...
1 scope
  • core
Required conditions of queue rule changes for merge
  • check-success = Conventional Commit title
  • check-success = Queue validation
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Lint & Format
    • check-neutral = @github-actions/Lint & Format
    • check-skipped = @github-actions/Lint & Format
  • any of [🛡 GitHub repository ruleset rule master]:
    • 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)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/NAPI Build (Windows)
    • check-neutral = @github-actions/NAPI Build (Windows)
    • check-skipped = @github-actions/NAPI Build (Windows)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Rust Test & NAPI Build
    • check-neutral = @github-actions/Rust Test & NAPI Build
    • check-skipped = @github-actions/Rust Test & NAPI Build
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/JS Test (Ubuntu)
    • check-neutral = @github-actions/JS Test (Ubuntu)
    • check-skipped = @github-actions/JS Test (Ubuntu)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/JS Test (Windows)
    • check-neutral = @github-actions/JS Test (Windows)
    • check-skipped = @github-actions/JS Test (Windows)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Conventional Commit title
    • check-neutral = @github-actions/Conventional Commit title
    • check-skipped = @github-actions/Conventional Commit title
Required conditions to stay in the queue

tignear and others added 12 commits October 25, 2026 16:39
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
@mergify mergify Bot closed this Oct 26, 2026
@mergify
mergify Bot deleted the mergify/merge-queue/5a6af86bab branch October 26, 2026 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant