Repository navigation
feat(sv)!: support per-object constraint modes - #2271
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. |
🚫 Left the queue2 min in the queue, with no time running CI. So far
Reason The pull request conflicts with the base branch Hint You 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 ↓. Times in UTC · dashboard · how the merge queue works |
fcbf440 to
fb19450
Compare
Revision history
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: fb19450a50
ℹ️ 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".
Implement IEEE 1800-2023 18.9 constraint_mode getters and void setters for named blocks, plus the object-wide setter. All modes start enabled; aliases share them and different objects do not. Preserve inherited block indices when a derived constraint overrides the same name, so base-handle mode calls control the effective block. Object-wide changes include dynamic subclasses. Store constraint modes separately from temporary rand_mode selections. Apply named-block modes after pre_randomize, leave inline predicates unconditional, and preserve hook updates on failed solves. Include modes in object copies, heap comparison and checkpoint restoration. Diagnose unknown blocks, invalid getter/setter calls, builtin overrides and unsupported static/external blocks. Add shared cases for modes, aliases, hooks, inheritance, dynamic dispatch and inline/check-only solves, plus a checkpoint regression. Retain the observed Icarus constraint-declaration limitation and Verilator bit-argument/override mode discrepancies with IEEE clause references and exact failure evidence. Package-base randomize dispatch remains the separate existing #1892 limitation; mode calls across that boundary are covered without claiming that fix. Validation: 400 class/backend tests; 847 analyzer tests (3 existing ignores) and analyzer doctests; 27 heap tests; 4 retained-report tests; affected-crate Clippy and formatting. Verilator passes the hook case and exposes three reviewed disagreements; Icarus rejects the four constraint cases. The pinned xezim executable is not installed locally, so that adapter was not run. The upstream constraint_mode positive case uses UVM; expectations stay unchanged. BREAKING CHANGE: serialized heap/checkpoint images contain persistent constraint mode state; regenerate images produced by earlier builds. Ordinary struct fields named constraint_mode retain normal member lookup, including nested fields and class-local structs. The shared regression passes all five backends, Verilator and Icarus; analyzer tests and clippy also pass. Change-Id: Ibecc00dc19b68d9340e4cbf511410478a9b57345
fb19450 to
904511f
Compare
✅ Merged into
|
| Condition | Required by | |
|---|---|---|
| ✅ | check-success = Conventional Commit title |
— |
| ✅ | check-success = Queue validation |
— |
| ✅ | any of: check-success = @github-actions/Lint & Format, check-neutral = @github-actions/Lint & Format, check-skipped = @github-actions/Lint & Format |
GitHub repository ruleset rule master |
| ✅ | any of: check-success = @github-actions/Rust Test & NAPI Build, check-neutral = @github-actions/Rust Test & NAPI Build, check-skipped = @github-actions/Rust Test & NAPI Build |
GitHub repository ruleset rule master |
| ✅ | any of: check-success = @github-actions/JS Test (Ubuntu), check-neutral = @github-actions/JS Test (Ubuntu), check-skipped = @github-actions/JS Test (Ubuntu) |
GitHub repository ruleset rule master |
| ✅ | any of: check-success = @github-actions/Conventional Commit title, check-neutral = @github-actions/Conventional Commit title, check-skipped = @github-actions/Conventional Commit title |
GitHub repository ruleset rule master |
| ✅ | any of: check-success = @github-actions/Queue validation, check-neutral = @github-actions/Queue validation, check-skipped = @github-actions/Queue validation |
GitHub repository ruleset rule master |
Times in UTC · dashboard · how the merge queue works
Implement IEEE 1800-2023 18.9 constraint_mode getters and void setters for
named blocks, plus the object-wide setter. All modes start enabled; aliases
share them and different objects do not. Preserve inherited block indices
when a derived constraint overrides the same name, so base-handle mode calls
control the effective block. Object-wide changes include dynamic subclasses.
Store constraint modes separately from temporary rand_mode selections. Apply
named-block modes after pre_randomize, leave inline predicates unconditional,
and preserve hook updates on failed solves. Include modes in object copies,
heap comparison and checkpoint restoration. Diagnose unknown blocks, invalid
getter/setter calls, builtin overrides and unsupported static/external blocks.
Add shared cases for modes, aliases, hooks, inheritance, dynamic dispatch and
inline/check-only solves, plus a checkpoint regression. Retain the observed
Icarus constraint-declaration limitation and Verilator bit-argument/override
mode discrepancies with IEEE clause references and exact failure evidence.
Package-base randomize dispatch remains the separate existing #1892 limitation;
mode calls across that boundary are covered without claiming that fix.
Validation: 400 class/backend tests; 847 analyzer tests (3 existing ignores)
and analyzer doctests; 27 heap tests; 4 retained-report tests; affected-crate
Clippy and formatting. Verilator passes the hook case and exposes three
reviewed disagreements; Icarus rejects the four constraint cases. The pinned
xezim executable is not installed locally, so that adapter was not run.
The upstream constraint_mode positive case uses UVM; expectations stay unchanged.
BREAKING CHANGE: serialized heap/checkpoint images contain persistent constraint
mode state; regenerate images produced by earlier builds.
Ordinary struct fields named constraint_mode retain normal member lookup, including nested fields and class-local structs. The shared regression passes all five backends, Verilator and Icarus; analyzer tests and clippy also pass.