Skip to content

fix(sv): forward named unpacked array parameters - #1744

Merged
mergify[bot] merged 1 commit into
masterfrom
stack/tignear/fix/sv-named-array-parameters/forward-named-unpacked-array-params--f43dcafa
Oct 22, 2026
Merged

mergify[bot] merged 1 commit into
masterfrom
stack/tignear/fix/sv-named-array-parameters/forward-named-unpacked-array-params--f43dcafa

Conversation

@tignear

@tignear tignear commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

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.

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

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 ⚠️ Failed 2026-10-22T08:43:31.095372Z
We couldn’t complete this review. Comment @codex review to try again.
cea51d8 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@tignear tignear added the merge-ready Request merging through Mergify after required checks label Oct 22, 2026
@mergify mergify Bot added the queued Mergify queue entry label Oct 22, 2026
@mergify

mergify Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
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
  • 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 9978c3b into master Oct 22, 2026
30 checks passed
@mergify
mergify Bot deleted the stack/tignear/fix/sv-named-array-parameters/forward-named-unpacked-array-params--f43dcafa branch October 22, 2026 12:04
@mergify mergify Bot removed the queued Mergify queue entry label Oct 22, 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