SlideShare a Scribd company logo
1 of 28
3/4/2015 innocentsinner856@gmail.com
1
An introduction to SPICE
BY:
Muhammad Ahtsham
3/4/2015 innocentsinner856@gmail.com 2
3/4/2015 innocentsinner856@gmail.com 3
3/4/2015 innocentsinner856@gmail.com 4
 SPICE is the acronym of Simulation program with integrated
circuit Emphasis.
 The concept of SPICE developed after Electronic Workbench that
is the software to develop the circuit graphically and then simulate
the required result.
 Workbench software is reliable and acquires less time in order to
simulate any circuit but its needs to draw circuit as well.
 SPICE is a simulation program that does not require to draw any
circuit rather it requires to write net list in a particular and
specified manner.
3/4/2015 innocentsinner856@gmail.com 5
 SPICE does not need any graphical interface.
 SPICE evaluate or simulate the result through text-file description.
 SPICE is fairly easy to use for simple circuits, and its non-graphic
interface actually lends itself toward the analysis of circuits that
can be difficult to draw.
 Text file means that you can type the net list in a specified manner
through the basic text editor programs such as Notepad and Word
pad.
3/4/2015 innocentsinner856@gmail.com 6
3/4/2015 innocentsinner856@gmail.com 7
 The origin of SPICE traces back to another circuit simulation
program called CANCER in 1960s.
 The CANCER software continued to be improved till the upper
age of 1970s.
 The CANCER software was then rewritten and renamed as SPICE
and its first version was published in 1972 for public domain.
 The version 2 of spice was published in a public domain in 1975.
 Instrumental in the decision to release SPICE as a public-domain
computer program was professor Donald Pederson of Berkeley,
who believed that all significant technical progress happens when
information is freely shared.
3/4/2015 innocentsinner856@gmail.com 8
A major improvement came about in March of 1985
with version 3 of SPICE (also released under public
domain).
Now SPICE is written in the C language rather than
FORTRAN, version 3 incorporated additional transistor
types (the MESFET, for example), and switch elements.
Version 3 also allowed the use of alphabetical node
labels rather than only numbers.
Instructions written for version 2 of SPICE should still
run in version 3, though.
3/4/2015 innocentsinner856@gmail.com 9
 Programming a circuit simulation with SPICE is much like
programming in any other computer language.
 Commands are typed as text in a file, save that file to the
computer's hard drive, and then process the contents of that file
with a program (compiler or interpreter) that understands such
commands.
3/4/2015 innocentsinner856@gmail.com 10
3/4/2015 innocentsinner856@gmail.com 11
DC Analysis
AC Small-Signal Analysis
Transient Analysis
Pole-Zero Analysis
Small-Signal Distortion Analysis
Sensitivity Analysis
Noise Analysis
Analysis At Different Temperatures
3/4/2015 innocentsinner856@gmail.com 12
3/4/2015 innocentsinner856@gmail.com 13
 Download any SPICE software as PSPICE, LTSPICE, Win SPICE
etc.
 Compose a new net list with a text editing program Commonly
Notepad or WordPad).
 Save that net list to a file with a name of your choice.
 Run SPICE on that net list and observe the results.
 If the results contain errors, start up the text editing program again
and modify the net list.
3/4/2015 innocentsinner856@gmail.com 14
 Run SPICE again and observe the new results.
 Once you've "debugged" your net list and are getting good results,
run SPICE again, only this time redirecting the output to a new file
instead of just observing it on the computer screen.
 Start up a text editing program or a word processor program and
open the SPICE output file you just created. Modify that file to suit
your formatting needs and either save those changes to disk and/or
print them out on paper.
 The extension ".cir" as not mandatory as it also work on ".txt" or
".inp" extensions.
3/4/2015 innocentsinner856@gmail.com 15
 The net list file format required by SPICE is quite simple. A net list
file is nothing more than a plain ASCII text file containing multiple
lines of text, each line describing either a circuit component or
special SPICE command.
 There are two types of circuits i.e. DC and AC circuits.
 In this tutorial we will learn how to write net list of DC circuit.
NOTE: We will use Win SPICE in this tutorial. You can get a free trail
of Win SPICE at www.winspice.com
3/4/2015 innocentsinner856@gmail.com 16
There are 5 steps to write the net list of
SPICE.
1. Comments; tells us of what circuit the net list is
being written.
2. Declaration of circuit components along with their
types and values.
3. To give input.
4. To print output.
5. End Statement.
Note: From step 3 to 5, it is necessary to place dot (.)
at the beginning of the statement.
3/4/2015 innocentsinner856@gmail.com 17
 Comments may be included into the net list in two ways:
1. On a single line, using “*” as the first character.
2. After a command line, element line, model line, etc., using “;”.
Examples:
*----------------Example 1--------------*
*----------------Components----------*
*----------------Input-------------------*
Etc.
3/4/2015 innocentsinner856@gmail.com 18
3/4/2015 innocentsinner856@gmail.com 19
*-----DC Fist Example-----*
Node 1
Node 0
General Form of writing source:
Name of component +ve –ve type Value
V1 1 0 dc 10V
General form of writing Resistor:
Name of Resistor +ve –ve Value
R1 1 0 10k
General form of giving input to SPICE:
. Type name of source V0 Vf sweep
.dc V1 10V 10V 1
General form of printing output to SPICE:
. Print dc I(name of according source)
.Print dc I(V1)
End Statement:
.End
3/4/2015 innocentsinner856@gmail.com 20
*-----Example 1-1-----*
V1 1 0 DC 10V
R1 1 0 10k
.DC V1 10V 10V 1
.PRINT DC I(V1)
.END
*-----Example 1-1-----*
I1 0 1 DC 1MA
R1 1 0 100k
.DC I1 1MA 1MA
.PRINT DC V(1)
.END
3/4/2015 innocentsinner856@gmail.com 21
Va 1 3 dc 12
Ia 0 2 dc 1
R1 1 2 80
R2 1 0 70
R3 2 3 60
R4 3 0 90
.dc Va 0 12 2
.dc Ia 0 1 0
.print dc v(1) v(2) v(3)
.end
3/4/2015 innocentsinner856@gmail.com 22
V1 1 0 dc 24
V2 3 0 dc 15
R1 1 2 10k
R2 2 3 8.1k
R3 2 0 4.7k
.dc V1 0 24 8
.dc V2 0 15 5
.print dc v(1) v(2) v(3)
.end
3/4/2015 innocentsinner856@gmail.com 23
Vs1 4 3 dc 5
Vs2 2 1 dc 2
Is 5 6 dc 1m
R1 2 7 1k
R2 7 6 1k
R3 6 5 1k
R4 5 4 1k
R5 3 2 1k
R6 6 0 1k
R7 4 0 1k
R8 2 0 1k
R9 7 0 1k
.dc Vs1 0 5 0
.dc Vs2 0 0 0
.dc Ia 0 1 0
.print dc v(1) v(7)
.end
3/4/2015 innocentsinner856@gmail.com 24
VCVS — Voltage Controlled Voltage Source
The output voltage is given by a voltage gain Av multiplied by an input voltage
v1. Such a source in SPICE is called an E source. (Fig a)
VCCS — Voltage Controlled Current Source
The output current is given by a trans conductance Gm multiplied by an input
voltage v1. Such a source in SPICE is called a G source. (Fig b)
CCVS — Current Controlled Voltage Source
The output voltage is given by a trans resistance Rm multiplied by an input
current i1. Such a source in SPICE is called an F source. (Fig c)
CCCS — Current Controlled Current Source
The output current is given by a current gain Ai multiplied by an input current
i1. Such a source in SPICE is called an H source. (Fig d)
3/4/2015 innocentsinner856@gmail.com 25
Voltage controlled voltage source:
Ename N1 N2 NC1 NC2 Value
Voltage controlled current source:
Gname N1 N2 NC1 NC2 Value
Current controlled voltage source:
Hname N1 N2 Vcontrol Value
Current controlled current source:
Fname N1 N2 Vcontrol Value
N1 and N2 are the positive and negative terminals of the dependent source,
respectively.
NC1 and NC2 are the positive and negative terminals of the controlling voltage
source, respectively.
3/4/2015 innocentsinner856@gmail.com 26
V1 1 0 dc 5
R1 1 2 68
R2 2 0 10
R3 3 0 100
G_Gm 0 3 2 0 0.5
.dc V1 5 5 1
.print dc v(1) v(2) v(3)
.end
3/4/2015 innocentsinner856@gmail.com 27
V1 1 0 dc 5
R1 1 2 80
R2 2 0 90
R3 3 4 10
R4 4 0 57
E_a 2 3 2 0 0.5
.dc V1 5 5 1
.print dc v(1) v(2) v(3)
.end
3/4/2015 innocentsinner856@gmail.com 28
 For History and Procedure of Spice Please visit 1st Tutorial
 For DC circuit Analysis please visit 1st Tutorial
 For AC circuit Analysis please visit the 2nd Tutorial
 For Learning output of Spice please visit 3rd Tutorial

More Related Content

What's hot

Televisión digital
Televisión digitalTelevisión digital
Televisión digitalHerreraM
 
redes mimo
redes mimoredes mimo
redes mimoZAIT2
 
Optical satellite communications
Optical satellite communicationsOptical satellite communications
Optical satellite communicationsIslam Kotb Ismail
 
Optical Fiber Communication
Optical Fiber CommunicationOptical Fiber Communication
Optical Fiber CommunicationSN Chakraborty
 
Chapter 3 1-network_design_with_internet_tools - Network Design
Chapter 3 1-network_design_with_internet_tools - Network DesignChapter 3 1-network_design_with_internet_tools - Network Design
Chapter 3 1-network_design_with_internet_tools - Network Designnakomuri
 
IP Over Satellite
IP Over SatelliteIP Over Satellite
IP Over Satellitennmaurya
 
Radio And Satellite Navigation
Radio And Satellite NavigationRadio And Satellite Navigation
Radio And Satellite Navigationwillmac1wm
 
Sistema de comunicaciones moviles
Sistema de comunicaciones movilesSistema de comunicaciones moviles
Sistema de comunicaciones movilesedu395090
 
Generations of wireless technologies
Generations of wireless technologiesGenerations of wireless technologies
Generations of wireless technologiessaikiran harinarthini
 
An Introduction and Overview of MATV Technology
An Introduction and Overview of MATV TechnologyAn Introduction and Overview of MATV Technology
An Introduction and Overview of MATV TechnologyrAVe [PUBS]
 
Optical network architecture
Optical network architectureOptical network architecture
Optical network architectureSiddharth Singh
 
TéCnicas Mic
TéCnicas MicTéCnicas Mic
TéCnicas Mickinimix
 

What's hot (20)

Pci
PciPci
Pci
 
Televisión digital
Televisión digitalTelevisión digital
Televisión digital
 
redes mimo
redes mimoredes mimo
redes mimo
 
Wdm
WdmWdm
Wdm
 
Optical satellite communications
Optical satellite communicationsOptical satellite communications
Optical satellite communications
 
Optical Fiber Communication
Optical Fiber CommunicationOptical Fiber Communication
Optical Fiber Communication
 
Chapter 3 1-network_design_with_internet_tools - Network Design
Chapter 3 1-network_design_with_internet_tools - Network DesignChapter 3 1-network_design_with_internet_tools - Network Design
Chapter 3 1-network_design_with_internet_tools - Network Design
 
IP Over Satellite
IP Over SatelliteIP Over Satellite
IP Over Satellite
 
GPS Signals (1)
GPS Signals (1)GPS Signals (1)
GPS Signals (1)
 
Radio And Satellite Navigation
Radio And Satellite NavigationRadio And Satellite Navigation
Radio And Satellite Navigation
 
Sistema de comunicaciones moviles
Sistema de comunicaciones movilesSistema de comunicaciones moviles
Sistema de comunicaciones moviles
 
FTTH
FTTHFTTH
FTTH
 
Satellite networks
Satellite networksSatellite networks
Satellite networks
 
Generations of wireless technologies
Generations of wireless technologiesGenerations of wireless technologies
Generations of wireless technologies
 
An Introduction and Overview of MATV Technology
An Introduction and Overview of MATV TechnologyAn Introduction and Overview of MATV Technology
An Introduction and Overview of MATV Technology
 
WLL,WLAN & BLUETOOTH
WLL,WLAN & BLUETOOTHWLL,WLAN & BLUETOOTH
WLL,WLAN & BLUETOOTH
 
Optical network architecture
Optical network architectureOptical network architecture
Optical network architecture
 
TéCnicas Mic
TéCnicas MicTéCnicas Mic
TéCnicas Mic
 
Gps signal structure
Gps signal structureGps signal structure
Gps signal structure
 
Pal
PalPal
Pal
 

Viewers also liked

Information ethics & intro to information security
Information ethics & intro to information securityInformation ethics & intro to information security
Information ethics & intro to information securityUMaine
 
SPICE Model of Honda solar cell
SPICE Model of Honda solar cellSPICE Model of Honda solar cell
SPICE Model of Honda solar cellTsuyoshi Horigome
 
Alexandria ACM Student Chapter | Specification & Verification of Data-Centric...
Alexandria ACM Student Chapter | Specification & Verification of Data-Centric...Alexandria ACM Student Chapter | Specification & Verification of Data-Centric...
Alexandria ACM Student Chapter | Specification & Verification of Data-Centric...AlexACMSC
 
Multisim 9 for educators
Multisim 9 for educatorsMultisim 9 for educators
Multisim 9 for educatorsdinhto1985
 
Tutorial getting started with multisim
Tutorial  getting started with multisimTutorial  getting started with multisim
Tutorial getting started with multisimgato4048
 
Data communications
Data communicationsData communications
Data communicationsUMaine
 
Data Verification In QA Department Final
Data Verification In QA Department FinalData Verification In QA Department Final
Data Verification In QA Department FinalWayne Yaddow
 
National instruments for Academics: labview multisim & elsvi
National instruments for Academics: labview multisim & elsviNational instruments for Academics: labview multisim & elsvi
National instruments for Academics: labview multisim & elsviSHAIK AMANULLA
 
Pspice Introduction
Pspice IntroductionPspice Introduction
Pspice IntroductionAkshay Dhole
 
VLSI Introduction to PSPICE
VLSI Introduction to PSPICEVLSI Introduction to PSPICE
VLSI Introduction to PSPICEAbhishekvb
 
03 data transmission
03 data transmission03 data transmission
03 data transmissionOrbay Yeşil
 
A new DNA encryption technique for secure data transmission with authenticati...
A new DNA encryption technique for secure data transmission with authenticati...A new DNA encryption technique for secure data transmission with authenticati...
A new DNA encryption technique for secure data transmission with authenticati...Sajedul Karim
 
Project management slide - Introduction
Project management slide - IntroductionProject management slide - Introduction
Project management slide - IntroductionAlbert Poghosyan
 
CMOS N P Twin Tub Well Formation
CMOS N P Twin Tub Well FormationCMOS N P Twin Tub Well Formation
CMOS N P Twin Tub Well Formationazmathmoosa
 
Data communication by Phone Lines
Data communication by Phone LinesData communication by Phone Lines
Data communication by Phone LinesMuhammad Ahtsham
 
Lec1 :- Data communication and network
Lec1 :- Data communication and networkLec1 :- Data communication and network
Lec1 :- Data communication and networkDhrumil Shah
 

Viewers also liked (20)

Information ethics & intro to information security
Information ethics & intro to information securityInformation ethics & intro to information security
Information ethics & intro to information security
 
WORKSHOP-Flyer
WORKSHOP-FlyerWORKSHOP-Flyer
WORKSHOP-Flyer
 
SPICE Model of Honda solar cell
SPICE Model of Honda solar cellSPICE Model of Honda solar cell
SPICE Model of Honda solar cell
 
Alexandria ACM Student Chapter | Specification & Verification of Data-Centric...
Alexandria ACM Student Chapter | Specification & Verification of Data-Centric...Alexandria ACM Student Chapter | Specification & Verification of Data-Centric...
Alexandria ACM Student Chapter | Specification & Verification of Data-Centric...
 
Multisim 9 for educators
Multisim 9 for educatorsMultisim 9 for educators
Multisim 9 for educators
 
Multisim training in mohali
Multisim training in mohaliMultisim training in mohali
Multisim training in mohali
 
Tutorial getting started with multisim
Tutorial  getting started with multisimTutorial  getting started with multisim
Tutorial getting started with multisim
 
Data communications
Data communicationsData communications
Data communications
 
Data Verification In QA Department Final
Data Verification In QA Department FinalData Verification In QA Department Final
Data Verification In QA Department Final
 
National instruments for Academics: labview multisim & elsvi
National instruments for Academics: labview multisim & elsviNational instruments for Academics: labview multisim & elsvi
National instruments for Academics: labview multisim & elsvi
 
Pspice Introduction
Pspice IntroductionPspice Introduction
Pspice Introduction
 
VLSI Introduction to PSPICE
VLSI Introduction to PSPICEVLSI Introduction to PSPICE
VLSI Introduction to PSPICE
 
03 data transmission
03 data transmission03 data transmission
03 data transmission
 
PSPICE seminar
PSPICE seminarPSPICE seminar
PSPICE seminar
 
A new DNA encryption technique for secure data transmission with authenticati...
A new DNA encryption technique for secure data transmission with authenticati...A new DNA encryption technique for secure data transmission with authenticati...
A new DNA encryption technique for secure data transmission with authenticati...
 
Project management slide - Introduction
Project management slide - IntroductionProject management slide - Introduction
Project management slide - Introduction
 
CMOS N P Twin Tub Well Formation
CMOS N P Twin Tub Well FormationCMOS N P Twin Tub Well Formation
CMOS N P Twin Tub Well Formation
 
Data communication by Phone Lines
Data communication by Phone LinesData communication by Phone Lines
Data communication by Phone Lines
 
Lec1 :- Data communication and network
Lec1 :- Data communication and networkLec1 :- Data communication and network
Lec1 :- Data communication and network
 
Fetch execute cycle
Fetch execute cycleFetch execute cycle
Fetch execute cycle
 

Similar to WinSpice Tutorial 1

communicate with instrument by using lan
communicate with instrument by using lancommunicate with instrument by using lan
communicate with instrument by using lanAbdosalam Arif
 
Vlsilab13
Vlsilab13Vlsilab13
Vlsilab13Krish s
 
Development of a D.C Circuit Analysis Software Using Microsoft Visual C#.Net
Development of a D.C Circuit Analysis Software Using Microsoft Visual C#.NetDevelopment of a D.C Circuit Analysis Software Using Microsoft Visual C#.Net
Development of a D.C Circuit Analysis Software Using Microsoft Visual C#.NetIOSR Journals
 
Introduction to pspice a_d
Introduction to pspice a_dIntroduction to pspice a_d
Introduction to pspice a_dHoopeer Hoopeer
 
Stepper motor controller using c
Stepper motor controller using cStepper motor controller using c
Stepper motor controller using cHarnam Singh
 
EELE 5331 Digital ASIC DesignLab ManualDr. Yushi Zhou.docx
EELE 5331 Digital ASIC DesignLab ManualDr. Yushi Zhou.docxEELE 5331 Digital ASIC DesignLab ManualDr. Yushi Zhou.docx
EELE 5331 Digital ASIC DesignLab ManualDr. Yushi Zhou.docxtoltonkendal
 
A Project Based Lab Report On AMUZING JOKE
A Project Based Lab Report On AMUZING JOKEA Project Based Lab Report On AMUZING JOKE
A Project Based Lab Report On AMUZING JOKEDaniel Wachtel
 
Quadcept v10.2.0 Released
Quadcept v10.2.0 ReleasedQuadcept v10.2.0 Released
Quadcept v10.2.0 ReleasedQuadcept
 
Pspice software+ presentation
Pspice software+ presentationPspice software+ presentation
Pspice software+ presentationRAhul Soni
 
Assignment 2 LASA 1 IP NetworkingIn this assignment, you will wri.docx
Assignment 2 LASA 1 IP NetworkingIn this assignment, you will wri.docxAssignment 2 LASA 1 IP NetworkingIn this assignment, you will wri.docx
Assignment 2 LASA 1 IP NetworkingIn this assignment, you will wri.docxhuttenangela
 
AVR HOW-TO GUIDE Interfacing SPI-Ethernet With AVR Slicker Contents At A Glance
AVR HOW-TO GUIDE Interfacing SPI-Ethernet With AVR Slicker Contents At A GlanceAVR HOW-TO GUIDE Interfacing SPI-Ethernet With AVR Slicker Contents At A Glance
AVR HOW-TO GUIDE Interfacing SPI-Ethernet With AVR Slicker Contents At A GlanceScott Faria
 
Computer Programming For Power Systems Analysts.
Computer Programming For Power Systems Analysts.Computer Programming For Power Systems Analysts.
Computer Programming For Power Systems Analysts.H. Kheir
 
PV Elite 2019 Service Pack 2 (Version 21.00.02.0000).
PV Elite 2019 Service Pack 2 (Version 21.00.02.0000).PV Elite 2019 Service Pack 2 (Version 21.00.02.0000).
PV Elite 2019 Service Pack 2 (Version 21.00.02.0000).N.A. Tecnologia
 
©LWTAOB© 2013 Cisco andLab – O.docx
©LWTAOB© 2013 Cisco andLab – O.docx©LWTAOB© 2013 Cisco andLab – O.docx
©LWTAOB© 2013 Cisco andLab – O.docxLynellBull52
 
Write your own generic SPICE Power Supplies controller models
Write your own generic SPICE Power Supplies controller modelsWrite your own generic SPICE Power Supplies controller models
Write your own generic SPICE Power Supplies controller modelsTsuyoshi Horigome
 
Manual HUB SERIAL EQUINOX
Manual HUB SERIAL EQUINOXManual HUB SERIAL EQUINOX
Manual HUB SERIAL EQUINOXPablo Vera
 

Similar to WinSpice Tutorial 1 (20)

communicate with instrument by using lan
communicate with instrument by using lancommunicate with instrument by using lan
communicate with instrument by using lan
 
LTspice.ppt
LTspice.pptLTspice.ppt
LTspice.ppt
 
Bitstuffing
BitstuffingBitstuffing
Bitstuffing
 
Vlsilab13
Vlsilab13Vlsilab13
Vlsilab13
 
A017110106
A017110106A017110106
A017110106
 
Development of a D.C Circuit Analysis Software Using Microsoft Visual C#.Net
Development of a D.C Circuit Analysis Software Using Microsoft Visual C#.NetDevelopment of a D.C Circuit Analysis Software Using Microsoft Visual C#.Net
Development of a D.C Circuit Analysis Software Using Microsoft Visual C#.Net
 
Introduction to pspice a_d
Introduction to pspice a_dIntroduction to pspice a_d
Introduction to pspice a_d
 
Stepper motor controller using c
Stepper motor controller using cStepper motor controller using c
Stepper motor controller using c
 
EELE 5331 Digital ASIC DesignLab ManualDr. Yushi Zhou.docx
EELE 5331 Digital ASIC DesignLab ManualDr. Yushi Zhou.docxEELE 5331 Digital ASIC DesignLab ManualDr. Yushi Zhou.docx
EELE 5331 Digital ASIC DesignLab ManualDr. Yushi Zhou.docx
 
A Project Based Lab Report On AMUZING JOKE
A Project Based Lab Report On AMUZING JOKEA Project Based Lab Report On AMUZING JOKE
A Project Based Lab Report On AMUZING JOKE
 
Quadcept v10.2.0 Released
Quadcept v10.2.0 ReleasedQuadcept v10.2.0 Released
Quadcept v10.2.0 Released
 
Pspice software+ presentation
Pspice software+ presentationPspice software+ presentation
Pspice software+ presentation
 
Assignment 2 LASA 1 IP NetworkingIn this assignment, you will wri.docx
Assignment 2 LASA 1 IP NetworkingIn this assignment, you will wri.docxAssignment 2 LASA 1 IP NetworkingIn this assignment, you will wri.docx
Assignment 2 LASA 1 IP NetworkingIn this assignment, you will wri.docx
 
AVR HOW-TO GUIDE Interfacing SPI-Ethernet With AVR Slicker Contents At A Glance
AVR HOW-TO GUIDE Interfacing SPI-Ethernet With AVR Slicker Contents At A GlanceAVR HOW-TO GUIDE Interfacing SPI-Ethernet With AVR Slicker Contents At A Glance
AVR HOW-TO GUIDE Interfacing SPI-Ethernet With AVR Slicker Contents At A Glance
 
Computer Programming For Power Systems Analysts.
Computer Programming For Power Systems Analysts.Computer Programming For Power Systems Analysts.
Computer Programming For Power Systems Analysts.
 
PV Elite 2019 Service Pack 2 (Version 21.00.02.0000).
PV Elite 2019 Service Pack 2 (Version 21.00.02.0000).PV Elite 2019 Service Pack 2 (Version 21.00.02.0000).
PV Elite 2019 Service Pack 2 (Version 21.00.02.0000).
 
©LWTAOB© 2013 Cisco andLab – O.docx
©LWTAOB© 2013 Cisco andLab – O.docx©LWTAOB© 2013 Cisco andLab – O.docx
©LWTAOB© 2013 Cisco andLab – O.docx
 
Write your own generic SPICE Power Supplies controller models
Write your own generic SPICE Power Supplies controller modelsWrite your own generic SPICE Power Supplies controller models
Write your own generic SPICE Power Supplies controller models
 
Manual HUB SERIAL EQUINOX
Manual HUB SERIAL EQUINOXManual HUB SERIAL EQUINOX
Manual HUB SERIAL EQUINOX
 
Ccna guide
Ccna guideCcna guide
Ccna guide
 

Recently uploaded

CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdfKamal Acharya
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingrknatarajan
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdfKamal Acharya
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduitsrknatarajan
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesPrabhanshu Chaturvedi
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...ranjana rawat
 

Recently uploaded (20)

CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
Glass Ceramics: Processing and Properties
Glass Ceramics: Processing and PropertiesGlass Ceramics: Processing and Properties
Glass Ceramics: Processing and Properties
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 

WinSpice Tutorial 1

  • 4. 3/4/2015 innocentsinner856@gmail.com 4  SPICE is the acronym of Simulation program with integrated circuit Emphasis.  The concept of SPICE developed after Electronic Workbench that is the software to develop the circuit graphically and then simulate the required result.  Workbench software is reliable and acquires less time in order to simulate any circuit but its needs to draw circuit as well.  SPICE is a simulation program that does not require to draw any circuit rather it requires to write net list in a particular and specified manner.
  • 5. 3/4/2015 innocentsinner856@gmail.com 5  SPICE does not need any graphical interface.  SPICE evaluate or simulate the result through text-file description.  SPICE is fairly easy to use for simple circuits, and its non-graphic interface actually lends itself toward the analysis of circuits that can be difficult to draw.  Text file means that you can type the net list in a specified manner through the basic text editor programs such as Notepad and Word pad.
  • 7. 3/4/2015 innocentsinner856@gmail.com 7  The origin of SPICE traces back to another circuit simulation program called CANCER in 1960s.  The CANCER software continued to be improved till the upper age of 1970s.  The CANCER software was then rewritten and renamed as SPICE and its first version was published in 1972 for public domain.  The version 2 of spice was published in a public domain in 1975.  Instrumental in the decision to release SPICE as a public-domain computer program was professor Donald Pederson of Berkeley, who believed that all significant technical progress happens when information is freely shared.
  • 8. 3/4/2015 innocentsinner856@gmail.com 8 A major improvement came about in March of 1985 with version 3 of SPICE (also released under public domain). Now SPICE is written in the C language rather than FORTRAN, version 3 incorporated additional transistor types (the MESFET, for example), and switch elements. Version 3 also allowed the use of alphabetical node labels rather than only numbers. Instructions written for version 2 of SPICE should still run in version 3, though.
  • 9. 3/4/2015 innocentsinner856@gmail.com 9  Programming a circuit simulation with SPICE is much like programming in any other computer language.  Commands are typed as text in a file, save that file to the computer's hard drive, and then process the contents of that file with a program (compiler or interpreter) that understands such commands.
  • 11. 3/4/2015 innocentsinner856@gmail.com 11 DC Analysis AC Small-Signal Analysis Transient Analysis Pole-Zero Analysis Small-Signal Distortion Analysis Sensitivity Analysis Noise Analysis Analysis At Different Temperatures
  • 13. 3/4/2015 innocentsinner856@gmail.com 13  Download any SPICE software as PSPICE, LTSPICE, Win SPICE etc.  Compose a new net list with a text editing program Commonly Notepad or WordPad).  Save that net list to a file with a name of your choice.  Run SPICE on that net list and observe the results.  If the results contain errors, start up the text editing program again and modify the net list.
  • 14. 3/4/2015 innocentsinner856@gmail.com 14  Run SPICE again and observe the new results.  Once you've "debugged" your net list and are getting good results, run SPICE again, only this time redirecting the output to a new file instead of just observing it on the computer screen.  Start up a text editing program or a word processor program and open the SPICE output file you just created. Modify that file to suit your formatting needs and either save those changes to disk and/or print them out on paper.  The extension ".cir" as not mandatory as it also work on ".txt" or ".inp" extensions.
  • 15. 3/4/2015 innocentsinner856@gmail.com 15  The net list file format required by SPICE is quite simple. A net list file is nothing more than a plain ASCII text file containing multiple lines of text, each line describing either a circuit component or special SPICE command.  There are two types of circuits i.e. DC and AC circuits.  In this tutorial we will learn how to write net list of DC circuit. NOTE: We will use Win SPICE in this tutorial. You can get a free trail of Win SPICE at www.winspice.com
  • 16. 3/4/2015 innocentsinner856@gmail.com 16 There are 5 steps to write the net list of SPICE. 1. Comments; tells us of what circuit the net list is being written. 2. Declaration of circuit components along with their types and values. 3. To give input. 4. To print output. 5. End Statement. Note: From step 3 to 5, it is necessary to place dot (.) at the beginning of the statement.
  • 17. 3/4/2015 innocentsinner856@gmail.com 17  Comments may be included into the net list in two ways: 1. On a single line, using “*” as the first character. 2. After a command line, element line, model line, etc., using “;”. Examples: *----------------Example 1--------------* *----------------Components----------* *----------------Input-------------------* Etc.
  • 19. 3/4/2015 innocentsinner856@gmail.com 19 *-----DC Fist Example-----* Node 1 Node 0 General Form of writing source: Name of component +ve –ve type Value V1 1 0 dc 10V General form of writing Resistor: Name of Resistor +ve –ve Value R1 1 0 10k General form of giving input to SPICE: . Type name of source V0 Vf sweep .dc V1 10V 10V 1 General form of printing output to SPICE: . Print dc I(name of according source) .Print dc I(V1) End Statement: .End
  • 20. 3/4/2015 innocentsinner856@gmail.com 20 *-----Example 1-1-----* V1 1 0 DC 10V R1 1 0 10k .DC V1 10V 10V 1 .PRINT DC I(V1) .END *-----Example 1-1-----* I1 0 1 DC 1MA R1 1 0 100k .DC I1 1MA 1MA .PRINT DC V(1) .END
  • 21. 3/4/2015 innocentsinner856@gmail.com 21 Va 1 3 dc 12 Ia 0 2 dc 1 R1 1 2 80 R2 1 0 70 R3 2 3 60 R4 3 0 90 .dc Va 0 12 2 .dc Ia 0 1 0 .print dc v(1) v(2) v(3) .end
  • 22. 3/4/2015 innocentsinner856@gmail.com 22 V1 1 0 dc 24 V2 3 0 dc 15 R1 1 2 10k R2 2 3 8.1k R3 2 0 4.7k .dc V1 0 24 8 .dc V2 0 15 5 .print dc v(1) v(2) v(3) .end
  • 23. 3/4/2015 innocentsinner856@gmail.com 23 Vs1 4 3 dc 5 Vs2 2 1 dc 2 Is 5 6 dc 1m R1 2 7 1k R2 7 6 1k R3 6 5 1k R4 5 4 1k R5 3 2 1k R6 6 0 1k R7 4 0 1k R8 2 0 1k R9 7 0 1k .dc Vs1 0 5 0 .dc Vs2 0 0 0 .dc Ia 0 1 0 .print dc v(1) v(7) .end
  • 24. 3/4/2015 innocentsinner856@gmail.com 24 VCVS — Voltage Controlled Voltage Source The output voltage is given by a voltage gain Av multiplied by an input voltage v1. Such a source in SPICE is called an E source. (Fig a) VCCS — Voltage Controlled Current Source The output current is given by a trans conductance Gm multiplied by an input voltage v1. Such a source in SPICE is called a G source. (Fig b) CCVS — Current Controlled Voltage Source The output voltage is given by a trans resistance Rm multiplied by an input current i1. Such a source in SPICE is called an F source. (Fig c) CCCS — Current Controlled Current Source The output current is given by a current gain Ai multiplied by an input current i1. Such a source in SPICE is called an H source. (Fig d)
  • 25. 3/4/2015 innocentsinner856@gmail.com 25 Voltage controlled voltage source: Ename N1 N2 NC1 NC2 Value Voltage controlled current source: Gname N1 N2 NC1 NC2 Value Current controlled voltage source: Hname N1 N2 Vcontrol Value Current controlled current source: Fname N1 N2 Vcontrol Value N1 and N2 are the positive and negative terminals of the dependent source, respectively. NC1 and NC2 are the positive and negative terminals of the controlling voltage source, respectively.
  • 26. 3/4/2015 innocentsinner856@gmail.com 26 V1 1 0 dc 5 R1 1 2 68 R2 2 0 10 R3 3 0 100 G_Gm 0 3 2 0 0.5 .dc V1 5 5 1 .print dc v(1) v(2) v(3) .end
  • 27. 3/4/2015 innocentsinner856@gmail.com 27 V1 1 0 dc 5 R1 1 2 80 R2 2 0 90 R3 3 4 10 R4 4 0 57 E_a 2 3 2 0 0.5 .dc V1 5 5 1 .print dc v(1) v(2) v(3) .end
  • 28. 3/4/2015 innocentsinner856@gmail.com 28  For History and Procedure of Spice Please visit 1st Tutorial  For DC circuit Analysis please visit 1st Tutorial  For AC circuit Analysis please visit the 2nd Tutorial  For Learning output of Spice please visit 3rd Tutorial