OrCAD PSpice User's Guide.pdf

(14089 KB) Pobierz
PSpice A/D User's Guide
OrCAD PSpice ® A/D
User’s Guide
37675684.004.png
 
Copyright © 1998 OrCAD, Inc. All rights reserved.
Trademarks
OrCAD, OrCAD Layout, OrCAD Express, OrCAD Capture, OrCAD PSpice, and
OrCAD PSpice A/D are registered trademarks of OrCAD, Inc. OrCAD Capture CIS,
and OrCAD Express CIS are trademarks of OrCAD, Inc.
Microsoft, Visual Basic, Windows, Windows NT, and other names of Microsoft
products referenced herein are trademarks or registered trademarks of Microsoft
Corporation.
All other brand and product names mentioned herein are used for identification
purposes only, and are trademarks or registered trademarks of their respective
holders.
Part Number 60-30-632
First edition 30 November 1998
Technical Support (503) 671-9400
Corporate offices (503) 671-9500
OrCAD Japan K.K. 81-45-621-1911
OrCAD UK Ltd. 44-1256-381-400
Fax (503) 671-9501
General email info@orcad.com
Technical Support email techsupport@orcad.com
World Wide Web http://www.orcad.com
OrCAD Design Network (ODN) http://www.orcad.com/odn
9300 SW Nimbus Ave.
Beaverton, OR 97008 USA
37675684.005.png 37675684.006.png
Contents
Before you begin xxvii
Welcome to OrCAD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxvii
OrCAD PSpice A/D overview . . . . . . . . . . . . . . . . . . . . . . . xxviii
How to use this guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxix
Typographical conventions . . . . . . . . . . . . . . . . . . . . . . . xxix
Related documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxx
Online Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxxi
If you don’t have the standard PSpice A/D package . . . . . . . . . . xxxii
If you have PSpice A/D Basics . . . . . . . . . . . . . . . . . . . . . xxxii
If you have the demo CD-ROM . . . . . . . . . . . . . . . . . . . . xxxv
OrCAD demo CD-ROM . . . . . . . . . . . . . . . . . . . . . . xxxv
What’s New . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxxvi
Part one
Simulation primer
Chapter 1
Things you need to know 41
Chapter overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
What is PSpice A/D? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Analyses you can run with PSpice A/D . . . . . . . . . . . . . . . . . . . 43
Basic analyses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
DC sweep & other DC calculations . . . . . . . . . . . . . . . . . . 43
AC sweep and noise . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Transient and Fourier . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Advanced multi-run analyses . . . . . . . . . . . . . . . . . . . . . . . 46
Parametric and temperature . . . . . . . . . . . . . . . . . . . . . . 46
Monte Carlo and sensitivity/worst-case . . . . . . . . . . . . . . . 47
Analyzing waveforms with PSpice A/D . . . . . . . . . . . . . . . . . . . 48
What is waveform analysis? . . . . . . . . . . . . . . . . . . . . . . . . 48
Using PSpice A/D with other OrCAD programs . . . . . . . . . . . . . . 49
Using Capture to prepare for simulation . . . . . . . . . . . . . . . . 49
37675684.001.png
Contents
What is the Stimulus Editor? . . . . . . . . . . . . . . . . . . . . . . . 49
What is the Model Editor? . . . . . . . . . . . . . . . . . . . . . . . . 50
Files needed for simulation . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Files that Capture generates . . . . . . . . . . . . . . . . . . . . . . . 50
Netlist file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Circuit file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Other files that you can configure for simulation . . . . . . . . . . . 51
Model library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Stimulus file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Include file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Configuring model library, stimulus, and
include files . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Files that PSpice A/D generates . . . . . . . . . . . . . . . . . . . . . . . 54
Waveform data file . . . . . . . . . . . . . . . . . . . . . . . . . . 54
PSpice output file . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Chapter 2
Simulation examples 55
Chapter overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
Example circuit creation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Finding out more about setting up your design . . . . . . . . . . . . 61
Running PSpice A/D . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Performing a bias point analysis . . . . . . . . . . . . . . . . . . . . . 62
Using the simulation output file . . . . . . . . . . . . . . . . . . . . . 64
Finding out more about bias point calculations . . . . . . . . . . . . 65
DC sweep analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
Setting up and running a DC sweep analysis . . . . . . . . . . . . . . 66
Displaying DC analysis results . . . . . . . . . . . . . . . . . . . . . . 68
Finding out more about DC sweep analysis . . . . . . . . . . . . . . 71
Transient analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
Finding out more about transient analysis . . . . . . . . . . . . . . . 76
AC sweep analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
Setting up and running an AC sweep analysis . . . . . . . . . . . . . 77
AC sweep analysis results . . . . . . . . . . . . . . . . . . . . . . . . 79
Finding out more about AC sweep and noise analysis . . . . . . . . 81
Parametric analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
Setting up and running the parametric analysis . . . . . . . . . . . . 83
Analyzing waveform families . . . . . . . . . . . . . . . . . . . . . . 85
Finding out more about parametric analysis . . . . . . . . . . . . . . 88
Performance analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
Finding out more about performance analysis . . . . . . . . . . . . . 91
iv
37675684.002.png
Contents
Part two
Design entry
Chapter 3
Preparing a design for simulation 95
Chapter overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
Checklist for simulation setup . . . . . . . . . . . . . . . . . . . . . . . . . 96
Typical simulation setup steps . . . . . . . . . . . . . . . . . . . . . . . 96
Advanced design entry and simulation setup steps . . . . . . . . . . . 97
When netlisting fails or the simulation
does not start . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
Things to check in your design . . . . . . . . . . . . . . . . . . . . 98
Things to check in your system configuration . . . . . . . . . . . . 99
Using parts that you can simulate . . . . . . . . . . . . . . . . . . . . . . 100
Vendor-supplied parts . . . . . . . . . . . . . . . . . . . . . . . . . . 101
Part naming conventions . . . . . . . . . . . . . . . . . . . . . . . 101
Finding the part that you want . . . . . . . . . . . . . . . . . . . 102
Passive parts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
Breakout parts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
Behavioral parts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
Using global parameters and expressions for values . . . . . . . . . . . 107
Global parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
Declaring and using a global parameter . . . . . . . . . . . . . . 107
Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
Specifying expressions . . . . . . . . . . . . . . . . . . . . . . . . 109
Defining power supplies . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
For the analog portion of your circuit . . . . . . . . . . . . . . . . . . 114
For A/D interfaces in mixed-signal circuits . . . . . . . . . . . . . . 114
Default digital power supplies . . . . . . . . . . . . . . . . . . . 114
Custom digital power supplies . . . . . . . . . . . . . . . . . . . 114
Defining stimuli . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
Analog stimuli . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
Using VSTIM and ISTIM . . . . . . . . . . . . . . . . . . . . . . . 117
If you want to specify multiple stimulus types . . . . . . . . . . 118
Digital stimuli . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
Things to watch for . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120
Unmodeled parts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120
Do this if the part in question is from the OrCAD libraries . . . 120
Check for this if the part in question is custom-built . . . . . . . 122
Unconfigured model, stimulus, or include files . . . . . . . . . . . . 122
Check for this . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
Unmodeled pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
Check for this . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124
v
37675684.003.png
Zgłoś jeśli naruszono regulamin