dvt_encrypt.sh
This script allows you to encrypt SystemVerilog source files for AMIQ EDA products (DVT IDE, Verissimo, Specador).
SYNTAX
dvt_encrypt.sh file
{ -author <string> -author_info <string> [-rsa_public_key <file>] | -use_recipe <file> }
-in <file> -out <file> [-force]
dvt_encrypt.sh project
{ -author <string> -author_info <string> [-rsa_public_key <file>] | -use_recipe <file> }
-cmd <file> [-force] [-full]
dvt_encrypt.sh gen_recipe
-author <string> -author_info <string> [-rsa_public_key <file>]
-out <file> [-force]
SUBCOMMANDS
fileEncrypt the
-in <file>and write the result to-out <file>.Only the sections wrapped between “`pragma protect begin … `pragma protect end” will be encrypted.
projectEncrypt every source file that takes part in the project’s build. The original files are never modified. For every encrypted file, the encrypted version is written next to it with a “p” appended to its extension (test.sv -> test.svp).
Only the file sections wrapped between “`pragma protect begin … `pragma protect end” will be encrypted.
Use
-fullto fully encrypt every compiled file. In this mode files must not contain any “`pragma protect begin … `pragma protect end”.gen_recipeGenerate an encryption recipe and write it to
-out <file>.The recipe is a customizable set of “`pragma protect” lines with encryption parameters (author, author info, public key). Use it with
-use_recipe <file>in thefileandprojectsubcommands so that all the encrypted files use the same parameters.
ENCRYPTION OPTIONS
-author <string>IP author written in the encryption recipe and description envelope using “`pragma protect author”
-author_info <string>IP author info written in the encryption recipe and description envelope using “`pragma protect author_info”
-rsa_public_key <file>Public key used to encrypt the files. When not specified, the latest built-in common key is used.
The key file must be a PEM file named: dvt_key_<VENDOR>_[<IP>]_YYYYMMDD.pem
COMMON OPTIONS
-forceUse it to overwrite an existing output file.
EXAMPLES
Generate encryption recipe with the built-in common public key:
$DVT_HOME/bin/dvt_encrypt.sh gen_recipe -author "..." -author_info "..." -out recipe.file
Generate encryption recipe with a vendor specific public key:
$DVT_HOME/bin/dvt_encrypt.sh gen_recipe -author "..." -author_info "..." -rsa_public_key dvt_vendor_ip_20261122.pem -out recipe.file
Encrypt a single file using an encryption recipe:
$DVT_HOME/bin/dvt_encrypt.sh file -use_recipe recipe.file -in file.sv -out file.svp
Encrypt a single file using inline encryption options:
$DVT_HOME/bin/dvt_encrypt.sh file -author "..." -author_info "..." -in file.sv -out file.svp
Encrypt all project files containing “`pragma protect begin … `pragma protect end” blocks using inline encryption options:
$DVT_HOME/bin/dvt_encrypt.sh project -cmd args.f -author "..." -author_info "..."
Encrypt all project files without adding “`pragma protect begin … `pragma protect end” blocks using inline encryption options:
$DVT_HOME/bin/dvt_encrypt.sh project -cmd args.f -author "..." -author_info "..." -full