User Guide
Chapter 4 Creating and editing models
116
• Configure the DESIGN_NAME.SUB file so PSpice
knows where to find it.
To create a subcircuit definition for a portion of your design
To create a part for the subcircuit
1 In the schematic page editor, move to the level of
hierarchy for which you want to create a subcircuit
(.SUBCKT) definition.
2 From the Place menu, choose Hierarchical Port.
3 From the File menu, choose Save.
4 In the Project Manager, from the Tools menu, choose
Create Netlist.
5 Select the PSpice tab.
6 In the Options frame, select Create SubCircuit Format
Netlist.
7 Click OK to generate the subcircuit definition and save
it to DESIGN_NAME.SUB.
To configure the subcircuit file
1 In the schematic page editor, from the PSpice menu,
choose Edit Simulation Settings to display the
Simulation Settings dialog box.
2 Click either the Libraries tab or the Include Files tab,
then configure DESIGN_NAME.SUB as either a model
library or an include file (see Configuring model libraries
on page 4-120).
3 If necessary, refine the subcircuit definition for the
new part or for a part instance on your schematic page
using the Model Editor (see Editing model text
on
page 4-110).
4 From Capture’s Edit menu, choose Part to start the
part editor.
5 Create a new part for the subcircuit definition.
One way to do this is to use the part wizard. See
Chapter 5,
Creating parts for models for a complete
discussion.
Re
f
inements can inc
l
u
d
e exten
d
ing t
h
e
subcircuit definition using the optional
nodes construct, OPTIONAL:, the variable
parameters construct, PARAMS:, and the
.FUNC and local .PARAM commands.
Pspug.book Page 116 Wednesday, November 11, 1998 1:14 PM