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

Prune unused, unnamed module outputs when generating SV #590

Open
mkorbel1 opened this issue Mar 20, 2025 · 0 comments
Open

Prune unused, unnamed module outputs when generating SV #590

mkorbel1 opened this issue Mar 20, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@mkorbel1
Copy link
Contributor

Motivation

If someone, for example, calls a swizzle on a bus but doesn't use the output, the result still shows up in the SystemVerilog. This isn't functionally necessary, and also is probably not wanted if it wasn't named.

Desired solution

Detect when (certain?) modules are instantiated who have no outputs used and omit them from generated SystemVerilog.

This should probably only apply to special cases, since there may be custom SystemVerilog modules where you indeed do want there to be signals left around. Maybe it should be a flag in the SystemVerilog mixin?

Alternatives considered

No response

Additional details

No response

@mkorbel1 mkorbel1 added the enhancement New feature or request label Mar 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant