Skip to content

fix: use total width for compound vector aliases - #44

Merged
jpgrayson merged 1 commit into
SanDisk-Open-Source:masterfrom
vera-rubin:fix/compound-alias-width
Oct 19, 2026
Merged

jpgrayson merged 1 commit into
SanDisk-Open-Source:masterfrom
vera-rubin:fix/compound-alias-width

Conversation

@vera-rubin

Copy link
Copy Markdown
Contributor

Compound-vector aliases put component-width tuples in the VCD size field, producing $var reg (2, 2) ! copy $end.

We now use total bit width for alias declarations, matching register_var(), retaining component widths for value packing. We added one parametrized regression test covering three compound sizes, same and child scope aliases, and packed value changes.

On CPython 3.12.3, all 694 existing tests passed before the fix and three new cases failed. Afterward, all 697 tests, Ruff lint and formatting checks, mypy, and basedpyright pass.

Fixes #43

— ChipLab

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage is 97.025% — vera-rubin:fix/compound-alias-width into SanDisk-Open-Source:master. No base build found for SanDisk-Open-Source:master.

@jpgrayson
jpgrayson merged commit 17b62e6 into SanDisk-Open-Source:master Oct 19, 2026
11 checks passed

This branch was successfully deployed

1 active deployment
pypi — b7d54f61 Deployed Oct 19, 2026 by vera-rubin via publish #120
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Compound-vector aliases write a tuple in the VCD size field

3 participants