Skip to content

add flatten -nocleanup option #5037

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

Merged
merged 1 commit into from
Apr 22, 2025
Merged

add flatten -nocleanup option #5037

merged 1 commit into from
Apr 22, 2025

Conversation

nakengelhardt
Copy link
Member

What are the reasons/motivation for this change?

Some (third-party) analysis passes work only on flattened modules, but still want to report back results for each module in the hierarchy.

Explain how this is achieved.

Add an option to not delete the submodules when running flatten. (The functionality is already there, just needs a flag.)

If applicable, please suggest to reviewers how they can test the change.

Load a hierarchical design (with a top module), run flatten -nocleanup, observe the number of modules being more than 1, but no module instantiating another module.

@nakengelhardt
Copy link
Member Author

Confirmed working by customer.

@nakengelhardt nakengelhardt merged commit f27fb1a into main Apr 22, 2025
43 checks passed
@nakengelhardt nakengelhardt deleted the flatten_nocleanup branch April 22, 2025 15:48
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