User Guide

C
-
6 Optimizin
g
a Netlist-Based Desi
g
n
Example:
Parameterizin
g
the
Circuit File
The following circuit file (call it dbias.cir) contains the
netlist for a voltage source/resistor/diode series combination.
* diode bias circuit
.LIB
V1 1 0 5v
R1 1 2 5k
D1 2 0 D1N914
.DC V1 LIST 5V
.Probe
.END
Suppose you want to optimize the bias current in a voltage
source/resistor/diode series combination. Specifically, your goal
is to achieve a current of 1 mA through the diode. To realize this
goal, you must vary the value of resistor R1 (call the variable
value, or parameter, Rbias).
To parameterize the circuit file
1
Create the
dbias.par file containing the parameter
definition for Rbias using this syntax:
.PARAM Rbias = 5k
2
Parameterize the circuit file as shown (added or changed
items are in bold):
* diode bias circuit
.INC “dbias.par” ; this line added
.LIB
V1 1 0 5v
R1 1 2 {Rbias} ; this line modified
D1 2 0 D1N914
.DC V1 LIST 5V
.Probe
.END
Now you are ready to activate the PSpice Optimizer,
complete setup, and run the optimization.