Skip to content

fix(vpi): expose unpacked arrays through lazy element handles - #1660

Merged
mergify[bot] merged 1 commit into
masterfrom
stack/tignear/fix/taxi-compatibility/expose-unpacked-arrays-lazy-element-handles--bb49f124
Oct 21, 2026
Merged

mergify[bot] merged 1 commit into
masterfrom
stack/tignear/fix/taxi-compatibility/expose-unpacked-arrays-lazy-element-handles--bb49f124

Conversation

@tignear

@tignear tignear commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Preserve declared unpacked bounds through frontend metadata, reflection and
native images. Expose multidimensional VPI arrays with lazy indexed handles,
correct names and bounds, per-element deposits and value-change callbacks.
Allocate metadata only for requested handles, including large sparse RAMs.

Keep original four-state mask offsets for strided subviews and restrict
partial writes to selected elements. For bit-packed arrays, use byte-window
read/modify/write so sibling elements and boundary bits remain intact without
copying the entire memory. Bump the native image schema to version 21 and
reject older images before decoding their payload.

Validation: VPI package and opt-in cocotb integration tests with cocotb
2.0.1 and 2.1.0; check packed element values and widths without requiring a
version-specific handle class. Cover widths 1/8/9/65
in two-state and four-state modes, multidimensional and descending bounds,
sibling preservation and callback identity; native executable/cache round
trips; frontend/runtime unit tests; NAPI/JS integration; formatting and Clippy.

Depends-On: #1659

@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-20T23:31:17.773707Z
We couldn’t complete this review. Comment @codex review to try again.
0cb4f14 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 commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor Author

This pull request is part of a Mergify stack:

# Pull Request Link
1 feat(cli): configure SV parameter literals and simulation state modes #1646
2 fix(sv): preserve Taxi aggregates and sparse FF memories #1659
3 fix(vpi): expose unpacked arrays through lazy element handles #1660 👈
4 fix(cli): reject empty cocotb test selections #1661
5 perf(vpi): avoid metadata cloning during value access #1668
6 perf(sv): reuse constants when expression contexts match #1669
7 feat(cli): configure SV simulation timescales #1672

@tignear tignear added the merge-ready Request merging through Mergify after required checks label Oct 20, 2026
Preserve declared unpacked bounds through frontend metadata, reflection and
native images. Expose multidimensional VPI arrays with lazy indexed handles,
correct names and bounds, per-element deposits and value-change callbacks.
Allocate metadata only for requested handles, including large sparse RAMs.

Keep original four-state mask offsets for strided subviews and restrict
partial writes to selected elements. For bit-packed arrays, use byte-window
read/modify/write so sibling elements and boundary bits remain intact without
copying the entire memory. Bump the native image schema to version 21 and
reject older images before decoding their payload.

Validation: VPI package and opt-in cocotb integration tests with cocotb
2.0.1 and 2.1.0; check packed element values and widths without requiring a
version-specific handle class. Cover widths 1/8/9/65
in two-state and four-state modes, multidimensional and descending bounds,
sibling preservation and callback identity; native executable/cache round
trips; frontend/runtime unit tests; NAPI/JS integration; formatting and Clippy.

Change-Id: Ibb49f1242a780dc1b9ef369b9841def4678fbad2
@tignear
tignear force-pushed the stack/tignear/fix/taxi-compatibility/expose-unpacked-arrays-lazy-element-handles--bb49f124 branch from 0cb4f14 to d77308f Compare October 21, 2026 00:07
@tignear
tignear force-pushed the stack/tignear/fix/taxi-compatibility/preserve-taxi-aggregates-sparse-ff-memories--009aa878 branch from d922bbe to 7407115 Compare October 21, 2026 00:07
@tignear

tignear commented Oct 21, 2026

Copy link
Copy Markdown
Contributor Author

Revision history

# Type Changes Reason Date
1 initial 0cb4f14 2026-10-21 00:07 UTC
2 content 0cb4f14 → d77308f Replay after correcting the lower PR coverage statement; source tree unchanged.

Make the packed-element test work with cocotb 2.0.1 and 2.1.0 by checking packed values and widths instead of a …
2026-10-21 00:07 UTC

@mergify

mergify Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

This pull request spent 1 hour 34 minutes 1 second in the queue, including 1 hour 42 seconds running CI.

Required conditions to merge
  • check-success = Conventional Commit title
  • check-success = Queue validation
  • depends-on = celox-sim/celox#1659 [⛓️ fix(sv): preserve Taxi aggregates and sparse FF memories #1659]
  • 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/preserve-taxi-aggregates-sparse-ff-memories--009aa878 to master October 21, 2026 02:34
@mergify
mergify Bot merged commit 012a75c into master Oct 21, 2026
37 of 41 checks passed
@mergify
mergify Bot deleted the stack/tignear/fix/taxi-compatibility/expose-unpacked-arrays-lazy-element-handles--bb49f124 branch October 21, 2026 02:35
@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