Repository navigation
merge queue: checking #2075 on master (e984aaf), stacked on #2078 - #2086
Closed
mergify[bot] wants to merge 4 commits into
Closed
mergify[bot] wants to merge 4 commits into
mergify[bot] wants to merge 4 commits into
Conversation
…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
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 windy-cremefraiche-dkxz5s of the
changesqueue, to test #2075 before it merges intomaster.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:
masterate984aafe833c2fThe 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
changesqueue in the dashboardWhat happens next
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 ci1 scope
coreRequired conditions of queue rule
changesfor mergecheck-success = Queue validationmaster]:check-neutral = @github-actions/Rust Test & NAPI Buildcheck-skipped = @github-actions/Rust Test & NAPI Buildcheck-success = @github-actions/Rust Test & NAPI Buildcheck-success = Conventional Commit titledepends-on = celox-sim/celox#2074[⛓️ fix(sv)!: enforce class member access visibility #2074]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/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#2074[⛓️ fix(sv)!: enforce class member access visibility #2074]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 title