Repository navigation
merge queue: checking #1847 on master (090052d), stacked on #1838 - #1894
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
Allow rand enum properties and randomize(member) selection of enum properties in unconstrained classes. Preserve declared enum domains through type aliases and select only their declared values with rejection sampling, including sparse, negative, implicit, singleton, and 64-bit values. Normalize unbased fill initializers to the enum base width and signedness before evaluation. Keep rand_mode, inherited properties, dynamic dispatch, and per-object seeding behavior intact. Keep unsupported or unresolved enum domains explicit rather than randomizing the underlying integer. Reject duplicate values, overflowing implicit values, and X/Z domains. Scope randomization of enums, arrays, and class properties wider than 64 bits remain outside this change. Add four shared regression cases and an analyzer rejection test; update the English and Japanese references. Retain narrow external-tool failure evidence: Verilator 5.052 passes the direct enum, inheritance, and unbased fill cases but randomizes an enum typedef alias as raw integer bits. Icarus 13.0 cannot elaborate class randomization methods in these four cases. Shared assertions are unchanged. Validation: - Analyzer unit tests: 796 passed, 3 existing ignores. - Differential SystemVerilog class suite across backends: 179 passed. - Retained external evidence checks: 3 passed. - NAPI build and JavaScript integration: 432 passed. - Analyzer Clippy, formatting, and diff checks pass. - Unbased fill regression: all five backend variants fail before the fix and pass afterward; Verilator also passes the unchanged assertions. - All four new shared cases exercised with Verilator and Icarus; the limitations above are documented with original diagnostics in verification/repros. Change-Id: I076dfe023e39722af4f294144ffae2c202085d52
Support scalar enums in randomize(e) and std::randomize(e), selecting only declared values with unbiased rejection sampling from the process RNG. Preserve enum domains through aliases and local variables, allow mixed enum/integer arguments, and retain short-circuit evaluation and checkpoint replay. Add shared domain and evaluation-order regressions plus Celox checkpoint and forced-rejection tests. Document the observed Icarus 13.0 compile limitation and Verilator 5.052 enum-domain mismatch with narrowly scoped exclusions and reproduction evidence. Validation: analyzer 796 and frontend 4 unit tests; 708 system-function regressions; 4 forced-rejection backend tests; retained-report checks (3); NAPI build and JS tests (432); affected-crate Clippy, cargo fmt and diff checks. Both new shared cases were exercised with Icarus and Verilator; their failures are retained as the tool limitations described above. BREAKING CHANGE: The public celox-sv-analyzer SystemFunction enum gains ScopeRandomizeEnum; downstream exhaustive matches must handle this variant. Change-Id: I2e07aafc25d024b216ce17760324265e3719055d
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 presidential-radis-lxypvo of the
changesqueue, to test #1847 before it merges intomaster.What this draft tests
Mergify checks that #1847 still passes CI once combined with everything queued ahead of it. CI runs on this draft's code, built in this order:
masterat090052d13102f3The check is speculative: it assumes the pull requests ahead will merge, so it starts without waiting for them.
✨ Where it stands: closed
Pull request #1838 ahead in the queue was removed (reason:
checks timeout).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 #1847. 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.
coreMetadata for CI tooling, read by
mergify ci1 scope
coreRequired conditions of queue rule
changesfor mergecheck-success = Conventional Commit titlemaster]:check-neutral = @github-actions/Conventional Commit titlecheck-skipped = @github-actions/Conventional Commit titlecheck-success = @github-actions/Conventional Commit titlecheck-success = Queue validationdepends-on=celox-sim/celox#1838[⛓️ feat(sv): support class enum randomization #1838 [stack]]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/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)Required 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#1838[⛓️ feat(sv): support class enum randomization #1838 [stack]]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