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

Limit length of generated signal names #566

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

Limit length of generated signal names #566

mkorbel1 opened this issue Feb 20, 2025 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@mkorbel1
Copy link
Contributor

Motivation

If you're not careful, it's possible to generate really really long names for signals in generated outputs (e.g. SystemVerilog). For example, if you use lots of & gates, you might get a signal "a_and_b_and_c_and_..." if you don't name any of the intermediates. Eventually, these could be thousands of characters long (or more!). Downstream EDA tools don't love that.

Desired solution

Some way to limit the length of SystemVerilog signal names in generated outputs. Perhaps this should be a configurable option in SystemVerilogSynthesizer?

There's some consideration about how to best handle it, since you still need to have room for uniquification of signal names, so a straight truncation at the maximum alone is not sufficient.

Alternatives considered

No response

Additional details

No response

@mkorbel1 mkorbel1 added enhancement New feature or request help wanted Extra attention is needed labels Feb 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 help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant