Skip to content

fix(sv): bind unpacked array values in module parameter arguments - #1857

Merged
mergify[bot] merged 1 commit into
masterfrom
stack/tignear/fix/sv-array-parameter-elements/bind-unpacked-array-values-module-param-arguments--cd56e125
Oct 24, 2026
Merged

mergify[bot] merged 1 commit into
masterfrom
stack/tignear/fix/sv-array-parameter-elements/bind-unpacked-array-values-module-param-arguments--cd56e125

Conversation

@tignear

@tignear tignear commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

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.

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

chatgpt-codex-connector Bot commented Oct 24, 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-24T05:51:12.382002Z ba12d66 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 24, 2026
@mergify mergify Bot added the queued Mergify queue entry label Oct 24, 2026
@mergify

mergify Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
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
  • 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 48f908e into master Oct 24, 2026
30 checks passed
@mergify
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
@mergify mergify Bot removed the queued Mergify queue entry label Oct 24, 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