Skip to content

[FIRRTL] Improve domain port naming in InferDomains pass#10037

Draft
seldridge wants to merge 1 commit intomainfrom
dev/seldridge/firrtl-infer-domains-improve-naming
Draft

[FIRRTL] Improve domain port naming in InferDomains pass#10037
seldridge wants to merge 1 commit intomainfrom
dev/seldridge/firrtl-infer-domains-improve-naming

Conversation

@seldridge
Copy link
Copy Markdown
Member

Inferred domain ports are now named based on their origin (instance name
and port name) rather than just the domain type name. This makes it
easier to trace where domains come from in the design.

For example, a domain port that originates from instance 'bar' port 'A'
is now named 'bar_A' instead of 'ClockDomain' or 'ClockDomain_0'.

This change tracks domain origins through the unification process and
uses them when generating port names, falling back to the domain type
name when no origin is available.

AI-assisted-by: Augment (Claude Sonnet 4.5)

Inferred domain ports are now named based on their origin (instance name
and port name) rather than just the domain type name. This makes it
easier to trace where domains come from in the design.

For example, a domain port that originates from instance 'bar' port 'A'
is now named 'bar_A' instead of 'ClockDomain' or 'ClockDomain_0'.

This change tracks domain origins through the unification process and
uses them when generating port names, falling back to the domain type
name when no origin is available.

AI-assisted-by: Augment (Claude Sonnet 4.5)
Signed-off-by: Schuyler Eldridge <schuyler.eldridge@sifive.com>
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.

1 participant