-
Notifications
You must be signed in to change notification settings - Fork 396
[FIRRTL] Add anonymous domain create op #9296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Add an anonymous domain create operation. This is used to model domains that are fully self-contained within a FIRRTL circuit and are not reachable from any external port. Signed-off-by: Schuyler Eldridge <[email protected]>
dtzSiFive
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this! Generally looks great, left some feedback.
| } | ||
|
|
||
| def DomainCreateAnonOp : FIRRTLOp<"domain.anon", [ | ||
| ParentOneOf<["firrtl::FModuleOp", "firrtl::LayerBlockOp"]>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WhenOp, MatchOp ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. I'm going to use the same parents as HardwareDeclOp, but not use that tablegen class as it pulls in a requirement that these have a name. Fixed in: 6fd1f85
|
Maybe FIRRTL Emitter needs touching, probably just skip these operations? |
Yes, just dropping these is the right thing. I'll take a look at that shortly... This may be kind of weird as these could get routed through wires. However, I think the right thing is to drop both the anonymous domain and any domain define user. WDYT? |
Add an anonymous domain create operation. This is used to model domains
that are fully self-contained within a FIRRTL circuit and are not
reachable from any external port.