Skip to content
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

[FIRRTL] Add layer support to ExtractInstances #7807

Merged
merged 3 commits into from
Nov 13, 2024

Conversation

seldridge
Copy link
Member

Update the ExtractInstances pass to not extract modules which are instantiated under layers. For situations where a module is both in the design and under a layer, the module will be extracted up to the point where the instance is outside the design. This is the same behavior that the pass does if a module is instantiated by both the test harness and the design.

Update the `ExtractInstances` pass to not extract modules which are
instantiated under layers.  For situations where a module is both in the
design and under a layer, the module will be extracted up to the point
where the instance is outside the design.  This is the same behavior that
the pass does if a module is instantiated by both the test harness and the
design.

Signed-off-by: Schuyler Eldridge <schuyler.eldridge@sifive.com>
Copy link
Contributor

@prithayan prithayan left a comment

Choose a reason for hiding this comment

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

Should be good to go, once the comments are addressed.

lib/Dialect/FIRRTL/Transforms/ExtractInstances.cpp Outdated Show resolved Hide resolved
@seldridge seldridge merged commit cc3fecf into main Nov 13, 2024
4 checks passed
@seldridge seldridge deleted the dev/seldridge/firrtl-ExtractInstances-layers branch November 13, 2024 18:14
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.

2 participants