Skip to content

[core] Allow for domains to use connect operators#5320

Open
seldridge wants to merge 1 commit into
mainfrom
dev/seldridge/support-connect-of-domains
Open

[core] Allow for domains to use connect operators#5320
seldridge wants to merge 1 commit into
mainfrom
dev/seldridge/support-connect-of-domains

Conversation

@seldridge
Copy link
Copy Markdown
Member

Allow for domains to be connected using the standard connection operators.
This matches behavior for properties and probes which do not support
connects in FIRRTL, but instead allow for Chisel connections which then
lower to these.

This avoids a slightly sharp edge where previously connection operators
could be used, e.g., :<=, but their use would result in a Chisel runtime
error.

Assisted-by: pi.dev:claude-opus-4-7

Release Notes

Add support for connection operators for domains. Previously, only domain.define could be used to connect domains.

Allow for domains to be connected using the standard connection operators.
This matches behavior for properties and probes which do not support
connects in FIRRTL, but instead allow for Chisel connections which then
lower to these.

This avoids a slightly sharp edge where previously connection operators
could be used, e.g., `:<=`, but their use would result in a Chisel runtime
error.

Assisted-by: pi.dev:claude-opus-4-7
Signed-off-by: Schuyler Eldridge <schuyler.eldridge@sifive.com>
@seldridge seldridge added the Feature New feature, will be included in release notes label May 12, 2026
Copy link
Copy Markdown
Member

@adkian-sifive adkian-sifive left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but not knowing anything about domain implementation I wonder if the referential equality is good enough for the trait domain.Type -- that is, should this actually be erroring if two domains are structurally equivalent but with different instantiations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature New feature, will be included in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants