OpenSTA logo OpenSTA SCL Reference
CONSTANT Command

CONSTANT Command

This command defines a variable like object which has a static value in a Script. If you want to define a named value for use in your Script(s) then using a CONSTANT is much more efficient than using a variable.

The value of a constant may be an integer value or a quoted character string.

Constants can be used in any situation where a literal of the same type (i.e. character or integer) can be used, for example in a value list.

Command Definition:

CONSTANT name = value

name

The name of the constant. This must be a valid OpenSTA Dataname.

value

A quoted character string or an integer value.

Examples:

CONSTANT TRUE = 1
CONSTANT PROMPT = 'Enter Value: '
CONSTANT SEARCHSTRING = ' "TERMINATE" '

<<<
prev page
^^^
section start
>>>
next page