SPICE Algorithm and Implementation
- Author
- Wei
- Advisor
- ChenXingZuo
- School
- University of Electronic Science and Technology
- Major
- Microelectronics and Solid State Electronics
- Classification
- TP391.9 Computer simulation
- Degree
- Master's thesis
- Year
- 2009
- Downloads
- 208
- Citations
- 0
Abstract
Almost every Integrated Circuit designer knows SPICE simulator. Ideally with SPICE simulator, we could build a virtual circuit and cover several circuit principles and applications in a short time.In this paper, we firstly introduced some basic information about SPICE, and then we dived into the part of how we use the SPICE simulator. After finishing that, we began to introduce the principal part of this paper: algorithm and implementation of a SPICE simulator.Nodal Analysis, the core algorithm of SPICE simulator, was discussed in this paper. Meanwhile, we discussed the Newton’s method used to transform a nonlinear device such as diode into its linear companion model and the Euler integration formula used to transform an energy-storage component into its equivalent linear components for transient analysis.After introduction of companion model, we introduced the model of diode and NMOS used. It is necessary to study that in order to add new model to simulator easily.Next, a basic SPICE simulator was implemented using the c programming language on the Linux platform. And a RC circuit was created to verify the simulator.At last, an over thermal shutdown circuit is designed according to the algorithm and implementation of SPICE simulator.
Table of contents
Abstract 4-5
ABSTRACT 5-10
Chapter 1 Introduction 10-13
1.1 SPICE introduction 10-12 < br /> 1.1.1 What is SPICE 10
1.1.2 SPICE advantage 10-11
1.1.3 SPICE shortcomings 11-12 <br / > 1.2 About this 12-13
1.2.1 the purpose of this 12
1.2.2 this background 12
1.2.3 article conclusions 12-13
commercial SPICE chapter describes 13-25
2.1 commercial SPICE software architecture 13
2.2 SPICE circuit design process 13-15
2.3 commercial SPICE analysis types 15-17
2.3.1 dc analysis 15-16
2.3.2 AC small signal analysis 16-17
2.3.3 transient analysis 17
2.4 write SPICE netlist 17-20
2.4.1 header line 18
2.4.2 components 18-19
2.4.3 power 19
2.4.4 analysis Type 19
2.4 .5 result output 19-20
2.4.6 Notes 20
2.5 subcircuits 20-23
2.5.1 subcircuit instance 21-23
2.6 SPICE units in 23-25 ??
Chapter SPICE circuit equations establish 25-44
3.1 node analysis method 25-30
3.1.1 What is the junction point analysis 25-26
3.1.2 solving linear equations 26-27
3.1.3 solving matrix 27-28
3.1.4 matrix Solution Description 28
3.1.5 voltage source processing 28-30
3.2 nonlinear circuits DC analysis 30-34
3.2.1 diode model 30-31
3.2.2 node analysis 31-33
3.2.3 Results point analysis of iterative 33-34
3.2.4 convergence 34
3.3 transient analysis 34-39
3.3.1 numerical Methods 35-36
3.3.2 capacitance equivalent model 36-38
3.3.3 node analysis 38-39
3.4 algorithm Summary 39-44
3.4.1 DC analysis 41-42
3.4.2 transient analysis 42-43
3.4.3 AC analysis 43
3.4.4 algorithm control statements 43-44
Chapter Component model 44-50
4.1 model Description 44-45
4.1.1 model classification 44-45
4.1.2 the implementation-dependent model 45
4.2 diode model 45-48
4.3 MOS model 48-50
Chapter SPICE achieve 50-87
5.1 Overview 50-52
5.1.1 C language Introduction 50-51
5.1.2 compiler Profile 51
5.1.3 platform Brief 51-52
5.2 data abstraction 52-55
5.2.1 device Type 52
5.2.2 junction 52-53
5.2.3 pin 53 <br / > 5.2.4 components 53-54
5.2.5 circuit 54-55
5.3 data Manipulation 55-58
5.3.1 obtain matrix order 55
5.3.2 Get the link pin point 55
5.3.3 obtain component values ?? 55-56
5.3.4 initialize pin 56
5.3.5 initialization element 56
5.3.6 release element 56-57
5.3.7 components list manipulation 57-58
5.4 netlist parsing 58-64
5.4.1 application architecture 58-60
5.4.2 resistance 60 - 61
5.4.3 capacitance 61-62
5.4.4 current Source 62-63
5.4.5 voltage Source 63-64 <br / > 5.4.6 Summary 64
5.5 build matrix 64-72
5.5.1 dc analysis 65-69
5.5.2 transient analysis 69-72
5.6 DC analysis 72-79
5.6.1 initial work 72-73
5.6.2 parse command line arguments 73
5.6.3 reading netlist file and parse 73
5.6.4 assignment Matrix space and build the node matrix 73-74
5.6 .5 solving node matrix 74-78
5.6.6 cleanup 78-79
5.7 transient analysis 79-81
5.8 implementation verify 81-87
Chapter overtemperature protection circuit 87-93
6.1 thermal breakdown 87
6.2 cooling 87 -89
6.3 temperature 89
6.4 circuit design and simulation 89-93
Chapter Summary 93-94
Acknowledgements 94-95
References 95-96
attack Shuo research results achieved during the 96-97
Related dissertations
- Tower-Beam-Pier Stress Analysis of Single-Tower Cable-Stayed Bridge with U-Shaped Section
- Analysis of Horizontal Well in Western Sichuan Xinchang Gas Field Production Dynamic
- Technical Study on Monitoring and Management of Oilfield Waterflooding Production System
- The Global Optimization Theory and Method of OilField Production System
- CFST Arch Bridge creep and shrinkage re- distribution of arbitrarily shaped arch rib section stress
- Research on Optimizing Tubing Technology of Dewatering Method in Fractured Gas Reservoir
- Security Analyzing and Structure Optimization for Parts of Pulse Jet Collector
- Research on Design and Construction Technique of the Large-span Spatial Steel Tubular Structures
- Oil field injection-production system analysis and software development
- The Nodal Analysis of Screw Pump and the Study on the Parameters Optimization and Design
- Horizontal gas flow characteristics of the production system analysis method
- Research and Application of the the wellbore gas flow patterns, and the production system analysis
- Finite Element Analysis and Construction Monitoring for Tongnan Bridge
- Gas Well Hydraulic Optimizational Design and Software Development
- The Research on Injection-Production Capability of the Gas Storage
- Study on Restoring Productivity Assessment and Workover Program for Old Wells in Samandepe Acidic Gas Field
- Research on Key Technology of Chord-stayed Truss Bridge