User`s guide
Usin
g
the Create Subcircuit Command 4
-37
Usin
g
the Create
Subcircuit Command
The Create Subcircuit command in the schematic editor creates
a subcircuit netlist definition for the displayed level of hierarchy
and all lower levels in your schematic.
The schematic editor does the following things for you:
• Maps any named interface ports at the active level of
hierarchy to terminal nodes in the PSpice .SUBCKT
statement.
• Writes the subcircuit definition to a file named
schematic_name.sub.
Before you can use the subcircuit definition in your schematic,
you need to:
• Create a symbol for the subcircuit.
• Configure the schematic_name.sub file so PSpice A/D
knows where to find it.
To create a subcircuit definition for a portion of
y
our schematic
1
Move to the level of hierarchy for which you want to create
a subcircuit (.SUBCKT) definition.
2
From the Draw menu, select Get New Part.
3
Place interface ports for your subcircuit:
• IF_IN for input ports
• IF_OUT for output ports
4
From the File menu, select Save.
5
From the Tools menu, select Create Subcircuit to generate
the subcircuit definition and save it to
schematic_name.sub.
6
In the schematic editor, from the Analysis menu, select
Library and Include Files, and then configure
The Create Subcircuit command
will not help you create a
hierarchical desi
g
n. You need to
do this yourself before usin
g
the
Create Subcircuit command. For
information on hierarchical
schematics and how to create
them, refer to your
MicroSim
Schematics User’s Guide
.