Use Verible Code Obfuscator for obfuscation.
Obfuscate foo.v and save dictionary with all replacements:
verible-verilog-obfuscate --save_map obf.map < foo.v > foo_obf.v
Remove all comments inside bar.v:
verible-verilog-preprocessor strip-comments bar.v
Steps:
- Save list with all Verilog/SystemVerilog sources to file
obf.files. - Add module name and interface signals to
ignore.map. - Run script
python3 obfuscate.py.
Output artifacts:
merged.v- all sources without comments merged to one fileobfuscated.v- obfuscatedmerged.vobfuscated_nf.v-obfuscated.vwithout any formattingobf.map- dictionary of replacements