Lec 10
Lec 10
SPICE SIMULATIONS-I
SUDEB DASGUPTA
DEPARMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING
1
Outline
• Introduction
• Examples
2
Introduction
• SPICE (Simulation Program with Integrated Circuit Emphasis) is a general-
purpose analog circuit simulation.
• First written in FORTRAN.
• Able to perform for non-linear DC, non-linear transient, and linear AC analysis,
Noise analysis etc..
• Circuits may contain
• Resistors, capacitors, inductors, mutual inductors,
• Independent voltage and current sources,
• Four types of dependent sources,
• Lossless and lossy transmission lines,
• The five most common semiconductor devices: diodes, BJTs, JFETs,
MESFETs, and MOSFETs.
3
INTRODUCTION
LT SPICE –
• It is a free SPICE simulator with schematic capture from Linear Technology. Linear
Technology is one of the industry leaders in analog and digital integrated circuits.
• Linear Technology provides a complete set of SPICE models for LT SPICE components.
HSPICE –
• HSPICE is unequalled for fast, accurate circuit and behavioral simulation.
• It facilitates circuit-level transient, AC, DC analysis along with analysis by using Monte
Carlo, worst-case, parametric sweep, and data-table sweep analyses. HSPICE is a non-gui
command line simulator, but it can be integrated to popular EDA tools such as CADENCE
ADEL simulation environment.
4
SPICE Examples
A simple LT Spice simulation
5
SPICE Examples
A simple LT Spice netlist file of a simple inverter with 180 technology model
6
SPICE Examples
Transient Simulation of simple CMOS inverter
.TRAN var1 START=start1 STOP=stop1 STEP=incr1
7
SPICE Examples
DC Sweep Simulation for VTC plot
8
SPICE Examples
Calculation of propagation delay tpLH
• One way to calculate propagation delay in LTspice is to use .meas command in the netlist
• Select the schematic window, where the inverter is already designed.
• Go to view option in the menu bar select spice netlist
• Right click on the netlist window choose Edit as Independent Netlist and save the netlist file
with new name Run simulation from netlist
• Open .meas statement editor and complete the required arguments.
• Example
.MEASURE TRAN tdelay TRIG V(1) VAL = 2.5 TD = 10n RISE = 2 TARG V(2) VAL = 2.5 FALL = 2
9
SPICE Examples
Calculation of propagation delay tpLH
10
SPICE Examples
Transient Simulation of NAND gate
11
SPICE Examples
Transient Simulation of NAND gate
Truth table
A B OUT
0 0 1
0 1 1
1 0 1
1 1 0
12
Thank You
13