Skip to content

Latest commit

 

History

History
 
 

preprocessor

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

SystemVerilog (Pseudo) Preprocessor

verible-verilog-preprocessor is a collection of preprocessor-like tools, (but does not include a fully-featured Verilog preprocessor yet.)

Strip Comments {#strip-comments}

Removing comments can be useful for preparing to obfuscate code for sharing with EDA tool vendors.

$ verible-verilog-preprocessor strip-comments FILE

This strips comments from a Verilog/SystemVerilog source file, including comments nested inside macro definition bodies and macro call arguments.

Comments are actually replaced by an equal number of spaces (and newlines) to preserve the byte offsets and line ranges of the original text. This makes it easier to trace back diagnostics on obfuscated code back to the original code.