OpenSTA logo OpenSTA SCL Reference
Including Text from Other Source Files

Including Text from Other Source Files

The INCLUDE command allows you to combine several source files into a single source file at compilation time. The included files may contain any valid SCL syntax that would make sense at the point of the INCLUDE statement. INCLUDEs may be nested up to a depth of 10, including the original file.

The INCLUDE command can appear at any point within a Script source file, the only caveat is that the include file contents must be valid in their expanded entirety at that point in the script. The normal usage of INCLUDE files is to make variables or subroutines available across mutliple Scripts whilst only defining them within a single file.

Command Definition:

INCLUDE filename

filename

A quoted character string which defines the name of the source file to be included. The file must be located in the Scripts\Include directory within the OpenSTA Repository.

Example:

INCLUDE 'globals.inc'

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