Documente Academic
Documente Profesional
Documente Cultură
Giovanni Anelli
CERN - European Organization for Nuclear Research
Physics Department
Microelectronics Group
CH-1211 Geneva 23 Switzerland
Giovanni.Anelli@cern.ch
POWER
DISSIPATION
LINEARITY
GAIN
ANALOG
DESIGN
OCTAGON
INPUT/OUTPUT
IMPEDANCE
SUPPLY
VOLTAGE
VOLTAGE
SWINGS
SPEED
Behzad Razavi, CMOS Technology Characterization for Analog and RF Design", IEEE JSSC, vol. 34, no. 3, March 1999, p. 268.
Choose architecture
Layout Versus Schematic
(LVS) check
Simulate schematic
Extracted schematic
simulations
BLOCK DONE!
Masks layout
In a complex design,
this will be repeated
for every block of the
design hierarchy.
Outline
Single-stage amplifiers
The differential pair
The current mirror
Differential pair + active current mirror
Operational amplifier (op amp) design
B. Razavi, Design of Analog CMOS Integrated Circuits, McGraw-Hill International Edition, 2001.
P.R. Gray, P.J. Hurst, S.H. Lewis, R.G. Meyer, Analysis and Design of Analog Integrated Circuits, J. Wiley & Sons, 4th edition, 2001.
R. Gregorian, Introduction to CMOS Op-Amps and Comparators, J. Wiley & Sons, 1999.
R.L. Geiger, P.E. Allen and N.R. Strader, VLSI Design Techniques for Analog and Digital Circuits, McGraw-Hill International Edition, 1990.
D.A. Johns and K. Martin, Analog Integrated Circuit Design, J. Wiley & Sons, 1997.
Outline
Single-stage amplifiers
Common-source Stage
Common-drain Stage (Source Follower)
Common-gate Stage
Cascode Stage
Folded cascode Stage
Vout = VDD R D
DC characteristic
RD
Vout
Vin
( Vin VT )2
2n
Vout
= R D ( Vin VT ) = gmR D
Vin
n
G = gm (r0 // R D ) = gm
r0R D
r0 + R D
gmVGS
S
Vout
RD
ro
CSS Simulation - DC
2.5E-02
3
2.5
1.5E-02
1.5
1.0E-02
1
Vout
Ids
gm
0.5
5.0E-03
0.0E+00
0
0.5
1.5
Vin [ V ]
Puebla, December 2004
2.5
IDS [ A ], g m [ S ]
2.0E-02
Vout [ V ]
W = 100 m
L = 0.5 m
R = 100
The maximum
small signal
gain is only
1.8!!!
CSS Simulation - DC
Increasing the value of the load resistor to 1 k we have
3
1.2E-02
Vout
Ids
gm
1.0E-02
8.0E-03
1.5
6.0E-03
4.0E-03
0.5
2.0E-03
0.0E+00
0
0.5
1.5
Vin [ V ]
Puebla, December 2004
2.5
IDS [ A ], g m [ S ]
Vout [ V ]
2.5
W = 100 m
L = 0.5 m
R = 1000
The maximum
small signal
gain is now
9.6.
0.905
1.774
0.903
1.772
1.77
0.901
1.768
0.899
1.766
0.897
1.764
0.895
1.762
0
R = 1000
Ids [ mA ]
Vin [ V ]
10
0.905
0.738
0.903
0.736
0.734
0.901
0.732
0.899
0.73
0.897
0.728
0.895
0.726
0
V out [ V ]
Vin [ V ]
t [ ms ]
gm = 9.6 mS
10
t [ ms ]
Puebla, December 2004
Diode-connected transistor
A MOS transistor behaves as a small signal resistor when gate and
drain are shorted. A transistor in this configuration is referred to as
diode-connected transistor. The device is always in saturation.
To calculate the impedance of this device we use the small-signal
equivalent circuit and a test voltage generator (in red). The ratio
between the voltage vx applied and the current ix gives the impedance.
ix
G, D
gmVGS
ro
vx
ix = gm v x +
+
R=
vx
r0
vx
1
1
=
1 gm
ix
gm +
r0
The calculation show that the impedance is given by the parallel of two
resistors, 1/gm and r0.
Puebla, December 2004
Diode-connected transistor
Impedance seen looking into the source.
VDD
G, D
ro
gmVGS
ix
vx
ix
vx
v
ix = gm v x + x + gmb v x
r0
R=
gmbVBS
vx
1
1
=
1 gm + gmb
ix
gm + gmb +
r0
In this case we have three resistances in parallel: 1/gm, 1/gmb and r0.
Puebla, December 2004
Diode-connected transistor
Impedance seen looking into the drain with a resistor RS between the
source and ground.
G, D
ix
vx
ix
+
ro
gmVGS
gmbVBS
S
RS
ix = gm (v x ixR S ) +
vx
B
RS
v x i xR S
gmbixR S
r0
1
1 + gm + gmb + R S
r0
v
1 gm + gmb
R= x =
+
RS
1
ix
g
g
m
m
gm +
r0
Without bulk effect (gmb) and the channel length modulation (r0) we
would see the series of 1/gm and RS. If RS = 0 we find again 1/gm.
Puebla, December 2004
T2
G = gm1
Vout
Vin
T1
1
gm2 + gmb2 +
1
1
+
r02 r01
gm1
gm2
1 g
= m1
gm2 gm2 + gmb 2
n2 gm2
n2
(W / L )1
(W / L )2
In an N-well CMOS process, the bulk contacts of all the NMOS are
connected together to ground (substrate). On the other hand, each bulk
contact of the PMOS (each well) can be connected to a desired signal.
Puebla, December 2004
i = gm1vin +
ro2
gm2VGS2
gmb2VBS2
v out
r01
i = gm2 v out
v out
gmb 2 v out
r02
S2, Vout
i
G1
Vin
D1
r01
gm1VGS1
S1
B1
B2
1
1
G=
v out
= gm1
vin
g
m2
1
+ gmb 2
1
1
+
+
r02 r01
G = gm1
T2
Vout
Vin
T1
gm2
1
g
m1
1
1
gm2
+
+
r02 r01
G=
n (W / L )1
p (W / L )2
r01 r02
1
Small signal G = g (r // r ) = g
g
=
m1 01
02
m1
m1
1
1
r01 + r02
gain
+
r02
T2
Vout
Vin
T1
r01
The output of the circuit shown is in an undefined state (highimpedance node). This circuit needs therefore an external system to
fix its output DC bias point (we need a feedback network!).
Puebla, December 2004
Load Transistor
1.2E-04
1.4E-03
2.5
1.0E-04
1.2E-03
8.0E-05
gm [ S ]
6.0E-05
1.5
W2 = 800 m
L2 = 4 m
1.0E-03
IDS [ A ]
V out [ V ]
Input Transistor
8.0E-04
6.0E-04
4.0E-05
4.0E-04
Vout
0.5
2.0E-05
Ids
0
0.0E+00
0
0.5
1.5
2.0E-04
0.0E+00
2.5
Vin [ V ]
Puebla, December 2004
0.5
Vin [ V ]
Giovanni Anelli, CERN
1.5
2.5
101
Vin [ V ]
100.8
0.636
100.7
0.634
100.6
0.632
100.5
0.63
100.4
0
Ids [ A ]
100.9
0.638
0.638
1.5
1.4
0.636
1.3
0.634
1.2
0.632
1.1
0.63
1
0
10
V out [ V ]
Vin [ V ]
1.6
10
t [ ms ]
0.64
t [ ms ]
Puebla, December 2004
T2
Vout
Vin
G = gm1
T1
1
PCox
W2
(VDD Vb VTP )
L2
gm
G=
=
RD
1
1 + gmR S
+ RS
gm
RD
G=
gm
R D = gm _ eq R D
1 + gmR S
Vout
Vin
RS
vx
D
ix
gmbVBS
RS
B
ix = gm v s +
ro
gmVGS
vx vs
gmb v s
r0
RS
v s = i xR S
vx
=
= r0 + R S + (gm + gmb ) r0R S
ix
Giovanni Anelli, CERN
vx
Approximated small
signal gain
Gappr . =
gm
R D = gm _ eq R D
1 + gmR S
RD
Vout
Vin
G = gm _ eq R out
gmr0
R S + r0 + (gm + gmb ) R S r0
Exercise: try to obtain the same equation with the complete small signal circuit
Puebla, December 2004
Vin
Vout
RS
G=
G=
Vout
1
= gm R S //
Vin
gm + gmb + 1/ r0
gm
gm + gmb +
1
1
+
r0 R S
gm R S
1 + (gm + gmb ) R S
The gain of our buffer is never one! It is, in the best case, 1/n
Puebla, December 2004
1
gm1
=
GSF _ NMOS = gm1 r02 //
gm1 + gmb1 + 1/ r01 gm1 + gmb1 + 1/ r01 + 1/ r02
VDD
Vin
T1
Vout
Vb
T2
1
gm1
=
GSF _ PMOS = gm1 r02 //
gm1 + 1/ r01 gm1 + 1/ r01 + 1/ r02
1
gm1
=
G = gm1 R L // r02 //
gm1 + 1/ r01 gm1 + 1/ r01 + 1/ r02 + 1/ R L
VDD
Vb
T2
Vout
Vin
RL
T1
gm1
RL
=
gm1 + 1/ R L R L + 1/ gm
RD
Vout
Vb
R in =
1 + R D / r0
R D + r0
=
gm + gmb + r0 1 + (gm + gmb ) r0
G=
Vin
R out _ CGS = r0
G=
R out
R in _ R D =0
EXERCISE!
r (gm + gmb ) + 1
RD
= RD 0
gm n R D
R in
R D + r0
The input impedance of a CGS is relatively low, but this only if the load
impedance in low. The gain is slightly higher to the one of a CSS, since we
apply the signal to the source. N.B. We have calculated the small signal gain
using 2 different methods (red and blue). The results are identical!
Puebla, December 2004
R D + r0
R in = R S +
1 + (gm + gmb ) r0
VDD
RD
Vout
Vb
RS
vin
R D = v out
R in
v out R D
1 + (gm + gmb ) r0
G=
=
= RD
vin
R in
R S [1 + (gm + gmb ) r0 ] + R D + r0
This result is very similar to the one of a Common Source
Stage with source degeneration. The gain here is still
slightly higher due to the body effect. It is now also easy
to calculate the resistance seen into the output.
+
Vin
v out
RD
r01
= vin gm1
RD
R D + r02
r01 +
1 + (gm2 + gmb 2 ) r02
REMINDER
I
Vout
Vb
Vin
T2
T1
R1
G = gm1
r01
R D gm1R D
R D + r02
r01 +
1 + (gm2 + gmb 2 ) r02
I1 =
R2
I
R1 + R 2
R2
Vin
T2
R out _ CascS = r01 + r02 + (gm2 + gmb2 ) r01r02 (gm2 + gmb2 ) r01r02
T1
VDD
Vb1
T3
Vout
Vb2
Vin
G gm1R out
T2
T1
VDD
RD
T1
Ib
Vout
T2
Vb
Vin
T1
Vb
T2
Vout
Ib
RD
This solution is has a lower output impedance than the standard CascS
and consumes more current for the same performance.
Puebla, December 2004
Outline
Single-stage amplifiers
The differential pair
Differential signal advantages
The differential pair
Single-Ended vs Differential
A single-ended signal is defined as a signal measured with respect to a
fixed potential (usually, ground).
A differential signal is defined as a signal measured between two nodes
which have equal and opposite signal excursions. The center level in
differential signals is called the Common-Mode (CM) level.
The most important advantage of differential signals over single-ended
signals is the much higher immunity to environmental noise.
As an example, lets suppose to have a disturbance on the power supply.
VDD
VDD
RD
Vout_SE
RD
Vout +
RD
Vout -
Single-Ended vs Differential
The Common-Mode disturbances disappear in the differential output.
Vdd
Vout_SE = Vout +
Vout Vout_diff
Vin1
RD
Vin,CM
RD
Vout1
Vin2
Vout2
Vout2
Vin1
Vin2
ISS
Vout,CM
Vout1
v
V
R
branches (I1 + I2= ISS) independent from the input
out ,CM
DD
D
2
common mode voltage.
The output common mode voltage is then given by:
Puebla, December 2004
Differential Pair
VDD
VDD
RD
Vout1
RD
Vout1
Vout2
Vout2
Vin1
VDD - RD ISS
Vin1 - Vin2
Vin2
Vout1 - Vout2
RD ISS
ISS
Vin1 - Vin2
- RD ISS
RD
RD
Vout1
Vin1
vin,CM _ max
Vout2
T1
Vb
T2
T3
Vin2
ISS
= min VDD R D
+ VT 1 , VDD
2
vlim =
RD ISS
2ISS
/n
Vlim
Vin1 - Vin2
- Vlim
v out = R D I
- RD ISS
I = ISS
4ISS
2
I =
Vin
Vin
2n
/n
I = ISS
Gm
ISS
- Vlim
Vlim
Vin
4ISS
2
2Vin
/n
I
=
Gm =
Vin 2n 4ISS
2
Vin
/n
Puebla, December 2004
Vin
Vlim
- Vlim
vin = 0
Gm =
2 ISS
n 2
Gm =
2 ISS
n 2
v out = R D I = R D Gm vin
v out
2 ISS
= RD
G=
vin
n 2
G = R D gm
Puebla, December 2004
RD
Vout1
Vin1
Vout2
T1
Vb
T2
Vin2
v out1 = gm R D vin1
v out 2 = gm R D vin2
T3
VDD
RD
RD
Vout1
Vin1
RD
Vout2
T1
Vb
T2
Vin2
Vout
Vin,CM
T1
GCM =
2r03
T3
v out
RD
=
vin,CM
1/ gm + 2r0
CMRR =
G
GCMDM
g
G = gmN
// r0N // r0P mN
gmP
gmP
VDD
T3
VDD
T4
T1
T2
Vin2
Vin1
ISS
T3
T4
T1
T2
ISS
Vb
Vout2
Vout1
Vout2
Vout1
Vin1
Vb
Vin2
T7
T8
Vb3
Vb2
T5
T6
Vb2
Vout1
Vb1
Vin1
T3
T4
T1
T2
Vout2
Vin2
In deep submicron
technologies they are used
with more care.
Vb1
ISS
Puebla, December 2004
2
Vth
+
/
gm
22
VGS [mV ] 20
18
16
14
/ = 1 . 4 %
VT = 4.5 mV
12
10
8
2I
VT
6
4
2
0
1.E-02
1.E-01
1.E+00
1.E+01
I.C.
Puebla, December 2004
1.E+02
1.E+03
Outline
Single-stage amplifiers
The differential pair
The current mirror
Standard Current Mirror
Cascode Current Mirror
Low-voltage Cascode Current Mirror
Current Mirror Output Impedance
Current Mirror Mismatch
IREF
WR
LR
I1
I2
W1
L1
W2
L2
W1
(1 + 1VDS1 )
L
I1 = IREF 1
WR
(1 + R VDSR )
LR
GND
@ VDS1 = 2.5 V
0.1
I1 [ mA ]
0.08
VDS1 _ min_ SI =
0.06
2I1
Coxn( W1 / L1 )
VDS1 _ min_ WI = 4n t
0.04
L = 10 um
L = 0.5 um
0.02
0
0
0.5
1.5
2.5
VDS1 [ V ]
Puebla, December 2004
T1
L = 0.5
[m]
L = 10
[m]
ID [A]
106
100.3
[mA/V2]
60.54
2.488
gm [mS]
1.77
0.594
VT [mV]
635.7
635.6
VGS [mV]
636.7
943
VDS_sat [mV]
70.76
269.7
Rout [M]
0.866
14.5
VDD
IREF
VD3
W3
L3
VG3
VD1
VD2
W1
L1
W2
L2
GND
I3 = IREF
VD2
(gm3
W2 / L 2
W1 / L1
VP
+ gmb 3 ) r03
IREF
I3
W4
L4
W3
L3
VD1
VD2
W1
L1
W2
L2
GND
I3 = IREF
W2 / L 2
W1 / L1
W2 / L 2 W3 / L 3
=
W1 / L1 W4 / L 4
The problem of this current mirror is that VD3 > VDS3 + VGS2.
Puebla, December 2004
@ VD3 = 2.5 V
T2
T3
ID [A]
100
100
0.08
[mA/V2]
60.54
13.08
0.06
gm [mS]
1.676
1.211
VT [mV]
635.7
852
VGS [mV]
636.7
962.4
VDS_sat [mV]
70.75
128.7
Rout [M]
0.108
1.037
I3 [ mA ]
0.1
0.04
W1 = W2 = 100 m
L1 = L2 = 0.5 m
W3 = W4 = 50 m
L3 = L4 = 1 m
0.02
0
0
0.5
1.5
2.5
VD3 [ V ]
Puebla, December 2004
IREF
I3
VD3
W4
VB
L4
VD1
W3
L3
VD2
W1
L1
GND
W2
L2
I3 = IREF
W2 / L 2
W1 / L1
W2 / L 2 W3 / L 3
=
W1 / L1 W4 / L 4
The minimum output voltage (VD3) here is just two saturation voltages.
Puebla, December 2004
@ VD3 = 2.5 V
0.12
T2
T3
ID [A]
100
100
0.08
[mA/V2]
60.5
13.57
0.06
gm [mS]
1.641
1.208
VT [mV]
635.7
692.4
VGS [mV]
642.5
798.3
VDS_sat [mV]
72.87
123.6
Rout [M]
0.021
1.6
I3 [ mA ]
0.1
W1 = W2 = 100 m
L1 = L2 = 0.5 m
W3 = W4 = 50 m
L3 = L4 = 1 m
0.04
0.02
0
0
0.5
1.5
2.5
VD3 [ V ]
Puebla, December 2004
VDD
0.1
IREF
I3 [ mA ]
0.08
I3
VD3
0.06
0.04
0.02
W4
VB
L4
VD1
VD2
W1
L1
0
0.4
0.6
0.8
1.2
1.4
VB [ V ]
Puebla, December 2004
W3
L3
GND
W2
L2
IOUT [ mA ]
0.1
Vout_min
Precision
CM
VDS1_sat
CCM
VGS2 + VDS3_sat
Good
LVCCM
VDS2_sat + VDS3_sat
Good
0.08
0.06
0.04
CM - L = 1 um
0.02
LVCCM
CCM
0
0
0.5
1.5
VOUT [ V ]
Puebla, December 2004
2.5
Standard CM
VDD
VDD
LVCCM
Vout
WR
LR
W1
L1
GND
rout = r01
Puebla, December 2004
Iout
Iout
Vout
Iout
Vout
IREF
IREF
IREF
VDD
W4
L4
W3
L3
W1
L1
W2
L2
GND
W4
L4
Vb
W1
L1
GND
W3
L3
W2
L2
2
/
gm
+
Vth
I
14
/ = 1 . 4 %
12
VT = 4.5 mV
10
8
6
4
2
0
1.E-02
1.E-01
1.E+00
I.C.
Puebla, December 2004
1.E+01
1.E+02
1.E+03
Outline
Single-stage amplifiers
The differential pair
The current mirror
Differential pair + active current mirror
Common mode, small signal and large signal analysis
Noise
Offset
T3
T4
T2
T1
Vin
T5
T1
T2
vin
2
ISS
vin
T4
Vout
Vin,CM
T2
T1
Vb
Puebla, December 2004
T5
GCM
Vout
=
Vin,CM
r03 ,4
1
//
2gm3,4
2
=
=
1
+ r05
2gm1,2
gm1,2
1
=
1 + 2gm1,2r05 gm3,4
Giovanni Anelli, CERN
Noise in a DP + Active CM
VDD
VDD
2I
2I
vin2
vin2
v 2tot
i2out
2
vload
2
vload
v 2tot
Puebla, December 2004
2
2
g
m _ load
2
vload
= 2 v in + 2 2
g
m
_
in
i2out
Noise in a DP + Active CM
VDD
2
tot _ 1 / f
Cox WinLin f
K a _ in in Lload
K a _ in
2I
v
2
tot
load
2
L load
= 4kTn
1+
W
Win
2 inCox
I
in
L
in
Lin
W
W
Make >
L in L load
Puebla, December 2004
Offset of a DP + Active CM
RANDOM OFFSET (WORST CASE)
VDD
v off = VT 1,2 +
2I
I
gm1,2
1,2 3 ,4 gm3 ,4
+
+
V
T 3,4
3,4
I
1,2
SYSTEMATIC OFFSET
v off
Vin
T1
T2
Vout
T3
T4
List of Acronyms
CSS:
Common-Source Stage
CSS-CSL:
SF:
CGS:
Common-Gate Stage
CascS:
FCascS:
DP:
Differential Pair
CM:
Current Mirror
CCM:
LVCCM:
CMRR:
sorry
Outline
Single-stage amplifiers
The differential pair
The current mirror
Differential pair + active current mirror
Frequency analysis of an amplifier
Operational amplifier (op amp) design
Single-stage op amps
Two-stage op amps
INVERTING
CONFIGURATION
R2
Vin
Vout
Vin
Vout
R1
R1
R2
BUFFER
Vin
Vout = Vin
R2
G=
R1
R
G = 1+ 2
R1
G=1
The above equations are valid only if the gain of the op-amp is very high!
Puebla, December 2004
Single-stage Op Amp
VDD
T7
Vb2
T8
T5
T6
Vb2
Vout
Vb1
T3
T4
T1
T2
Vin
Vb1
ISS
Two-stage Op Amp
G = gm1,2 (r01,2 // r03 ,4 ) gm5 ,6 (r05 ,6 // r07 ,8 )
VDD
T3
T4
T5
Vb1
T1
T6
T2
Vin
Vout1
Vout2
ISS
Vb2
T7
T8
Two-stage Op Amp
G = { gm1,2 [(gm3 , 4 + gmb 3 , 4 )r03 , 4r01,2 )] // [(gm5 ,6 + gmb 5 ,6 )r05 ,6r07 ,8 )] } gm9 ,10 (r09 ,10 // r011,12 )
VDD
Vb3
T7
T8
Vb3
Vb2
T5
T6
Vb2
To increase the
gain, we can again
make use, in the
first stage, of
cascode structures.
T9
T10
Vb1
Vout1
T3
T4
T1
T2
Vb1
Vout2
Vin
Vb4
T11
ISS
T12
Vb4
Two-stage Op Amp
G = gm1,2 (r01,2 // r03 , 4 ) gm6 (r06 // r08 )
VDD
T3
T4
T5
Vb
T1
T6
T2
Vin
Vout
ISS
T7
T8