rohd
rohd copied to clipboard
Mark bit ranges in swizzles in generated SystemVerilog
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