Cmos7 Feb June15
Cmos7 Feb June15
An Introduction
to
Agenda: Lecture 7
SPICE
Switching Characteristics
Loading Effects..
Chip Bonding
Introduction to Memory
SPICE
Simulation Program with Integrated Circuit
Emphasis
Developed @ UC Berkeley Early 1970s
What is SPICE ?
General purpose circuit simulation program for non
linear (large-signal) DC, non linear (large-signal)
transient, and linear (small-signal) AC analysis.
example: Switching power supplies, RAM cells
Circuit Description
Circuit to be analyzed by SPICE is described through an input file,
with set of lines. The input file can have any name.
End statement
Title statement
circuit description
Power Supplies / Signal Sources
Element Descriptions
Model Statements
Analysis Requests
Output Requests
.END
Circuit Description
The Spice input file - Title Statement:
The title line must be the first in the input file.
Its contents are printed verbatim as the heading for each
section of output.
Example:
POWER AMPLIFIER CIRCUIT
TEST OF CAM CELL
Circuit Description
The Spice input file - Comment Statement:
The asterisk in the first column indicates that this line is
a comment line.
Examples:
* RF=1K Gain should be 100
* Check open-loop gain and phase margin
Circuit Description
The Spice input file Element Statement:
Defines circuit topology, element value...
Ename node1 node2 <node3..> <MODELname> <value1..>
Eg: C5 1 0 6.9ff
R1 N1 N2 Value <Tc=temp. coeff>
Lxxx N+ N- Value
Independent
Sources
VDD 1 0 DC 5V
Iyyy N+ N-
D G S
B Type
10
Ex2 (Ids):
11
Diode
junction diodes or Schottky barrier diodes
JFET
FET model of Shichman and Hodges.
12
Types of Analysis
DC analysis (dc operating point of the circuit)
AC small signal analysis (ac output as a f(frequency))
Transient analysis (transient outputs [V or I] as a f(time) )
Fourier analysis
Pole-zero analysis
Noise analysis (noise component of
Temperature
elements)
13
Circuit Description
+ Indicates continuation of a line
Spice3 is case insensitive
SPICE UNITS: The default units for SPICE are volts, amps, ohms, farads,
henries. You can specify values in decimal form, 0.0056, or
exponential form, 5.6e-3.
SPICE also recognizes the following abbreviations:
F E-15 femto; P E-12 pico; N E-9 nano; U E-6 micro; M E-3 milli;
K E+3 kilo; MEG E+6 mega; G E+9 giga; T E+12 tera
14
Running Spice
Spice3 can be used to perform the important designverification process :
1. The IC layout is first designed using Magic.
2. The circuit netlist is then extracted from layout.
3. Spice3 is finally used to perform various simulation
analyses on the circuit extracted from the layout.
15
Running Spice
Changes to MAGIC layout
Open the .mag file in Magic
Change the label GND to 0 (irsim doesnt accept 0 as GND..!)
Save the file (:save)
Extract it (:ext)
- create the file inverter.ext that contains information about the
device sizes and interconnections in the layout
Quit magic (:q)
2015 Centre for Development of Advanced Computing
16
Running Spice
Convert the extracted file (.ext) to a netlist for the
Simulation tool (spice)
>ext2spice -f spice3 filename (without the .ext)
- create the file filename.spice with the netlist of active devices
and node capacitances with sizes corresponding to the layout
* SPICE3 file created from invert.ext technology: scmos
m0 Vdd in out Vdd pfet w=4.8u l=1.2u
+ ad=14.4p pd=15.6u as=14.4p ps=15.6u
m1 out in GND Gnd nfet w=1.8u l=1.2u
+ ad=6.84p pd=10.8u as=6.84p ps=10.8u
C0 Vdd GND 2.3fF
2015 Centre for Development of Advanced Computing
17
Running Spice
Prepare a Spice circuit file that includes the created
netlist, device models etc.
This file can be prepared using any editor, extracted file and
the model file
>Open the file
filename.spice
18
*element Node
*
DGSB
19
20
Running Spice
Running Spice3 for simulation
Run spice3 by
>spice3 filename.spice
spice> run
spice>Plot all
spice> Plot v(2) v(3)
Spice>help
spice>quit
Voltage
Current
Variable
V( )
I( )
VM( )
IM( )
Magnitude
VP( )
IP( )
Phase
VR( )
IR( )
Real Part
VI( )
II( )
Imaginary Part
(no suffix)
Magnitude
21
SPICE Waveform
Input V2
Output V3
22
SPICE Waveform
DC Sweep Simulation
.dc vin 0 5 0.004
23
Running Spice
Searching for particular event (.MEASURE) [HSPICE]
Useful for finding Rise T, Fall T, Delay, d/dx,
Ex: Rise T
.MEAS TRAN rise TRIG V(1) VAL=.2 RISE=1
+
FALL=1
20% of Max
Voltage =1
24
25
Try to keep nMOS devices near nMOS devices and pMOS devices near
pMOS devices
- So nMOS usually are placed near Gnd, and pMOS near Vdd
Run poly vertically and diffusion horizontally, with metal1 horizontal
(or the reverse, just keep them orthogonal)
Good default layout plan
Keep diffusion wires as short as possible (just connect to transistor)
All long wires (wire that go outside a cell, for example) should be in either
m1 or m2.
26
27
Circuit Characterization
Diffusion and Polysilicon Capacitances
28
Switching Characteristics
Switching speed of the CMOS logic
gate is limited by the time taken by the
load capacitor, CL to charge (through
Rp) and discharge (through Rn).
Rp
= RCL
Rn
Charges=>Vdd
Vdd
CL
Discharges=>Gnd
CMOS Logic
gates
29
Switching Characteristics
Switching speed of the CMOS device is
limited by the time taken by the load
capacitor, CL to charge (through Rp)
and discharge (through Rn).
Rp
= RCL
Rn
Charges=>Vdd
Vdd
CL
Important Device-Timing
Parameters:
1. Rise Time (tr)
2. Fall Time (tf)
Responsible:Pull Up
Responsible: Pull Down
Discharges=>Gnd
30
.9VDD
90%
VDD-Vtn
Capacitor discharges
t
tf = tf1 + tf2
31
VDD-Vtn
dv0 n
2
CL
Vdd Vtn 0
dt
2
.9VDD
.1VDD
32
33
dv0
1 2
CL
n Vdd Vtn V0 V0 0
dt
2
VDD-Vtn
.9VDD
.1VDD
19Vdd 20Vtn
CL
tf 2
ln
n Vdd Vtn
Vdd
tf ~ 4 CL
n Vdd
n Wn
tox
Ln
34
tr ~ 4 CL
p Vdd
2015 Centre for Development of Advanced Computing
p Wp
tox
L
p
35
tr
tdr
2
tf
td f
2
td f tdr t f t r
av
2
4
36
Increase W
37
Loading Effects...
Fan-out Delays
Driving Big Loads (off-chip)
Output Drive Buffers
38
CL
Cout Cinter
Circuit
Cin
n = Kn (W/L)n
Load seen by the Inverter:
CL = Cout + Cinter + Cin
(due to self )
CL = 240 ff
v
A
,
v2
= 18 (3/2)
tf = 4 CL = 7.1 ns
nVdd
tr = 7.1 ns
Cin = 40 ff
Cout = 100 ff
Cinter = 100 ff
39
Minimum size
Cin
= 100 + 5 ( 100 + 40 )
= 800 ff
Cin
Cout
Very High
40
Ln = 2
Wp = 27 Lp = 2
Cin
(Taking L constant)
For Fan-out-1:
Since it is
Cin = 40(3) = 120 ff 3 times
Cout = 100 (3) = 300 ff
Cinter = 100ff
CL = 520 ff
For Fan-out-5:
tD ~2.6 ns
tD ~ 6.9 ns
Acceptable
41
PAD Frame
42
43
CL = Cout + Cext
Kin = 40 ff
3
Kout=100 ff
3
= Kout* W + Cext
= 100 * 3 + 2000 ff
3
CL = 2100 ff
Cext = 2pf
Cout
Very Large
tf = 4 CL = 4 (2100) = 47ns
nVdd 30 (3/2) 4
td = tf/2 = 24 ns
44
CL
If chain is too long Too large signal-delay due to intrinsic delay of each inverter
If chain is too short Very weak output-signal slop with long rise and fall time Long Delay !
How to decide the length of the Chain and the size of each inverter ???
2015 Centre for Development of Advanced Computing
45
46
Ci
1
C1
Out
u2
u
C2
CN-1
uN-1
CL
CN/C0 = uN
N = ln (CN/C0)
ln u
u2
uN-1
Ci
CL
Delay
Stage Ratio u
Delay D is minimum for stage ratio ~ 2.71
In practice, Stage Ratio is taken 3 to 5 based on the fabrication process
2015 Centre for Development of Advanced Computing
N = ln (CN/C0)
ln u
47
Cascade of Inverters
Where it is used ?
48
GND
100 m
Out
VDD
In
GND
Out
49
Chip Bonding
50
51
MEMORY CLASSIFICATION
52
Memory Organization
Array-Structured Memory Architecture
Problem: ASPECT RATIO or HEIGHT >> WIDTH
16 K - 1 bit cells
AK
AK+1
AL-1
Decoder
Bit Line
Storage Cell
Row Decoder
16 K Select Signals
2L-K
Word Line
M.2K
2 14 = 16, 384
14-16384 Decoder
A0
Column Decoder
A K -1
Or 2, 7-128 Decoder
Block Decoder
2015 Centre for Development of Advanced Computing
Input-Output
(M bits)
Amplify swing to
rail-to-rail amplitude
Selects appropriate
word
53
DYNAMIC (DRAM)
Periodic refresh required
Small (1-3 transistors/cell)
Slower
Single Ended
2015 Centre for Development of Advanced Computing
54
55
SRAM Layout
Metal2
56
3 Transistor cells
Now 1-T cell
57
Stack
58
DRAM problems:
Long data lines
>Large capacitance compared to the
storage cell capacitance.
59
Conclusion
Spice is a very accurate Circuit level Simulation tool involving
a lot of floating point calculations.
http://www.ecircuitcenter.com
2015 Centre for Development of Advanced Computing
60