Repository navigation
fix(sv): bind unpacked array values in module parameter arguments - #1857
Merged
Conversation
Taxi forwarded unpacked parameter elements to scalar child parameters, but the constant-binding path retained the array name after resolving the selection coordinates. Apply the existing immutable initializer and preserve the selected width, signedness and X/Z mask. Keep whole-array conditional arguments in the typed array binding path. Check both branch shapes, including the unselected branch, then select the array for a fully resolved integral predicate. Nested conditions are handled iteratively; ambiguous and nonintegral array predicates remain unsupported. Add six shared regressions covering generated numeric/string elements, signedness, bounds, package multidimensional arrays, 129-bit values, specializations, four-state conversion, and whole-array conditionals. Consumer tests reject runtime arguments and incompatible inactive branches. Validation after syncing master c317767 (except where noted): - Full SystemVerilog suite: 4,425 passed, 20 existing ignored. Focused regressions: 32 passed across five backends and two rejection tests. - Analyzer: 796 passed, 3 existing ignored; frontend: 5 passed. Affected doctests passed. The shared suite passed all 30 tests before syncing master. - Affected analyzer/frontend libraries and tests and the SV consumer harness passed Clippy with -D warnings; formatting and diff checks passed. - All four retained original minimal reproductions now return FRONTEND_OK. - Slang 12 elaborates all six exact shared sources without semantic errors and confirms the expected child parameter values. - Verilator 5.052: three passed; one package-array compile error; one conditional-array ordering mismatch; one four-state case unsupported by the adapter. The ordering expectation follows IEEE 1800-2023 7.6 and agrees with Slang. Standalone lint reproduces the package-array rejection. - Icarus 13 rejects all six sources because unpacked array parameters are unsupported. No baseline or exclusions were changed to conceal failures. Before syncing with current master, replayed the same 25 Taxi configurations with original RTL/parameters, release frontend binaries, two workers, 120-second limits, two-state mode and the previous diagnostic settings. All 18 GT_TX_DIFFCTRL and seven STAT_PREFIX_STR blockers advance to undriven GT nets: 19 gt_rxdata and six gt_rxbyteisaligned. There are zero timeouts. These remain frontend errors; no complete FPGA-core configuration or upstream cocotb test pass is claimed. All 188 resolved upstream SV sources match the earlier hashes. Unrelated parameter arithmetic widening and wide scalar parameter array initializer limitations are retained as separate follow-up reproductions. Change-Id: Icd56e125c141961d6e79242b1fad03ccdb79b992
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 3 minutes 42 seconds in the queue, including 1 hour 32 minutes 15 seconds running CI. Required conditions to merge
|
This was referenced Oct 24, 2026
mergify
Bot
deleted the
stack/tignear/fix/sv-array-parameter-elements/bind-unpacked-array-values-module-param-arguments--cd56e125
branch
October 24, 2026 08: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.
Taxi forwarded unpacked parameter elements to scalar child parameters, but
the constant-binding path retained the array name after resolving the
selection coordinates. Apply the existing immutable initializer and preserve
the selected width, signedness and X/Z mask.
Keep whole-array conditional arguments in the typed array binding path.
Check both branch shapes, including the unselected branch, then select the
array for a fully resolved integral predicate. Nested conditions are handled
iteratively; ambiguous and nonintegral array predicates remain unsupported.
Add six shared regressions covering generated numeric/string elements,
signedness, bounds, package multidimensional arrays, 129-bit values,
specializations, four-state conversion, and whole-array conditionals.
Consumer tests reject runtime arguments and incompatible inactive branches.
Validation after syncing master c317767 (except where noted):
regressions: 32 passed across five backends and two rejection tests.
passed all 30 tests before syncing master.
harness passed Clippy with -D warnings; formatting and diff checks passed.
and confirms the expected child parameter values.
conditional-array ordering mismatch; one four-state case unsupported by
the adapter. The ordering expectation follows IEEE 1800-2023 7.6 and
agrees with Slang. Standalone lint reproduces the package-array rejection.
unsupported. No baseline or exclusions were changed to conceal failures.
Before syncing with current master, replayed the same 25 Taxi configurations
with original RTL/parameters,
release frontend binaries, two workers, 120-second limits, two-state mode
and the previous diagnostic settings. All 18 GT_TX_DIFFCTRL and seven
STAT_PREFIX_STR blockers advance to undriven GT nets: 19 gt_rxdata and six
gt_rxbyteisaligned. There are zero timeouts. These remain frontend errors;
no complete FPGA-core configuration or upstream cocotb test pass is claimed.
All 188 resolved upstream SV sources match the earlier hashes.
Unrelated parameter arithmetic widening and wide scalar parameter array
initializer limitations are retained as separate follow-up reproductions.