Repository navigation
feat(sv): support class enum randomization - #1838
mergify[bot] merged 1 commit into
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0fe51fe6a4
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Queued — the merge queue status continues in this comment ↓. |
0fe51fe to
c2abf1b
Compare
Revision history
|
Merge Queue Status
This pull request spent 24 minutes 8 seconds in the queue, with no time running CI. ReasonThe pull request #1838 has been manually updated Waiting for
All conditions
Requeued — the merge queue status continues in this comment ↓. |
c2abf1b to
11faea3
Compare
|
This pull request is part of a Mergify stack:
|
Merge Queue Status
This pull request spent 22 minutes 11 seconds in the queue, with no time running CI. ReasonThe pull request conflicts with the base branch The pull request was held in the queue, conflicting with at least one of 2 pull requests ahead of it. The conflict became a base branch one after #1816 merged. HintYou should update or rebase your pull request. If you want to requeue this pull request, you can post a Requeued — the merge queue status continues in this comment ↓. |
11faea3 to
37ec478
Compare
Merge Queue Status
This pull request spent 34 minutes 27 seconds in the queue, with no time running CI. ReasonThe pull request conflicts with the base branch HintYou should update or rebase your pull request. If you want to requeue this pull request, you can post a Requeued — the merge queue status continues in this comment ↓. |
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
37ec478 to
b9d5870
Compare
Merge Queue Status
This pull request spent 3 hours 1 minute 47 seconds in the queue, including 3 hours 13 seconds running CI. ReasonThe merge conditions cannot be satisfied: the checks did not pass within the checks timeout of 3 hours These checks were still running:
Failing checks: HintYou may have to fix your CI before adding the pull request to the queue again. If you update this pull request, to fix the CI, it will automatically be requeued once the queue conditions match again. Waiting for
All conditions
Requeued — the merge queue status continues in this comment ↓. |
Merge Queue Status
This pull request spent 1 hour 20 minutes 42 seconds in the queue, including 1 hour 52 seconds running CI. Required conditions to merge
|
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:
pass afterward; Verilator also passes the unchanged assertions.
above are documented with original diagnostics in verification/repros.