Repository navigation
feat(sv): support unconstrained scope randomization - #1640
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. |
|
This pull request is part of a Mergify stack:
|
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
020842b to
e984458
Compare
Revision history
|
Merge Queue Status
This pull request spent 19 minutes 41 seconds in the queue, with no time running CI. ReasonPull request #1640 has been dequeued Queue conditions are not satisfied:
HintYou should look at the reason for the failure and decide if the pull request needs to be fixed or if you want to requeue it. Requeued — the merge queue status continues in this comment ↓. |
0a09948 to
908be17
Compare
e984458 to
2203fa4
Compare
Merge Queue Status
This pull request spent 28 minutes 51 seconds in the queue, with no time running CI. ReasonThe pull request conflicts with the base branch Automatic conflict resolution can merge a conflict like this one instead of stopping on it, but only in a queue using the 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 ↓. |
Implement randomize(a, b) and std::randomize(a, b) for whole writable packed variables, including signed vectors and packed structures. Fill arbitrary supported widths in 32-bit words and return the signed int success value 1. Empty calls succeed without changing variables or advancing the random stream. Use the caller's persistent process RNG with a bijective output mix so even word strides cannot freeze low bits. Preserve procedural order, short-circuit evaluation, function locals, four-state mask clearing and checkpoint replay. Record written arguments for driver and sensitivity checks; recognize std::randomize as a built-in rather than a package dependency. Reject constraints, class methods, enums, unpacked arrays, nets, constants, selects and concatenation arguments. Retain enum and mutability metadata through analysis to diagnose unsupported targets. Document these limits in English and Japanese. Add shared regressions for widths 1, 5, 16, 32, 64, 981, 1024 and 2051, control flow and return width. Add owning diagnostics, port-kind checks, four-state/checkpoint coverage and O0/O1/O2 checks. Verilator passes both shared cases; retain Icarus 13.0's compile failures and narrowly exclude those cases in its catalogue, including retained-report rows. Validation: full SV backend corpus, analyzer/frontend tests, full shared-suite package tests with Verilator and Icarus features, optimization-level checks, affected-crate and integration-test Clippy, and formatting. Native backend and wide/four-state/parameterized consumers also pass. Change-Id: I7bb166b01425b7890391c787293906fe051716ce
2203fa4 to
d087d56
Compare
Merge Queue Status
This pull request spent 1 hour 41 minutes 46 seconds in the queue, including 55 minutes 52 seconds running CI. Required conditions to merge
|
Implement randomize(a, b) and std::randomize(a, b) for whole writable packed variables, including signed vectors and packed structures. Fill arbitrary supported widths in 32-bit words and return the signed int success value 1. Empty calls succeed without changing variables or advancing the random stream.
Use the caller's persistent process RNG with a bijective output mix so even word strides cannot freeze low bits. Preserve procedural order, short-circuit evaluation, function locals, four-state mask clearing and checkpoint replay. Record written arguments for driver and sensitivity checks; recognize std::randomize as a built-in rather than a package dependency.
Reject constraints, class methods, enums, unpacked arrays, nets, constants, selects and concatenation arguments. Retain enum and mutability metadata through analysis to diagnose unsupported targets. Document these limits in English and Japanese.
Add shared regressions for widths 1, 5, 16, 32, 64, 981, 1024 and 2051, control flow and return width. Add owning diagnostics, port-kind checks, four-state/checkpoint coverage and O0/O1/O2 checks. Verilator passes both shared cases; retain Icarus 13.0's compile failures and narrowly exclude those cases in its catalogue, including retained-report rows.
Validation: full SV backend corpus, analyzer/frontend tests, full shared-suite package tests with Verilator and Icarus features, optimization-level checks, affected-crate and integration-test Clippy, and formatting. Native backend and wide/four-state/parameterized consumers also pass.