User guide
3-13
Compiling and Elaborating Your Design
• -pvalue
• -parameters
You specify a parameter with the -pvalue option. It has the following
syntax:
vcs -pvalue+hierarchical_name_of_parameter=value
For example:
vcs source.v -pvalue+test.d1.param1=33
You specify a file with the -parameters option. The file contains
command lines for changing values. A line in the file has the following
syntax:
assign value path_to_the_parameter
Here:
assign
Keyword that starts a line in the file.
value
New value of the parameter.
path_to_the_parameter
Hierarchical path to the parameter. This entry is similar to a Verilog
hierarchical name except that you use forward slash characters
(/), instead of periods, as the delimiters.
The following is an example of the contents of this file:
assign 33 test/d1/param1
assign 27 test/d1/param2