Open System Testing Architecture

TOC PREV NEXT INDEX



INTEGER Statement

Description:

This statement defines a variable with a positive or negative integral value. In SCL, integers are defined as being 4 bytes long, giving a range of -2147483648 to +2147483647.

Arrays of integer variables can be defined, with a maximum of three dimensions. For further information about arrays, see Variable Arrays.

Format:
 INTEGER name {[dimensions]}|{values} {, options}
Parameters:
name

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

dimensions

The dimensions of the array to be allocated for this variable. Up to three dimensions can be specified, separated by commas, each comprising one or two numbers.

If a dimension has only one number, the elements in that dimension range from 1 to the number specified. If two numbers are specified, they must be separated by a colon (":"); the elements in this dimension range from the first number to the second. Note that if "dimensions" is specified, "values" may not be.

values

A list or range of integer values to be associated with the variable.

Note that if "values" is specified, "dimensions" may not be. For further information on variable values, see Variable Values.

options

A list of variable options. For further information on variable options, see Variable Options.

Examples:
 INTEGER loop-count
 INTEGER fred (1-99), SCRIPT
 INTEGER values [50:100,20]

See also:

The DEFINITIONS Section


OpenSTA.org
Mailing Lists
Further enquiries
Documentation feedback
CYRANO.com
TOC PREV NEXT INDEX