Repository navigation
fix(sv): return typed defaults for invalid unpacked array reads - #1977
Merged
Conversation
Contributor
Author
|
This pull request is part of a Mergify stack:
|
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. |
tignear
force-pushed
the
stack/tignear/fix/sv-conditional-range/retain-ff-publication-other-lane-tasks--14a726b2
branch
from
October 25, 2026 09:16
d12d7f2 to
58b7e66
Compare
tignear
force-pushed
the
stack/tignear/fix/sv-conditional-range/return-typed-defaults-invalid-unpacked-array-reads--b6ba45ac
branch
from
October 25, 2026 09:16
4d14885 to
55b4c4f
Compare
Contributor
Author
Revision history
|
Contributor
Author
|
@Mergifyio queue |
Contributor
Merge Queue Status🛑 Queue command has been cancelled |
Generated pipelines such as r[n] <= n == 0 ? d : r[n-1] rejected r[-1] in the unselected conditional operand. Route constant invalid integral unpacked indices through the existing bounds guard and fold invalid reads to the selected type's X or zero default. Invalid writes remain no-ops. Exclude wholly invalid constant writes from FF target collection before recording pending-state or latch-coverage targets. An empty constant range must not become a dynamic whole-array write and trigger an inferred latch. Update the large-index diagnostic regression to require successful builds without warnings under both error and warn policies. Preserve both conditional operands' width and signedness, as required by IEEE 1800-2023 7.4.5 and 11.4.11. Cover nonzero ascending/descending bounds, multidimensional indices, sequential writes, 129-bit defaults and two-state elements in a four-state simulator. Replace obsolete rejection expectations. Keep the invalid bit-array read regression in Celox's API tests because Icarus 13.0 returns X instead of the required zero for that case. Validation on master feba1a5 with the preceding Native fix: - Full SystemVerilog suite: 5,003 passed across five backends, with 20 existing exclusions; all 29 added regression variants passed. - SV analyzer: 806 passed, three existing ignored, plus both doctests. - Clippy for celox-sv-analyzer and celox, including the SV tests, passed. The unchanged shared cases passed Icarus during validation on master 644beac. Verilator passed the two-state pipeline; the four-state cases remain unsupported by that adapter. The external adapters are unchanged. Rebuilt NAPI: the threads E2E and all three runtime-event addon tests passed. Workspace check (excluding lydite-celox), formatting, lint and submodule checks passed. After restacking on the typed Native merge dispatch, all 12 added Native regression variants and rebuilt NAPI integration checks passed. The threads E2E initially exceeded its 5s limit while builds ran concurrently; an isolated rerun passed with the same 5s limit. All three addon event tests also passed. CI follow-up: the old diagnostic regression expected a range error. Its replacement exposed and now covers the false latch diagnostic above. Validation: all 5,003 SV cases, all 33 diagnostic-policy tests, six frontend unit tests, and clippy for both affected crates/consumers passed. Change-Id: Ib6ba45acc50166a08cbb7851d3efaa20c89de081
tignear
force-pushed
the
stack/tignear/fix/sv-conditional-range/return-typed-defaults-invalid-unpacked-array-reads--b6ba45ac
branch
from
October 25, 2026 10:45
55b4c4f to
13346c6
Compare
Contributor
🛑 The queue request has been cancelled: new commits were pushedDetails@tignear pushed to this pull request after |
Contributor
Merge Queue Status
This pull request spent 32 minutes 41 seconds in the queue, including 27 minutes 9 seconds running CI. Required conditions to merge
|
Base automatically changed from
stack/tignear/fix/sv-conditional-range/retain-ff-publication-other-lane-tasks--14a726b2
to
master
October 25, 2026 11:23
This was referenced Oct 25, 2026
mergify
Bot
deleted the
stack/tignear/fix/sv-conditional-range/return-typed-defaults-invalid-unpacked-array-reads--b6ba45ac
branch
October 25, 2026 11:52
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.
Generated pipelines such as r[n] <= n == 0 ? d : r[n-1] rejected r[-1]
in the unselected conditional operand. Route constant invalid integral
unpacked indices through the existing bounds guard and fold invalid reads
to the selected type's X or zero default. Invalid writes remain no-ops.
Exclude wholly invalid constant writes from FF target collection before
recording pending-state or latch-coverage targets. An empty constant range
must not become a dynamic whole-array write and trigger an inferred latch.
Update the large-index diagnostic regression to require successful builds
without warnings under both error and warn policies.
Preserve both conditional operands' width and signedness, as required by
IEEE 1800-2023 7.4.5 and 11.4.11. Cover nonzero ascending/descending bounds,
multidimensional indices, sequential writes, 129-bit defaults and two-state
elements in a four-state simulator. Replace obsolete rejection expectations.
Keep the invalid bit-array read regression in Celox's API tests because
Icarus 13.0 returns X instead of the required zero for that case.
Validation on master feba1a5 with the preceding Native fix:
existing exclusions; all 29 added regression variants passed.
The unchanged shared cases passed Icarus during validation on master
644beac. Verilator passed the two-state pipeline; the four-state cases
remain unsupported by that adapter. The external adapters are unchanged.
Rebuilt NAPI: the threads E2E and all three runtime-event addon tests passed.
Workspace check (excluding lydite-celox), formatting, lint and submodule
checks passed.
After restacking on the typed Native merge dispatch, all 12 added Native
regression variants and rebuilt NAPI integration checks passed. The threads
E2E initially exceeded its 5s limit while builds ran concurrently; an
isolated rerun passed with the same 5s limit. All three addon event tests
also passed.
CI follow-up: the old diagnostic regression expected a range error. Its
replacement exposed and now covers the false latch diagnostic above.
Validation: all 5,003 SV cases, all 33 diagnostic-policy tests, six frontend
unit tests, and clippy for both affected crates/consumers passed.
Depends-On: #1976