Repository navigation
fix(sv): preserve inherited constants in parameter alias evaluation - #1682
Merged
mergify[bot] merged 1 commit intoOct 21, 2026
Conversation
Taxi DMA address masks lost their initializers when their replication counts used local aliases of interface parameters. Prefix evaluation only saw locally collected numbers, so it could not resolve an alias of an inherited constant even though that constant was available for declaration lowering. Seed a separate incremental evaluation environment with inherited values and types, masking names owned by the current scope before rebinding the local prefix. Preserve imported X/Z literals and use the existing initializer shape context for constant binding. Retain the separate range projection and update only each declaration's binding keys. Add shared coverage for package aliases, wide replication masks, generate scopes, signedness and X/Z. Extend the existing interface specialization case with the same mask pattern. Structural checks at 16, 64 and 256 declarations verify one binding per declaration and no per-declaration range-environment copies. Validation: - Shared SV suite: 3297 passed, 90 existing ignores across backend variants. - SV analyzer: 772 passed, 3 existing ignores; project CLI: 17 passed. - Verilator passes the numeric package case and extended interface case; its adapter does not support the four-state case. Icarus passes both package cases; its existing interface-port exclusion is retained. - Affected-crate all-target Clippy, formatting and diff checks pass. - Original Taxi cc70b270b910d369ab1ad7b3855e76399fd461f1 at O1, cocotb 2.0.1, seed 12345: AXI CDMA [8-0] passes all 4 tests and AXI DMA [0-8] passes all 8 tests. Sources and upstream parameters are unchanged; this does not cover every DMA configuration. Change-Id: Id0a3d57a401cd41a228a26cd9a256b9b12e8884f
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Contributor
Author
|
This pull request is part of a Mergify stack:
|
Contributor
|
Queued — the merge queue status continues in this comment ↓. |
Base automatically changed from
stack/tignear/fix/taxi-compatibility/defer-indexed-part-select-base-binding-until--57adbbd3
to
master
October 21, 2026 05:33
Contributor
Merge Queue Status
This pull request spent 2 hours 50 minutes 18 seconds in the queue, including 1 hour 38 minutes 21 seconds running CI. Required conditions to merge
|
This was referenced Oct 21, 2026
mergify
Bot
deleted the
stack/tignear/fix/taxi-compatibility/preserve-inherited-constants-param-alias--d0a3d57a
branch
October 21, 2026 15:16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Taxi DMA address masks lost their initializers when their replication counts used local aliases of interface parameters. Prefix evaluation only saw locally collected numbers, so it could not resolve an alias of an inherited constant even though that constant was available for declaration lowering.
Seed a separate incremental evaluation environment with inherited values and types, masking names owned by the current scope before rebinding the local prefix. Preserve imported X/Z literals and use the existing initializer shape context for constant binding. Retain the separate range projection and update only each declaration's binding keys.
Add shared coverage for package aliases, wide replication masks, generate scopes, signedness and X/Z. Extend the existing interface specialization case with the same mask pattern. Structural checks at 16, 64 and 256 declarations verify one binding per declaration and no per-declaration range-environment copies.
Validation:
Depends-On: #1678