Repository navigation
fix(sv): preserve fixed selector bits in case coverage - #2275
Merged
Conversation
An exhaustive ordinary case on {b, 1'bx}, with b declared bit and labels
2'b0x and 2'b1x, was rejected as an inferred latch. Coverage enumerated the
selector's full four-state domain and included values that its fixed X bit
could never produce.
Track possible bit values through constants, concatenations, slices, captures
and identity operations, preserving the distinction between two-state inputs
and four-state logic. Filter the existing bounded enumeration with these
constraints. Leave opaque expressions conservative and bound each bit query;
real incomplete cases and X/Z mismatches still produce latch diagnostics.
No diagnostic policy or optimization settings are relaxed.
Validation: all 5935 SV tests, 10 frontend unit tests, 54 suite tests,
affected-crate clippy and formatting pass. After updating to master 4616658,
all 12 focused regressions, frontend unit tests, clippy and formatting pass.
Shared regressions exercise all five compiled backend variants; the original
example also runs in both state modes, including logic storage in two-state
mode. Icarus passes both shared four-state cases. Verilator reports its existing
four-state capability limit. Existing ignored tests, exclusions and retained
verification baselines remain unchanged.
Change-Id: I9a163ef5eb4a6a28a033e9bd955bb351ba3abf15
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. |
Contributor
✅ 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
This was referenced Oct 27, 2026
mergify
Bot
deleted the
stack/tignear/fix/sv-case-selector-coverage/preserve-fixed-selector-bits-case-coverage--9a163ef5
branch
October 27, 2026 13:38
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.
An exhaustive ordinary case on {b, 1'bx}, with b declared bit and labels
2'b0x and 2'b1x, was rejected as an inferred latch. Coverage enumerated the
selector's full four-state domain and included values that its fixed X bit
could never produce.
Track possible bit values through constants, concatenations, slices, captures
and identity operations, preserving the distinction between two-state inputs
and four-state logic. Filter the existing bounded enumeration with these
constraints. Leave opaque expressions conservative and bound each bit query;
real incomplete cases and X/Z mismatches still produce latch diagnostics.
No diagnostic policy or optimization settings are relaxed.
Validation: all 5935 SV tests, 10 frontend unit tests, 54 suite tests,
affected-crate clippy and formatting pass. After updating to master 4616658,
all 12 focused regressions, frontend unit tests, clippy and formatting pass.
Shared regressions exercise all five compiled backend variants; the original
example also runs in both state modes, including logic storage in two-state
mode. Icarus passes both shared four-state cases. Verilator reports its existing
four-state capability limit. Existing ignored tests, exclusions and retained
verification baselines remain unchanged.