Product Documentation
Spectre Circuit Simulator Reference
Product Version 23.1, September 2023

Pspice_include File (pspice_include)

Description

Spectre supports PSPICE netlist format targeting to include PCB components that are modeled in PSPICE format. This solution does not support PSPICE designs. A top-level netlist and control statement needs to be defined in Spectre or SPICE format. The recommended approach is to define a subckt in PSPICE netlist format and to instantiate the subckt in a Spectre netlist.

A PSPICE netlist can be included in Spectre by using the following include statements.

pspice_include <file> (Spectre format) 
.pspice_include <file> (SPICE format)  

PSPICE file inclusion allows the circuit description to be spread over several files. The include statement itself is replaced by the contents of the file named. If the name given is not an absolute path specification, it is taken relative to the directory of the file currently being read.

The PSPICE file defined in the pspice_include statement is required to contain only PSPICE netlist format. A PSPICE file may also contain include statements such as .inc or .lib to include other PSPICE files. The pspice_include statement cannot be used in a PSPICE netlist.

When Spectre-simulator opens a pspice_include file then it automatically switches to PSPICE mode. When in PSPICE mode, all elements and device models used in the PSPICE netlist are simulated using PSPICE default values and equations. Switching from PSPICE mode to Spectre mode inside a PSPICE file is not supported. After reading the include file, Spectre restores the language processing mode to what it was before the file was included, and continues reading the original file starting at the line after the include statement. Lines cannot be continued across file boundaries.

Definition

 Pspice_include "filename"

Return to top
 ⠀
X