Command Reference 2. Synopsys Commands get_design_parameter
NAME
get_design_parameter
Returns the value of a parameter on a
parameterized design object. The
parameter can be a generic in VHDL or a
parameter in Verilog.
SYNTAX
int get_design_parameter parameter_name [-quiet]
string parameter_name
ARGUMENTS
parameter_name Name of parameter for which to search.
-quiet Turns off warning messages that would
otherwise be issued if a parameter name
is not found or is not assigned a value.
DESCRIPTION
Searches the parameter value string of the
current_design object for the specified parameter name
and returns an integer value. A value of -1 is
returned if the parameter does not exist or has no
value.
EXAMPLES
This example finds the parameter "N" and obtains its
value:
dc_shell> get_design_parameter N
8
In this example, an error is issued because the
parameter "M" is not found:
dc_shell> get_design_parameter M
Error: Parameter 'M' does not exist.
-1
The following command produces an error because the
parameter "N" is not assigned a value:
V3.1 Synopsys Inc. 1988-1994. All rights reserved. 2-1
get_design_parameter 2. Synopsys Commands Command Reference
dc_shell> get_design_parameter N
Error: Parameter 'N' has no value.
-1
2-2 Synopsys Inc. 1988-1994. All rights reserved. V3.1