rohd icon indicating copy to clipboard operation
rohd copied to clipboard

Mark bit ranges in swizzles in generated SystemVerilog

Open mkorbel1 opened this issue 9 months ago • 0 comments
trafficstars

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 avatar Jan 21 '25 16:01 mkorbel1