Closed adrian1001 closed 1 year ago
That's not possible. The program you are using cannot match what you sent above, given that output.
You are right: I just ran my own code stand-alone and the output is correct. I overlooked that my framework which is calling the very same code contains a pre-pre-processing and messes with the comments.
Sorry for the fuss!
If a line-comment in the verilog code contains the word "module", then Verilog::Preproc keeps "module" and the rest of line and returns it as if it was a code line, despite the fact that keep_comments=0.
Sample code:
Source "multiplier.sv":
Output:
The correct output with all comments stripped should be: