SPICE Circuit Simulation S P I

advertisement
SPICE Circuit Simulation
Simulation Program with
Integrated Circuit
Emphasis
Bruce Mayer, PE
Licensed Electrical & Mechanical Engineer
BMayer@ChabotCollege.edu
Chabot College Engineering 43
Sld 1 • Chabot College Engineering • Bruce Mayer, PE • BMayer@ChabotCollege.edu PSPICE_Install-n-DC.pptx
UCBerkeley SPICE Creators
•
•
•
•
•
Don Pederson, Prof.
Ron Rohrer, Prof.
Bob Berry
Shi-Ping Fan
Frank Jenkins
• Larry Nagel, Group
Leader
• Jesse Pipkin
• Steve Ratner
• Lynn Weber
Prof. Donald O. Pederson (September 30, 1925 - December 25, 2004) of UC Berkeley was a
pioneering visionary in solid-state circuit design. He was the originator and, with his students,
was the driving force behind the SPICE circuit simulation program, which has become the
ubiquitous simulation program for detailed digital, memory, and analog circuit design at the
transistor level throughout the industry, a position it has continued to maintain for over two
decades to the present time. SPICE was released into the public domain, and quite literally
spawned the EDA industry. His impact on the electronics industry was recognized most notably
by the IEEE in 1998, when he was named the recipient of the IEEE Medal of Honor. He became
a member of the National Academy of Engineering in 1974 and the National Academy of
Sciences in 1982, as well as receiving many other awards.
Sld 2 • Chabot College Engineering • Bruce Mayer, PE • BMayer@ChabotCollege.edu PSPICE_Install-n-DC.pptx
SPICE HISTORY
• First Released in 1971 and announced in
1973 at the Sixteenth Midwest Symposium
on Circuit Theory
– Rapidly adopted by universities and industry
in the early 1970’s
• SPICE 2G6 became the de facto industry
standard in the late 1970’s
– Why did this happen?
Sld 3 • Chabot College Engineering • Bruce Mayer, PE • BMayer@ChabotCollege.edu PSPICE_Install-n-DC.pptx
Origins of SPICE
• SPICE began as an innovative class project
under the direction of Ron Rohrer in the
academic year 1969-1970
• The class topic was circuit synthesis but
became a class on circuit simulation
– Students learned by doing --- They wrote a
simulator!
• The final judge of success was Don Pederson
– Larry Nagel was Liaison to Prof. Pederson
Sld 4 • Chabot College Engineering • Bruce Mayer, PE • BMayer@ChabotCollege.edu PSPICE_Install-n-DC.pptx
Why SPICE Was Successful
• FREE and in the Public Domain
• DC, AC, Transient, Noise, and
SensitivityAnalyses in the same program
• Built-in models for diodes, bipolar transistors,
MOSFETs, and JFETs
• Heavy use of SPICE by students led to many
improvements in robustness
– At the time, could handle fairly large circuits
• Written in fairly portable FORTRAN
Sld 5 • Chabot College Engineering • Bruce Mayer, PE • BMayer@ChabotCollege.edu PSPICE_Install-n-DC.pptx
SPICE2
• First released into the public domain in1975
• Contained all features of SPICE
• Data structures totally revamped to
incorporate dynamic memory allocation
• Thorough upgrade of DC convergence and
transient numerical integration algorithms
• About 8,000 lines of FORTRAN
• SPICE2 was used as a platform for research
that spawned hundreds of research projects
Sld 6 • Chabot College Engineering • Bruce Mayer, PE • BMayer@ChabotCollege.edu PSPICE_Install-n-DC.pptx
Industrial Use of SPICE2
• Many industrial research centers adopted
SPICE2 and developed proprietary versions
of the program, including
– Bell Labs (ADVICE), Texas Instruments
(TISPICE), Motorola (MCSPICE)
• Shawn and Kim Hailey formed Meta Software
(Campbell, CA) and modified a copy of
SPICE 2E into the most successful
version of a commercial
SPICE known as HSPICE
Sld 7 • Chabot College Engineering • Bruce Mayer, PE • BMayer@ChabotCollege.edu PSPICE_Install-n-DC.pptx
SPICE3
• In 1989, SPICE3 was released into the
public Domain
• This later version of SPICE3 was coded in
the C language and utilized the more
sophisticated data structures of C
• SPICE3 contains about 135,000 lines of
C code
• The latest version, 3F5, was released in 1993
Sld 8 • Chabot College Engineering • Bruce Mayer, PE • BMayer@ChabotCollege.edu PSPICE_Install-n-DC.pptx
Commercial Use of SPICE3
• The Company MicroSim adapted a version
of SPICE3 for the most popular of all SPICE
programs  PSPICE
• Many other companies utilized SPICE3 as a
platform for additional “alphabet SPICE”
programs; e.g. LTspice
Sld 9 • Chabot College Engineering • Bruce Mayer, PE • BMayer@ChabotCollege.edu PSPICE_Install-n-DC.pptx
UCBerkeley SPICE SpinOffs
•
•
•
•
•
•
•
Pspice  now owned by Cadence
Hspice  now owned by Synopsis
LTspice  by Linear Technology
TINA-TI  by DesignSoft, Texas Instruments
SIMetrix  SIMetrix Technologies
MultiSim  by National Instruments
Xyce  Parallel Electronic Simulator
by Sandia National Labs
Sld 10 • Chabot College Engineering • Bruce Mayer, PE • BMayer@ChabotCollege.edu PSPICE_Install-n-DC.pptx
More on SPICE from Inventor
• For More Info from someone who really
Knows (Dr. Laurence Nagel) see:
– http://www.omegaenterprises.net/The%20Origins%20of%20SPICE.
html
Laurence W. Nagel
Ronald A. Rohrer
Sld 11 • Chabot College Engineering • Bruce Mayer, PE • BMayer@ChabotCollege.edu PSPICE_Install-n-DC.pptx
Donald O. Pederson
DownLoad PSPICE 9.1
• Free From
Auburn
University
http://www.eng.auburn.edu/~troppel/91pspstu.exe
Sld 12 • Chabot College Engineering • Bruce Mayer, PE • BMayer@ChabotCollege.edu PSPICE_Install-n-DC.pptx
DownLoad PSPICE 9.1
Sld 13 • Chabot College Engineering • Bruce Mayer, PE • BMayer@ChabotCollege.edu PSPICE_Install-n-DC.pptx
Install PSPICE 9.1
Sld 14 • Chabot College Engineering • Bruce Mayer, PE • BMayer@ChabotCollege.edu PSPICE_Install-n-DC.pptx
Install PSPICE 9.1
• Accepting
Defaults
Sld 15 • Chabot College Engineering • Bruce Mayer, PE • BMayer@ChabotCollege.edu PSPICE_Install-n-DC.pptx
Install PSPICE 9.1
Sld 16 • Chabot College Engineering • Bruce Mayer, PE • BMayer@ChabotCollege.edu PSPICE_Install-n-DC.pptx
Release Notes PSPICE 9.1
Sld 17 • Chabot College Engineering • Bruce Mayer, PE • BMayer@ChabotCollege.edu PSPICE_Install-n-DC.pptx
Starting PSPICE in rm 1602
Find PSpice Design
Manager by Windows
Program Search - Click
In Dsgn Mgr Click PSpice
Icon to start “Schematics”
Click SECOND
Click FIRST
Sld 18 • Chabot College Engineering • Bruce Mayer, PE • BMayer@ChabotCollege.edu PSPICE_Install-n-DC.pptx
Sucessful Launch of PSPICE
• Now Follow
First
Example
in PSPICE
StudyGuide
Sld 19 • Chabot College Engineering • Bruce Mayer, PE • BMayer@ChabotCollege.edu PSPICE_Install-n-DC.pptx
Send
Icon to DeskTop
Sld 20 • Chabot College Engineering • Bruce Mayer, PE • BMayer@ChabotCollege.edu PSPICE_Install-n-DC.pptx
SPICE Simulation GamePlan
Sld 21 • Chabot College Engineering • Bruce Mayer, PE • BMayer@ChabotCollege.edu PSPICE_Install-n-DC.pptx
First Simulation  2 × 𝑉𝑆 , 𝐼𝑆 , 𝑅𝑠
Sld 22 • Chabot College Engineering • Bruce Mayer, PE • BMayer@ChabotCollege.edu PSPICE_Install-n-DC.pptx
Get Parts from Part Browser
Sld 23 • Chabot College Engineering • Bruce Mayer, PE • BMayer@ChabotCollege.edu PSPICE_Install-n-DC.pptx
ROTATE and/or FLIP Parts
• Follow
Example
In Study
Guide
Sld 24 • Chabot College Engineering • Bruce Mayer, PE • BMayer@ChabotCollege.edu PSPICE_Install-n-DC.pptx
Wiring Parts
• EVERY Circuit MUST
have a GND – Error
results otherwise
Sld 25 • Chabot College Engineering • Bruce Mayer, PE • BMayer@ChabotCollege.edu PSPICE_Install-n-DC.pptx
ReNaming & ValueSetting
• Double Click R1 NAME
• Double Click I1 VALUE
Sld 26 • Chabot College Engineering • Bruce Mayer, PE • BMayer@ChabotCollege.edu PSPICE_Install-n-DC.pptx
Copy Completed Schematic
• Accept Default
Paste form
• Select Area to copy with
Mouse Pointer
• Copy to ClipBoard
Sld 27 • Chabot College Engineering • Bruce Mayer, PE • BMayer@ChabotCollege.edu PSPICE_Install-n-DC.pptx
Complete PSPICE Schematic
Design Schematic
PSPICE Schematic
• NOTE: use DB9M for
Arrow
Sld 28 • Chabot College Engineering • Bruce Mayer, PE • BMayer@ChabotCollege.edu PSPICE_Install-n-DC.pptx
Save .sch File
Use FILE  SAVE
Use Descriptive FileName
Sld 29 • Chabot College Engineering • Bruce Mayer, PE • BMayer@ChabotCollege.edu PSPICE_Install-n-DC.pptx
SPICE NetList
• Original FORTRAN Representation of Ckt
• See Study Guide
for
NetList Discussion
Sld 30 • Chabot College Engineering • Bruce Mayer, PE • BMayer@ChabotCollege.edu PSPICE_Install-n-DC.pptx
Simulate the Circuit
Double
Click
Sld 31 • Chabot College Engineering • Bruce Mayer, PE • BMayer@ChabotCollege.edu PSPICE_Install-n-DC.pptx
Simulate the Circuit
Default is Bias Pt
Sld 32 • Chabot College Engineering • Bruce Mayer, PE • BMayer@ChabotCollege.edu PSPICE_Install-n-DC.pptx
Caveat BoobyTrap
• The SPACE
between “4” & “mA”
caused an ERROR
in the Simulation
Sld 33 • Chabot College Engineering • Bruce Mayer, PE • BMayer@ChabotCollege.edu PSPICE_Install-n-DC.pptx
Units IMPLIED by Symbol
• NO need Include “V” or “A” (or Ω either)
Sld 34 • Chabot College Engineering • Bruce Mayer, PE • BMayer@ChabotCollege.edu PSPICE_Install-n-DC.pptx
Simulation RESULT
• Showing ALL I’s & V’s
Sld 35 • Chabot College Engineering • Bruce Mayer, PE • BMayer@ChabotCollege.edu PSPICE_Install-n-DC.pptx
Result  Io & Vo Only
• Hand
Delete
UnWanted
Current
Displays
Sld 36 • Chabot College Engineering • Bruce Mayer, PE • BMayer@ChabotCollege.edu PSPICE_Install-n-DC.pptx
Result  Io & Vo Only
Sld 37 • Chabot College Engineering • Bruce Mayer, PE • BMayer@ChabotCollege.edu PSPICE_Install-n-DC.pptx
Changing Colors & LineWidths
• Suggest making Width
greater for all Circuit
elements, including wires
Sld 38 • Chabot College Engineering • Bruce Mayer, PE • BMayer@ChabotCollege.edu PSPICE_Install-n-DC.pptx
OutPut File (MS NotePad)
Sld 39 • Chabot College Engineering • Bruce Mayer, PE • BMayer@ChabotCollege.edu PSPICE_Install-n-DC.pptx
Full OutPut File
**** 01/08/11 14:24:30 *********** Evaluation PSpice
(Nov 1999) **************
C:\WorkingFiles\Bruce_Files\Chabot\Course_Planning\Engr4
3_Circuits\E43_Labs\E43_Labs_1101\PSPICE_dc_Fig526_1101.sch
****
CIRCUIT DESCRIPTION
********************************************************
* Schematics Version 9.1 - Web Update 1
•Sat Jan 08 14:24:30 2011
** Analysis setup **
.OP
.OP
* From [PSPICE NETLIST] section of pspiceev.ini:
.lib "nom.lib“
.INC "PSPICE_dc_Fig5-26_1101.net“
**** INCLUDING PSPICE_dc_Fig5-26_1101.net ****
•Schematics Netlist *
I_I1
0 $N_0001 DC 4m
R_Rc
Vo $N_0001 2k
V_V2
$N_0002 $N_0001 6
R_Ra
$N_0002 Vo 2k
V_V1
$N_0002 0 12
R_Rb
0 Vo 3k
**** RESUMING PSPICE_dc_Fig5-26_1101.cir ****
.INC "PSPICE_dc_Fig5-26_1101.als“
**** INCLUDING PSPICE_dc_Fig5-26_1101.als ****
* Schematics Aliases *
.ALIASES
I_I1
I1(+=0 -=$N_0001 )
R_Rc
Rc(1=Vo 2=$N_0001 )
V_V2
V2(+=$N_0002 -=$N_0001 )
R_Ra
Ra(1=$N_0002 2=Vo )
V_V1
V1(+=$N_0002 -=0 )
R_Rb
Rb(1=0 2=Vo )
_
_(Vo=Vo)
.ENDALIASES
**** RESUMING PSPICE_dc_Fig5-26_1101.cir ****
.probe
.END
**** 01/08/11 14:24:30 *********** Evaluation PSpice
(Nov 1999) **************
*
C:\WorkingFiles\Bruce_Files\Chabot\Course_Planning\Engr4
3_Circuits\E43_Labs\E43_Labs_1101\PSPICE_dc_Fig526_1101.sch
****
SMALL SIGNAL BIAS SOLUTION
TEMPERATURE =
27.000 DEG C
********************************************************
NODE
VOLTAGE
NODE
VOLTAGE
NODE
VOLTAGE
NODE
VOLTAGE
(
Vo)
6.7500 ($N_0001)
6.0000
($N_0002)
12.0000
VOLTAGE SOURCE CURRENTS
NAME
CURRENT
V_V2
V_V1
-4.375E-03
1.750E-03
TOTAL POWER DISSIPATION
5.25E-03 WATTS
**** 01/08/11 14:24:30 *********** Evaluation PSpice
(Nov 1999) **************
C:\WorkingFiles\Bruce_Files\Chabot\Course_Planning\Engr4
3_Circuits\E43_Labs\E43_Labs_1101\PSPICE_dc_Fig526_1101.sch
****
OPERATING POINT INFORMATION
TEMPERATURE =
27.000 DEG C
********************************************************
JOB CONCLUDED
Sld 40 • Chabot College Engineering • Bruce Mayer, PE • BMayer@ChabotCollege.edu PSPICE_Install-n-DC.pptx
TOTAL JOB TIME
0.00xxx
HomeWork Presentation
• Select using Mouse-Pointer the Schematic
that Contains the Simulation RESULTS
• Use the PSPICE “Copy to ClipBoard” Cmd
• Paste into MSWord or MSPowerPoint the
Simulated Schematic
• Create the “.out” OutPut file in MSNotePad
• Copy & Paste the OutPut text into the .doc or
.ppt file that contains the Schematic
• DONE (Be sure to include Problem Number)
Sld 41 • Chabot College Engineering • Bruce Mayer, PE • BMayer@ChabotCollege.edu PSPICE_Install-n-DC.pptx
HomeWork Example
Sld 42 • Chabot College Engineering • Bruce Mayer, PE • BMayer@ChabotCollege.edu PSPICE_Install-n-DC.pptx
PSPICE SoftWare in Rm3906A
• PSPICE is also Installed on the “MATLAB”
Computers in Rm3906A
• For non ENGR43-hrs use
• Suggest DownLoad to your own Computer
• REGISTRY ERRORS
– If you receive a “Registry Error” When running a
simulation then
• Clear the “Error Box” and try the simulation again
Sld 43 • Chabot College Engineering • Bruce Mayer, PE • BMayer@ChabotCollege.edu PSPICE_Install-n-DC.pptx
Example from HW (SP-1)
Sld 44 • Chabot College Engineering • Bruce Mayer, PE • BMayer@ChabotCollege.edu PSPICE_Install-n-DC.pptx
Answer to SP-1
• Find IA by KCL
I A  166.67µA  666.67µA  2.5mA
I A  1.667mA
Sld 45 • Chabot College Engineering • Bruce Mayer, PE • BMayer@ChabotCollege.edu PSPICE_Install-n-DC.pptx
vc(t) TRANSIENT from MQ-04a
Sld 46 • Chabot College Engineering • Bruce Mayer, PE • BMayer@ChabotCollege.edu PSPICE_Install-n-DC.pptx
vc(t) TRANSIENT from MQ-04a
12V
10V
8V
 (S)
63% 12V
6V
4V
• Find Time Constant
using Cursor
2V
• Assume vc(0+) = 0V
0V
0s
1.0s
2.0s
3.0s
4.0s
V2(C1)
Time
Sld 47 • Chabot College Engineering • Bruce Mayer, PE • BMayer@ChabotCollege.edu PSPICE_Install-n-DC.pptx
5.0s
6.0s
7.0s
8.0s
Sld 48 • Chabot College Engineering • Bruce Mayer, PE • BMayer@ChabotCollege.edu PSPICE_Install-n-DC.pptx
Download