rohd icon indicating copy to clipboard operation
rohd copied to clipboard

Support tagging of generated SystemVerilog `begin` and `end`

Open mkorbel1 opened this issue 1 year ago • 1 comments

Motivation

Some users have extra preferences about the readability of generated SystemVerilog for their applications. It would be nice to use the tagging mechanism for if, case, etc. in SV to help along those lines.

Desired solution

Every ‘begin’ should have the ability to add a name for it.

if (a) begin : if_name
   .
   .
end else begin : else_name
   .
   .
end // if_name

This should be simple to add to things like Iff, ElseIf, Else, as well as If and Case.

mkorbel1 avatar Aug 11 '22 16:08 mkorbel1

Some lint tool checks need this feature, so there is some urgency to get this implemented to make life easier for users producing SystemVerilog that passes through those tools.

mkorbel1 avatar Dec 22 '22 16:12 mkorbel1