zachjs / sv2v

SystemVerilog to Verilog conversion
BSD 3-Clause "New" or "Revised" License
497 stars 50 forks source link

[Feature Request] Copy comments over #288

Open Willyarma opened 1 week ago

Willyarma commented 1 week ago

Would it possible to have the ability to have all the comments copied over from the source file?

zachjs commented 1 week ago

sv2v's internal representation wasn't necessarily designed with this feature in mind (it's better suited for the conversion logic). The possible ways of supporting this feature I have considered so far would be fairly hacky and wouldn't necessarily cover all comments or put them all in the "right" place in the output.

You may find the existing -v/--verbose mode useful. It can also give you an impression for the existing level of comment granularity.

Can you please describe your intended use case for this feature? What do you intend to do with this output, and how will it fit into your flow?