Skip to content

fix(sv): lower loop-indexed packed word part-selects - #1752

Merged
mergify[bot] merged 1 commit into
masterfrom
stack/tignear/fix/sv-loop-part-selects/lower-loop-indexed-packed-word-part-selects--6d1f2581
Oct 22, 2026
Merged

mergify[bot] merged 1 commit into
masterfrom
stack/tignear/fix/sv-loop-part-selects/lower-loop-indexed-packed-word-part-selects--6d1f2581

Conversation

@tignear

@tignear tignear commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

Procedural loops selecting bytes from multidimensional packed words or
implicitly typed packed parameters failed with "indexed part-select start".
Accept deferred starts for the selected packed word and constant parameter
metadata, preserving preceding indices and the index expression width/sign.
This lets normal loop unrolling and optimization handle expressions such as
words[n][i8 +: 8] and ID[8(last-i) +: 8].

Add three portable regressions covering ascending/descending packed ranges,
masked writes, generated memory banks, and string parameter ROM bytes.

Validation:

  • Full SV backend harness: 3873 passed, 20 existing ignored; analyzer unit
    tests: 784 passed, 3 existing ignored, on master a061e13.
  • Affected library/harness Clippy, cargo fmt, and diff checks pass.
  • All four related procedural-loop cases pass Verilator and Icarus.
  • Shared suite unit tests: 46 passed, 2 existing ignored (base 4467534).
  • Unchanged upstream Taxi sources pass all 88 cocotb tests across seven
    representative configurations (DMA RAM x2, XFCP APB/AXI/AXI-Lite/I2C/switch),
    using O1 and two-state simulation with no skipped tests. This runtime replay
    used base 4467534; the latest-base checks above cover the combined tree.

Procedural loops selecting bytes from multidimensional packed words or
implicitly typed packed parameters failed with "indexed part-select start".
Accept deferred starts for the selected packed word and constant parameter
metadata, preserving preceding indices and the index expression width/sign.
This lets normal loop unrolling and optimization handle expressions such as
words[n][i*8 +: 8] and ID[8*(last-i) +: 8].

Add three portable regressions covering ascending/descending packed ranges,
masked writes, generated memory banks, and string parameter ROM bytes.

Validation:
- Full SV backend harness: 3873 passed, 20 existing ignored; analyzer unit
  tests: 784 passed, 3 existing ignored, on master a061e13.
- Affected library/harness Clippy, cargo fmt, and diff checks pass.
- All four related procedural-loop cases pass Verilator and Icarus.
- Shared suite unit tests: 46 passed, 2 existing ignored (base 4467534).
- Unchanged upstream Taxi sources pass all 88 cocotb tests across seven
  representative configurations (DMA RAM x2, XFCP APB/AXI/AXI-Lite/I2C/switch),
  using O1 and two-state simulation with no skipped tests. This runtime replay
  used base 4467534; the latest-base checks above cover the combined tree.

Change-Id: I6d1f2581123bd6805227a49d01c9edb22f4517a8
@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-22T13:26:24.096787Z
We couldn’t complete this review. Comment @codex review to try again.
02e37d4 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 17 minutes 38 seconds in the queue, including 1 hour 15 minutes 24 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 8857fcd into master Oct 22, 2026
30 checks passed
@mergify
mergify Bot deleted the stack/tignear/fix/sv-loop-part-selects/lower-loop-indexed-packed-word-part-selects--6d1f2581 branch October 22, 2026 15:56
@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