set_defvar

The set_defvar command sets an internal variable in the Designer system. You must specify at least one argument for this command.

 

set_defvar variable value

Arguments

Variable must be a valid Designer internal variable and could be accompanied by an optional value. If the value is provided, the variable is set the value. If the value is null the variable is reset.

Supported Families

All

Exceptions

None.

Example

Example 1:

 

set_defvar “FORMAT” “VHDL”

Sets the FORMAT internal variable to VHDL.

 

Example 2:

set variableToSet "DESIGN"

set valueOfVariable “VHDL”

set_defvar $variableToSet $valueOfVariable

 

These commands set the FORMAT variable to VHDL, shows the use of variables for this command.

See Also

get_defvar