Skip to content

Inline input-only modules #8739

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

rwy7
Copy link
Contributor

@rwy7 rwy7 commented Jul 18, 2025

Add a pass which inlines input-only modules. This functionality was previously performed by extract-test-code, but when extract-test-code is disabled, we still need to perform this transformation. This transformation is notable because it ignores don't touch annotations.

The code in this pass is largely a copy-paste of parts of extract-test-code.

Add a pass which inlines input-only modules. This functionality was previously
performed by extract-test-code, but when extract-test-code is disabled, we
still need to perform this transformation. This transformation is notable
because it ignores don't touch annotations.

The code in this pass is largely a copy-paste of parts of extract-test-code.
@uenoku
Copy link
Member

uenoku commented Jul 18, 2025

IMO this pass may not be required if fixupEmptyModule is added in verilog codegen. The transformation was added just for preventing empty module issues in the synthesis.

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