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] [-full]
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 in protect blocks will be encrypted.
Use
-fullto fully encrypt the file. The file must not contain any protect blocks; they are added automatically before encryption.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 in protect blocks will be encrypted.
Use
-fullto fully encrypt every compiled file. Files must not contain any protect blocks; they are added automatically before encryption.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.
PROTECT BLOCKS
A region of source code marked for encryption, such as code between “`pragma protect begin” and “`pragma protect end” or between “`protect” and “'endprotect”.
`pragma protect begin
// protected code
`pragma protect end
`protect
// protected code
`endprotect
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
Fully encrypt a single file without adding protect blocks using inline encryption options:
$DVT_HOME/bin/dvt_encrypt.sh file -author "..." -author_info "..." -in file.sv -out file.svp -full
Encrypt all project files containing protect blocks using inline encryption options:
$DVT_HOME/bin/dvt_encrypt.sh project -cmd args.f -author "..." -author_info "..."
Encrypt all project files without adding protect blocks using inline encryption options:
$DVT_HOME/bin/dvt_encrypt.sh project -cmd args.f -author "..." -author_info "..." -full