Repository navigation
feat(sv): support soft packed unions - #1837
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: 45431e299a
ℹ️ 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".
| Group { | ||
| file: "src/sv/cases/unions.vtest", | ||
| text: include_str!("unions.vtest"), | ||
| }, |
There was a problem hiding this comment.
Record the new Icarus failures in the reviewed verification baseline
Registering this group adds four known Icarus failures to every full external-suite run: three soft-union compilation errors and the mixed-state mismatch documented in LIMITATIONS.md. A repository-wide search of crates/celox-test-suite/verification finds no unions entries. In the inspected .github/workflows/ci.yml, the external-suite job invokes scripts/check-external-suite-report.mjs, which rejects failures without matching retained evidence; the release aggregate requires that job to succeed. Consequently, this change makes full validation fail and blocks release validation even though the Celox tests pass. Retain reviewed failure evidence for these new cases without weakening their assertions; this is a changed coverage contract, not a routine baseline refresh.
AGENTS.md reference: AGENTS.md:L28-L30
Useful? React with 👍 / 👎.
|
Queued — the merge queue status continues in this comment ↓. |
45431e2 to
c71bba5
Compare
Revision history
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c71bba52ee
ℹ️ 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".
| "icarus/timing.json", | ||
| "icarus/types.json" | ||
| "icarus/types.json", | ||
| "icarus/unions.json" |
There was a problem hiding this comment.
Update the retained-baseline test for the new Icarus failures
Adding this shard introduces four retained SystemVerilog Icarus failures, but scripts/check-external-suite-report.test.mjs:274–276 still asserts that every SystemVerilog baseline has zero accepted failures. Running node --test scripts/check-external-suite-report.test.mjs now fails with 4 !== 0. Update that expectation alongside the retained evidence so the repository-script tests pass; .github/workflows/ci.yml runs this test through node --test scripts/*.test.mjs in its “Test repository scripts” step.
Useful? React with 👍 / 👎.
c71bba5 to
c65b0e3
Compare
Support `union soft` and `union soft packed` with differently sized integral members. Members share their least significant bits, storage uses the largest member width, and narrow writes preserve the upper bits. Retain hard packed unions' equal-width requirement. Add shared regressions for nested overlays, partial blocking/nonblocking writes, signed package-qualified ports, mixed bit/logic members, and 130-bit four-state values. Document the supported subset and external simulator limitations; tagged and unpacked unions remain unsupported. Validation: syntax tests (121 passed), analyzer tests (795 passed, 3 existing ignores), union integration tests across native/Cranelift/Wasm and parallel modes (26 passed), packed-struct regressions (54 passed), formatting and affected-crate/integration Clippy passed. Verilator 5.052: 3 passing cases, 2 unsupported four-state cases. Icarus 13.0: 1 passing case, 3 soft-union syntax rejections, and 1 mixed-state read mismatch independently reproduced outside the harness. IEEE 1800-2023 7.3.1 requires conversion when reading a two-state union member; Icarus retains X. Assertions remain enabled with no exclusions. Retain the reviewed Icarus union evidence, including exact diagnostics, so full-suite/release validation accepts those known failures while rejecting changed diagnostics or new failures. The focused fresh report reproduces all four failures and passes the external-report gate with the retained evidence. The baseline regression asserts the exact four reviewed SV Icarus case IDs; all 273 repository script tests pass after adding the evidence. Follow-up CI validation: update the Rust retained-report contract to validate the four executable Icarus failures by case, status, phase, diagnostic and absence of exclusions. All celox-test-suite tests with verilator/icarus features pass (78 passed, 12 existing ignores), including retained reports and doctests; focused Clippy and the nine JavaScript report tests pass. Change-Id: Icba1d4eb64ecba665a391b04033473259f921029
c65b0e3 to
84e50ef
Compare
Merge Queue Status
This pull request spent 1 hour 31 minutes 54 seconds in the queue, including 1 hour 30 minutes 13 seconds running CI. Required conditions to merge
|
Support
union softandunion soft packedwith differently sized integral members. Members share their least significant bits, storage uses the largest member width, and narrow writes preserve the upper bits. Retain hard packed unions' equal-width requirement.Add shared regressions for nested overlays, partial blocking/nonblocking writes, signed package-qualified ports, mixed bit/logic members, and 130-bit four-state values. Document the supported subset and external simulator limitations; tagged and unpacked unions remain unsupported.
Validation: syntax tests (121 passed), analyzer tests (795 passed, 3 existing ignores), union integration tests across native/Cranelift/Wasm and parallel modes (26 passed), packed-struct regressions (54 passed), formatting and affected-crate/integration Clippy passed.
Verilator 5.052: 3 passing cases, 2 unsupported four-state cases. Icarus 13.0: 1 passing case, 3 soft-union syntax rejections, and 1 mixed-state read mismatch independently reproduced outside the harness. IEEE 1800-2023 7.3.1 requires conversion when reading a two-state union member; Icarus retains X. Assertions remain enabled with no exclusions. Retain the reviewed Icarus union evidence, including exact diagnostics, so full-suite/release validation accepts those known failures while rejecting changed diagnostics or new failures. The focused fresh report reproduces all four failures and passes the external-report gate with the retained evidence. The baseline regression asserts the exact four reviewed SV Icarus case IDs; all 273 repository script tests pass after adding the evidence.
Follow-up CI validation: update the Rust retained-report contract to validate the four executable Icarus failures by case, status, phase, diagnostic and absence of exclusions. All celox-test-suite tests with verilator/icarus features pass (78 passed, 12 existing ignores), including retained reports and doctests; focused Clippy and the nine JavaScript report tests pass.