Repository navigation
fix(sv): bind interface-array slices to module ports - #1807
Merged
Conversation
Taxi connections such as axis_qsfp_tx[n*CNT +: CNT] fail with "interface handle expression". Resolve constant fixed and indexed slices against elaborated interface-array bounds and connect selected instances in declaration order. Preserve dimensions through generated scopes and relays, remove indexed dimensions, and recognize parenthesized interface actuals. Reject multiple sliced dimensions, reversed or out-of-range selections, nonconstant selections, nonpositive widths, overflowing bounds and mismatched port dimensions. Keep existing interface elaboration limits. No optimization settings, upstream RTL or diagnostic policy changes are needed. Validation: - Full SV consumer suite: 4257 passed, 20 existing ignored, including the three new shared cases across five backend variants and seven invalid selections. - An additional multiple-sliced-dimensions rejection test passed separately. - Analyzer: 791 passed, 3 existing ignored; frontend: 4 passed; suite: 30 passed. - Affected library/harness Clippy with -D warnings, formatting and diff checks passed. - Slang 12 accepts all three shared sources without semantic errors. - Verilator 5.052 executes the generated writer/relay case. Its negative-index case fails instance resolution followed by an internal error; the multidimensional case fails interface-pin resolution. Icarus cannot parse their interface ports. These external failures remain visible; no exclusions or retained evidence changed. On master a5aa1f2, a frontend-only audit of 83 previously blocked Taxi configurations finds 16 interface-handle failures. With this change, 15 reach subsequent blockers: 13 COUNT_125US parameter overrides and two undriven rx_error_bad_frame_int nets. HTG9200[32] remains incomplete at the 120-second limit. The other 67 configurations were not replayed with the patch, and no new cocotb execution is claimed. All 299 resolved upstream SV sources are unchanged. Change-Id: I14591b8b78c16d84cc0eb28da4e6d4f9d513027a
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
Merge Queue Status
This pull request spent 2 hours 17 minutes 25 seconds in the queue, including 1 hour 55 minutes 27 seconds running CI. Required conditions to merge
|
mergify
Bot
deleted the
stack/tignear/fix/sv-interface-array-slices/bind-interface-array-slices-module-ports--14591b8b
branch
October 23, 2026 09:20
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.
Taxi connections such as axis_qsfp_tx[n*CNT +: CNT] fail with
"interface handle expression". Resolve constant fixed and indexed slices
against elaborated interface-array bounds and connect selected instances in
declaration order. Preserve dimensions through generated scopes and relays,
remove indexed dimensions, and recognize parenthesized interface actuals.
Reject multiple sliced dimensions, reversed or out-of-range selections,
nonconstant selections, nonpositive widths, overflowing bounds and mismatched
port dimensions. Keep existing interface elaboration limits. No optimization
settings, upstream RTL or diagnostic policy changes are needed.
Validation:
new shared cases across five backend variants and seven invalid selections.
passed.
case fails instance resolution followed by an internal error; the multidimensional
case fails interface-pin resolution. Icarus cannot parse their interface ports.
These external failures remain visible; no exclusions or retained evidence changed.
On master a5aa1f2, a frontend-only audit of 83 previously blocked Taxi
configurations finds 16 interface-handle failures. With this change, 15 reach
subsequent blockers: 13 COUNT_125US parameter overrides and two undriven
rx_error_bad_frame_int nets. HTG9200[32] remains incomplete at the 120-second
limit. The other 67 configurations were not replayed with the patch, and no new
cocotb execution is claimed. All 299 resolved upstream SV sources are unchanged.