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

opt_clean: Add -coarse mode #4267

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

opt_clean: Add -coarse mode #4267

wants to merge 2 commits into from

Conversation

povik
Copy link
Member

@povik povik commented Mar 7, 2024

    -coarse
        perform a fast, conservative clean-up in which no public wires are
        removed and wire usage is analyzed at a coarse level without
        distinguishing individual bits

@@ -31,6 +31,156 @@ PRIVATE_NAMESPACE_BEGIN

using RTLIL::id2cstr;

bool should_be_kept(Design *d, Cell *cell)
Copy link
Member Author

Choose a reason for hiding this comment

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

Before we merge (if we merge), we should get rid of this should_be_kept function and use keep_cache and the other code that's already there.

@povik
Copy link
Member Author

povik commented Mar 7, 2024

This mode preserves the direction of connections (see issue #3426).

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.

None yet

1 participant