Skip to content

fix(sv): bind interface-array slices to module ports - #1807

Merged
mergify[bot] merged 1 commit into
masterfrom
stack/tignear/fix/sv-interface-array-slices/bind-interface-array-slices-module-ports--14591b8b
Oct 23, 2026
Merged

mergify[bot] merged 1 commit into
masterfrom
stack/tignear/fix/sv-interface-array-slices/bind-interface-array-slices-module-ports--14591b8b

Conversation

@tignear

@tignear tignear commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

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.

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
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-23T06:10:59.547172Z 1d9d564 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@tignear tignear added the merge-ready Request merging through Mergify after required checks label Oct 23, 2026
@mergify mergify Bot added the queued Mergify queue entry label Oct 23, 2026
@mergify

mergify Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
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
  • check-success = Conventional Commit title
  • check-success = Queue validation
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Lint & Format
    • check-neutral = @github-actions/Lint & Format
    • check-skipped = @github-actions/Lint & Format
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/NAPI Build (Linux ARM64 GNU)
    • check-neutral = @github-actions/NAPI Build (Linux ARM64 GNU)
    • check-skipped = @github-actions/NAPI Build (Linux ARM64 GNU)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/NAPI Build (Windows)
    • check-neutral = @github-actions/NAPI Build (Windows)
    • check-skipped = @github-actions/NAPI Build (Windows)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Rust Test & NAPI Build
    • check-neutral = @github-actions/Rust Test & NAPI Build
    • check-skipped = @github-actions/Rust Test & NAPI Build
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/JS Test (Ubuntu)
    • check-neutral = @github-actions/JS Test (Ubuntu)
    • check-skipped = @github-actions/JS Test (Ubuntu)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/JS Test (Windows)
    • check-neutral = @github-actions/JS Test (Windows)
    • check-skipped = @github-actions/JS Test (Windows)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Conventional Commit title
    • check-neutral = @github-actions/Conventional Commit title
    • check-skipped = @github-actions/Conventional Commit title

@mergify
mergify Bot merged commit 07999a2 into master Oct 23, 2026
30 checks passed
@mergify
mergify Bot deleted the stack/tignear/fix/sv-interface-array-slices/bind-interface-array-slices-module-ports--14591b8b branch October 23, 2026 09:20
@mergify mergify Bot removed the queued Mergify queue entry label Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-ready Request merging through Mergify after required checks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant