Skip to content

merge queue: checking #2075 on master (e984aaf), stacked on #2078 - #2086

Closed
mergify[bot] wants to merge 4 commits into
masterfrom
mergify/merge-queue/fe18204906
Closed

mergify[bot] wants to merge 4 commits into
masterfrom
mergify/merge-queue/fe18204906

Conversation

@mergify

@mergify mergify Bot commented Oct 25, 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 windy-cremefraiche-dkxz5s of the changes queue, to test #2075 before it merges into master.

What this draft tests

Mergify checks that #2075 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 e984aaf
  2. the pull request queued ahead of this batch, listed below, which brings the tip to e833c2f
  3. #2075, 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: closed

The pull request #2075 has been manually updated.

Follow the changes queue in the dashboard

What happens next

  • Mergify 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 #2075. 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 ci
---
all_scopes: false
checking_base_sha: e833c2f002a0e4b184c34274085e7233a8bf5d42
previous_check_retries: []
previous_failed_batches: []
pull_requests:
  - number: 2075
    scopes:
      - core
scopes:
  - core
...
1 scope
  • core
Required conditions of queue rule changes for merge
  • check-success = Queue validation
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-neutral = @github-actions/Rust Test & NAPI Build
    • check-skipped = @github-actions/Rust Test & NAPI Build
    • check-success = @github-actions/Rust Test & NAPI Build
  • check-success = Conventional Commit title
  • depends-on = celox-sim/celox#2074 [⛓️ fix(sv)!: enforce class member access visibility #2074]
  • 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/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 4 commits October 26, 2026 05:19
…ike Verilator

`always @*` and `always @(list)` wait for a change before their first run (IEEE 1800-2023 9.2.2.2, 9.4.2). In four-state mode their outputs start as X, so the wait rarely shows. In two-state mode the outputs start as a real 0 that drives logic. In rtlmeter's C906, `axi_slave128` computes `mem_cen` / `mem_wen` in `always @(cur_state or wdata_s0[127:0] or wvalid_s0 or wready or wstrb_s0[15:0])`. Until an input changed, the 0s read as a write enable: at cycle 2 every SRAM bank wrote 0 over the reset vector the testbench had loaded, and the CPU never started. Verilator 5.052 (two-state) evaluates these blocks once at time zero, after the initial blocks.

Two-state mode now does the same; four-state mode keeps the LRM behavior:
- `always @*`, and a list that names exactly the reads of its statement (which the frontend already lowers as `always @*`), run on their first activation like `always_comb`: no startup snapshot, and ordered after the initial blocks (`Ff::lower_comb_process`).
- Any other level-sensitive `always @(list) statement` lowers as `#0; forever begin statement; @(list); end`. It runs once at time zero after the time-zero statements of the initial blocks, then waits. This covers C906's list, whose full-width part-selects do not count as naming the variables, and incomplete or over-complete lists.

Treating a full-width part-select in a list as naming the variable would have turned C906's blocks into combinational processes. That cost about 10% more instructions before the testbench starts, so those blocks stay processes. With this change, C906 (interpreter, two-state) runs 2-3% more instructions up to "Init Program", spread over the frontend.

BREAKING CHANGE: in two-state mode, `always @*` and sensitivity-list processes run once at time zero, so their outputs and `$display`s appear at time zero. Use four-state mode for the LRM's wait.

Closes #2021. Closes #2026.

- Shared cases `always_comb::two_state_sensitivity_lists_run_at_time_zero` (C906's write-enable block and an `always @*`) and `always_comb::two_state_other_sensitivity_lists_run_at_time_zero` (an over-complete and an incomplete list) match Verilator. They carry the new oracle tag `two_state_time_zero_settle`, since SV has the processes wait. Icarus simulates them in four-state SV and prints X, which the new reviewed exclusion `sv_icarus_two_state_time_zero_settle` records, with standalone probes in `verification/repros/sv_two_state_time_zero_settle.json`.
- Cases and tests whose subject is the LRM wait or the startup guard now run in four-state mode: the latch `always @*` startup and change-return cases, `timing::explicit_list_of_every_read_waits_for_a_change`, `timing::list_with_an_extra_signal_wakes_on_it`, `program::program_nonblocking_updates_follow_design_updates`, and the startup-guard tests of `sv_declaration_startup`. The `$urandom` sensitivity test expects `always @*` draws at time zero.

Change-Id: I73580672abd3acfb040c78cfd4daae2f7df786e2
Reject sized enum literals whose width differs from the base, X/Z values
without an explicit four-state base, and implicit successors of X/Z values
as required by IEEE 1800-2023 6.19. Preserve masks across references to
preceding members and allow expressions that resolve to known values.

Defer typedef validation until enum constants and dependent aliases resolve.
Keep inline declarations checked when their types are bound. Leave ranged
member expansion to the existing unsupported path instead of guessing values.
Update the three affected sv-tests cases in both state modes.

Validation: all analyzer tests (811 passed, 3 existing ignored), 2 doctests,
combined analyzer tests (814 passed, 3 ignored), all-target Clippy and fmt.
Full release-driver sv-tests validation runs in CI as requested.

Change-Id: I71ba3443f34b307ef6a424decec09ef01881948d
@mergify mergify Bot closed this Oct 25, 2026
@mergify
mergify Bot deleted the mergify/merge-queue/fe18204906 branch October 25, 2026 21:47
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