-
Notifications
You must be signed in to change notification settings - Fork 298
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
[CreateSiFiveMetadata] Generate firrtl.class instead of om.class #6736
Conversation
e7fc23e
to
bdb3a0b
Compare
bdb3a0b
to
7f369c6
Compare
d376c05
to
369ce58
Compare
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.
I took another brief look, and I think this is looking good. Is this ready for a final review?
Thanks Mike, yes, this is ready for final review. |
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.
Some minor comments. The one thing I think we need to consider is whether we're keeping the instance graph up to date or not. I don't think the current PR is valid, since it adds classes and objects but then says we can preserve the instance graph.
Thanks Mike, yes this pass is updating the hierarchy, the analysis is no longer preserved. |
7533430
to
20fccce
Compare
…vm#6736) Update the object model generated by the CreateSiFiveMetadata pass to generate firrtl dialect, instead of om dialect. Ensure all firrtl.class associated with the metadata are instantiated inside a top level firrtl.class SiFive_Metadata, which is instantiated inside the top level firrtl.module. This is required for ensuring that subsequent passes can lower it correctly. Also generate all the hierarchical paths to the memory and associates them with the path operation for the memory metadata.
Update the object model generated by the CreateSiFiveMetadata pass to generate
firrtl
dialect, instead ofom
dialect.Ensure all
firrtl.class
associated with the metadata are instantiated inside a top levelfirrtl.class
SiFive_Metadata
, which is instantiated inside the top levelfirrtl.module
. This is required for ensuring that subsequent passes can lower it correctly.Generate all the hierarchical paths to the memory and associate them with the path operation for the memory metadata.