Skip to content

fix(sv): defer interface-dependent declarations before binding array ports - #2107

Merged
mergify[bot] merged 1 commit into
masterfrom
stack/tignear/fix/sv-interface-array-binding/defer-interface-dependent-declarations-binding--1a8a70a4
Oct 26, 2026
Merged

mergify[bot] merged 1 commit into
masterfrom
stack/tignear/fix/sv-interface-array-binding/defer-interface-dependent-declarations-binding--1a8a70a4

Conversation

@tignear

@tignear tignear commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

Modules with interface array ports evaluated their declaration scope before
binding any interface formals. A localparam such as b.W therefore failed even
when b was a scalar interface port next to an unrelated array port.

Include unbound interface formals in declaration dependency deferral, alongside
local interface instances. Evaluate their dependent parameters, types and port
widths after binding has populated the interface symbols.

Add a shared regression covering scalar and array interface parameters,
transitive declarations, interface-dependent input widths, parameter overrides,
and ascending and descending array bounds through all five SV backends.

Validation on master f2934be:

  • SystemVerilog and diagnostic suites: 5240 passed, 20 existing skips.
  • SV analyzer: 819 passed, 3 ignored; 2 doctests passed.
  • Analyzer and Celox consumer clippy, formatting and diff checks passed.
  • New shared case passed Verilator 5.052. Icarus 13.0 rejects interface
    port declarations, so it could not simulate this case.

…ports

Modules with interface array ports evaluated their declaration scope before
binding any interface formals. A localparam such as b.W therefore failed even
when b was a scalar interface port next to an unrelated array port.

Include unbound interface formals in declaration dependency deferral, alongside
local interface instances. Evaluate their dependent parameters, types and port
widths after binding has populated the interface symbols.

Add a shared regression covering scalar and array interface parameters,
transitive declarations, interface-dependent input widths, parameter overrides,
and ascending and descending array bounds through all five SV backends.

Validation on master f2934be:
- SystemVerilog and diagnostic suites: 5240 passed, 20 existing skips.
- SV analyzer: 819 passed, 3 ignored; 2 doctests passed.
- Analyzer and Celox consumer clippy, formatting and diff checks passed.
- New shared case passed Verilator 5.052. Icarus 13.0 rejects interface
  port declarations, so it could not simulate this case.

Change-Id: I1a8a70a40d9679109baba4e0a5d98a212e8469d8
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 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-26T05:31:28.960526Z — 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 26, 2026
@mergify mergify Bot added the queued Mergify queue entry label Oct 26, 2026
@mergify

mergify Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

This pull request spent 41 minutes 40 seconds in the queue, including 31 minutes 40 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 f80551c into master Oct 26, 2026
23 checks passed
@mergify
mergify Bot deleted the stack/tignear/fix/sv-interface-array-binding/defer-interface-dependent-declarations-binding--1a8a70a4 branch October 26, 2026 06:36
@mergify mergify Bot removed the queued Mergify queue entry label Oct 26, 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