Repository navigation
fix(sv): forward named unpacked array parameters - #1744
Merged
Conversation
Passing a fixed-size unpacked array parameter by name, such as Child #(.Q(TABLE)), failed with a non-integer module parameter override. Bind the caller's array value and type before specializing the child, and check assignment compatibility while preserving element order, signedness, and four-state values. Reuse the bound initializers for simulation. Add shared regressions for parent specialization, opposite array bounds, package arrays, subarrays, multiple hierarchy levels, and X/Z values, plus rejections for incompatible array types. Retain focused external-tool observations and exact-case exclusions: Icarus 13.0 rejects unpacked array parameters; Verilator 5.052 reverses opposite-bound parameter values and rejects a constant subarray argument. Slang 12.0 accepts the four shared cases and independently confirms their bound parameter values. Validation: - Full SV behavioral suite: 3755 passed, 20 existing ignores, across five backends. - Analyzer unit tests: 784 passed, 3 existing ignores. - Test-suite unit tests: 46 passed, 2 existing ignores; retained-report checks: 3 passed. - cargo fmt --all -- --check and affected library/test Clippy with -D warnings. - Verilator passes whole-array forwarding; remaining external limitations are recorded with their original failures and Slang elaboration evidence. Taxi axis switch advances past its M_BASE override rejection, then stops at an existing unknown conditional-generate condition. An equivalent direct- pattern control on the previous master reproduces that next blocker; this change does not claim a complete Taxi cocotb pass. Change-Id: If43dcafa4cc2af8fd81f6bd5912a5bd29e7178f5
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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Contributor
Merge Queue Status
This pull request spent 1 hour 19 minutes 49 seconds in the queue, including 1 hour 6 minutes 51 seconds running CI. Required conditions to merge
|
This was referenced Oct 22, 2026
mergify
Bot
deleted the
stack/tignear/fix/sv-named-array-parameters/forward-named-unpacked-array-params--f43dcafa
branch
October 22, 2026 12:04
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.
Passing a fixed-size unpacked array parameter by name, such as
Child #(.Q(TABLE)), failed with a non-integer module parameter override.
Bind the caller's array value and type before specializing the child, and
check assignment compatibility while preserving element order, signedness,
and four-state values. Reuse the bound initializers for simulation.
Add shared regressions for parent specialization, opposite array bounds,
package arrays, subarrays, multiple hierarchy levels, and X/Z values, plus
rejections for incompatible array types. Retain focused external-tool
observations and exact-case exclusions: Icarus 13.0 rejects unpacked array
parameters; Verilator 5.052 reverses opposite-bound parameter values and
rejects a constant subarray argument. Slang 12.0 accepts the four shared
cases and independently confirms their bound parameter values.
Validation:
are recorded with their original failures and Slang elaboration evidence.
Taxi axis switch advances past its M_BASE override rejection, then stops at
an existing unknown conditional-generate condition. An equivalent direct-
pattern control on the previous master reproduces that next blocker;
this change does not claim a complete Taxi cocotb pass.