User Guide
Defining part properties needed for simulation
143
PSPICETEMPLATE examples
Simple resistor (R) template
The R part has:
• two pins: 1 and 2
• two required properties: REFDES and VALUE
Template
R^@REFDES %1 %2 @VALUE
Sample translation
R_R23 abc def 1k
where REFDES equals R23, VALUE equals 1k, and R
is connected to nets abc and def.
Voltage source with optional AC and DC specifications (VAC)
template
The VAC part has:
• two properties: AC and DC
• two pins: + and -
Template
V^@REFDES %+ %- ?DC|DC=@DC| ?AC|AC=@AC|
Sample translation
V_V6 vp vm DC=5v
where REFDES equals V6, VSRC is connected to nodes
vp and vm, DC is set to 5v, and AC is undefined.
Sample translation
V_V6 vp vm DC=5v AC=1v
where, in addition to the settings for the previous
translation, AC is set to 1v.
Pspug.book Page 143 Wednesday, November 11, 1998 1:14 PM