User Guide
Contents
v
Part two Design entry
Preparing a design for simulation 55Chapter 3
Chapter overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
Checklist for simulation setup . . . . . . . . . . . . . . . . . . . . . . . . . 56
Typical simulation setup steps . . . . . . . . . . . . . . . . . . . . . . . 56
Advanced design entry and simulation setup steps . . . . . . . . . . . 57
When netlisting fails or the simulation
does not start . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
Things to check in your design . . . . . . . . . . . . . . . . . . . . 58
Things to check in your system configuration . . . . . . . . . . . . 59
Using parts that you can simulate . . . . . . . . . . . . . . . . . . . . . . . 60
Vendor-supplied parts . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Part naming conventions . . . . . . . . . . . . . . . . . . . . . . . . 61
Finding the part that you want . . . . . . . . . . . . . . . . . . . . 62
Passive parts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
Breakout parts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Behavioral parts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
Using global parameters and expressions for values . . . . . . . . . . . . 67
Global parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Declaring and using a global parameter . . . . . . . . . . . . . . . 67
Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
Specifying expressions . . . . . . . . . . . . . . . . . . . . . . . . . 69
Defining power supplies . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
For the analog portion of your circuit . . . . . . . . . . . . . . . . . . . 74
Defining stimuli . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
Analog stimuli . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
Using VSTIM and ISTIM . . . . . . . . . . . . . . . . . . . . . . . . 76
If you want to specify multiple stimulus types . . . . . . . . . . . 77
Things to watch for . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
Unmodeled parts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
Do this if the part in question is from the OrCAD libraries . . . . 79
Check for this if the part in question is custom-built . . . . . . . . 81
Unconfigured model, stimulus, or include files . . . . . . . . . . . . . 81
Check for this . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
Unmodeled pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
Check for this . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
Missing ground . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
Check for this . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
Missing DC path to ground . . . . . . . . . . . . . . . . . . . . . . . . 84
Check for this . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
Pspug.book Page v Wednesday, November 11, 1998 1:14 PM