vrename - change signal names across many Verilog files
vrename filename.v filename.v ...
vrename
Vrename will allow a signal to be changed across all levels of the design hiearchy using a three step process. (It actually includes module names, macros, and other definitions, so those can be changed too.)
First, use vrename --list file.v file2.v ....
vrename --list file.v file2.v ....
This creates a signals.vrename file which is edited manually.
Last, use vrename --change file.v file2.v ....
vrename --change file.v file2.v ....
vrename takes the following arguments:
Displays this message and program version and exits.
Displays program version and exits.
Take the signals file signals.vrename in the current directory and change the signals in the design as specified by the signals file. Either --list or --change must be specified.
Create a list of signals in the design and write to signals.vrename. Either --list or --change must be specified.
Include a cross reference of where the signals are used. --list must also be specified.
Read the changes list, allows --list to append to the changes already read.
Don't write the actual changes, just report the files that would be changed.
With --list, randomize the signal renames. With --change, compress spaces and comments and apply those renames listed in the file (presumably created with vrename --list --crypt).
The comment /*ENCRYPT_ME*/ must be included in all files that need to be encrypted. If a signal should not be encrypted, it can simply be set in the signals.vrename list to be changed to itself. After encrypting, you may want to save the signals.vrename file so you have a key for decoding, and also so that it may be used for the next encryption run. When used in this way for the next encryption run, only new signals will get new encryptions, all other encryptions will be encrypted the same.
Use the given directory for output instead of the current directory.
Use the given filename instead of "signals.vrename".
Verilog::Parser
The latest version is available from CPAN or http://veripool.com/verilog-perl.html.
http://veripool.com/verilog-perl.html
Wilson Snyder <wsnyder@wsnyder.org>
To install Verilog::Parse, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Verilog::Parse
CPAN shell
perl -MCPAN -e shell install Verilog::Parse
For more information on module installation, please visit the detailed CPAN module installation guide.