Skip to content

perf(vpi): avoid metadata cloning during value access - #1668

Merged
mergify[bot] merged 1 commit into
masterfrom
stack/tignear/fix/taxi-compatibility/avoid-metadata-cloning-value-access--64bd0bd3
Oct 21, 2026
Merged

mergify[bot] merged 1 commit into
masterfrom
stack/tignear/fix/taxi-compatibility/avoid-metadata-cloning-value-access--64bd0bd3

Conversation

@tignear

@tignear tignear commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Resolve compact signal storage separately from owned reflection metadata.
Read widths, signedness and array leaf status without copying signal names
or dimensions, and acquire the active host once per value snapshot. Copy only
the forced value/mask needed by a read instead of its deposited-value history.

Keep lazy array addressing, four-state mask offsets, callback identity and
write ordering unchanged. A release profile of Taxi's eight-bit 1x1 crossbar
shows value_bits taking about 12% of sampled CPU time before this change
and about 7% afterwards. Four alternating fixed-seed runs of the no-pause
stress test per version reduce median user CPU time from 28.34s to 26.47s
(6.6%); each run executes one test and skips the other eleven.

Validation: VPI unit/API tests (46 passed), opt-in cocotb integration tests
(4 passed), formatting and affected-crate Clippy. Existing regressions cover
multidimensional and bit-packed arrays, sibling preservation, alias identity,
forces, callbacks and session ownership.

Depends-On: #1661

Resolve compact signal storage separately from owned reflection metadata.
Read widths, signedness and array leaf status without copying signal names
or dimensions, and acquire the active host once per value snapshot. Copy only
the forced value/mask needed by a read instead of its deposited-value history.

Keep lazy array addressing, four-state mask offsets, callback identity and
write ordering unchanged. A release profile of Taxi's eight-bit 1x1 crossbar
shows value_bits taking about 12% of sampled CPU time before this change
and about 7% afterwards. Four alternating fixed-seed runs of the no-pause
stress test per version reduce median user CPU time from 28.34s to 26.47s
(6.6%); each run executes one test and skips the other eleven.

Validation: VPI unit/API tests (46 passed), opt-in cocotb integration tests
(4 passed), formatting and affected-crate Clippy. Existing regressions cover
multidimensional and bit-packed arrays, sibling preservation, alias identity,
forces, callbacks and session ownership.

Change-Id: I64bd0bd37b50d4aeef39f321aed85612dcdeae9b
@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-21T00:07:29.661927Z
We couldn’t complete this review. Comment @codex review to try again.
69645dc 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 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 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

@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 36 minutes 49 seconds in the queue, including 44 minutes 17 seconds running CI.

Required conditions to merge

Base automatically changed from stack/tignear/fix/taxi-compatibility/reject-empty-cocotb-test-selections--93316d15 to master October 21, 2026 02:37
@mergify
mergify Bot merged commit accd0e7 into master Oct 21, 2026
31 checks passed
@mergify
mergify Bot deleted the stack/tignear/fix/taxi-compatibility/avoid-metadata-cloning-value-access--64bd0bd3 branch October 21, 2026 02:38
@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