Repository navigation
fix(sv): defer interface-dependent declarations before binding array ports - #2107
Merged
Conversation
…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
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 41 minutes 40 seconds in the queue, including 31 minutes 40 seconds running CI. Required conditions to merge
|
40 of 71 tasks
mergify
Bot
deleted the
stack/tignear/fix/sv-interface-array-binding/defer-interface-dependent-declarations-binding--1a8a70a4
branch
October 26, 2026 06:36
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.
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:
port declarations, so it could not simulate this case.