Skip to content

fix(sv): defer indexed part-select base binding until types are available - #1678

Merged
mergify[bot] merged 1 commit into
masterfrom
stack/tignear/fix/taxi-compatibility/defer-indexed-part-select-base-binding-until--57adbbd3
Oct 21, 2026
Merged

mergify[bot] merged 1 commit into
masterfrom
stack/tignear/fix/taxi-compatibility/defer-indexed-part-select-base-binding-until--57adbbd3

Conversation

@tignear

@tignear tignear commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Runtime casts in an indexed part-select base were bound during preliminary validation as constant expressions, rejecting valid Taxi DMA selects with a constant-cast-operand error. Validate the positive constant width there and let normal expression lowering bind the variable base with complete type information, as required by IEEE 1800-2023 11.5.1.

Add a shared regression for numeric and typedef casts in runtime read and write bases, including truncating indices.

Validation:

  • Shared SV suite: 3287 passed, 90 existing ignores across the backend variants; indexed-select group: 298 passed.
  • New shared case passes Verilator and Icarus execution.
  • SV analyzer: 770 passed, 3 existing ignores; project CLI: 17 passed.
  • Original Taxi AXI CDMA [8-0] and AXI DMA [0-8] builds pass the former cast error and stop at separate combinational expression lowering failures for read_addr_next and addr_next. Neither is counted as an upstream runtime pass.
  • Formatting and affected-crate all-target Clippy pass.

Depends-On: #1677

…able

Runtime casts in an indexed part-select base were bound during preliminary validation as constant expressions, rejecting valid Taxi DMA selects with a constant-cast-operand error. Validate the positive constant width there and let normal expression lowering bind the variable base with complete type information, as required by IEEE 1800-2023 11.5.1.

Add a shared regression for numeric and typedef casts in runtime read and write bases, including truncating indices.

Validation:
- Shared SV suite: 3287 passed, 90 existing ignores across the backend variants; indexed-select group: 298 passed.
- New shared case passes Verilator and Icarus execution.
- SV analyzer: 770 passed, 3 existing ignores; project CLI: 17 passed.
- Original Taxi AXI CDMA [8-0] and AXI DMA [0-8] builds pass the former cast error and stop at separate combinational expression lowering failures for read_addr_next and addr_next. Neither is counted as an upstream runtime pass.
- Formatting and affected-crate all-target Clippy pass.

Change-Id: I57adbbd3abcd3c0e4761b3deb63d5232558a7f27
@tignear

tignear commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor Author

This pull request is part of a Mergify stack:

# Pull Request Link
1 feat(cli): configure SV simulation timescales #1672
2 fix(sv): fill unbased parameter overrides to their declared width #1677
3 fix(sv): defer indexed part-select base binding until types are available #1678 👈
4 fix(sv): preserve inherited constants in parameter alias evaluation #1682

@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-21T03:09:36.484165Z
We couldn’t complete this review. Comment @codex review to try again.
40433f0 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 21, 2026
@mergify mergify Bot added the queued Mergify queue entry label Oct 21, 2026
@mergify

mergify Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

This pull request spent 1 hour 4 minutes 43 seconds in the queue, including 39 minutes 15 seconds running CI.

Required conditions to merge
  • check-success = Conventional Commit title
  • check-success = Queue validation
  • depends-on = celox-sim/celox#1677 [⛓️ fix(sv): fill unbased parameter overrides to their declared width #1677]
  • 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

Base automatically changed from stack/tignear/fix/taxi-compatibility/fill-unbased-param-overrides-their-declared-width--f5f1b4a1 to master October 21, 2026 05:02
@mergify
mergify Bot merged commit 9216b9b into master Oct 21, 2026
31 checks passed
@mergify
mergify Bot deleted the stack/tignear/fix/taxi-compatibility/defer-indexed-part-select-base-binding-until--57adbbd3 branch October 21, 2026 05:33
@mergify mergify Bot removed the queued Mergify queue entry label Oct 21, 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