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

Mark bit ranges in swizzles in generated SystemVerilog #551

Open
mkorbel1 opened this issue Jan 21, 2025 · 0 comments
Open

Mark bit ranges in swizzles in generated SystemVerilog #551

mkorbel1 opened this issue Jan 21, 2025 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@mkorbel1
Copy link
Contributor

Motivation

It would be nice to mark the bit positions/ranges in swizzles so that the SystemVerilog could become more readable. For example:

assign my_swizzle = {
  c, // 4:2
  b, // 1
  a  // 0
};

Desired solution

When generating the output of a Swizzle, mark the bit positions with comments to make the SV more readable

Alternatives considered

No response

Additional details

No response

@mkorbel1 mkorbel1 added enhancement New feature or request good first issue Good for newcomers labels Jan 21, 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 good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant