Include Files in Circuit Netlists

The .INCLUDE statement identifies a file to insert in its entirety into the netlist at the point of the .INCLUDE statement:

.INCLUDE file_reference

Include file pathnames, and all pathnames used in the Desktop, must refer to subdirectories using a syntax that is compatible with the platform operating system. Some operating systems use a forward slash (/) as a path separator, while others use a backslash (\). The following example uses a backslash, which is the valid separator used in Windows™ systems. The Desktop ensures the consistent and compatible use of slash designators in netlist file paths for each of the following platforms: Windows and Linux™. For more information see File References.

For example:

.INCLUDE 'diode_model_statements'

.INCLUDE 'models\diode_models'

.INCLUDE 'C:\simulator\model_statements\diode_model_statements'

The complete contents of the include file are added to the calling netlist. The included file can contain further .INCLUDE files to be processed.

Note:

None of the included files can refer to any other file in the sequence of included files. A loop of included files causes an unrecoverable error condition. However, Nexxim cannot detect this error in advance, so no warning message is given.