Chapter 4 p
Differential Amplifiers
CMOS Differential Amplifiers
Basic Concepts-L15
Basic Concepts L15
Single ended vs Differential Signals Single-ended vs. Differential Signals
Si l d d i l M d ith
• Single-ended signal: Measured with respect to a fixed potential, typically ground
ground.
• Differential signal: Measured between two symmetric nodes (nodes have equal and y ( q opposite signal excursions around a fixed potential, called a “common-mode” level)
Why Differential?
Why Differential?
• In a single amplifier V
DDfluctuations appear directly on the amplified signal appear directly on the amplified signal.
• In a differential pair, if we measure V
X-
V h fl i l
V
Ythe fluctuations cancel out.
Why Differential?
Why Differential?
• In a single CS amplifier, the maximum swing is V
DD-(V
GS-V
TH)
swing is V
DD(V
GSV
TH)
• In a differential pair it can be shown
h h i f V V h
that the swing of V
X-V
Ycan reach
2[V
DDDD-(V (
GSGS-V
THTH)]. )
Clock Noise Reduction
Clock Noise Reduction
Other advantages of differential amplifying
• Simpler biasing
• Higher linearity Higher linearity
Simple Symmetric Differential Pair won’t do!
Simple Symmetric Differential Pair won t do!
Good features:
R j ti f Rejection of VDD
fluctuations fluctuations, Larger swing.
Key problem: Input signal common-
signal common mode affects bias conditions, and differential
amplification.
Solution: Source-coupled (“long-tailed”) Pair, biasing with a current source
If Vin1=Vin2 then ID1=ID2=ISS/2 Then V =V =V R I /2 Then Vout1=Vout2=VDD-RDISS/2
“Current stealing “ phenomenon Current stealing phenomenon
If Vi 1>>Vi 2 then M2 If Vin1>>Vin2, then M2 turns off and M1
steals all the current steals all the current.
If Vin1<<Vin2 then M2 k ll h
takes all the current.
Common Mode Response Common-Mode Response
Can Vin,CM be arbitrarily large or small?
V
in,CM,Cmust be large enough for M
33to be in saturation
M1,M2 operate like Source Followers: VP
increases as Vin,CM increases – must be larger than Vb-VTH3
V
in,CM,Cmust not be too large to keep M
1and M
2from entering Triode Mode
] 2 ,
min[
)
( 3 3 , 1
1 TH DD
SS D DD
CM in TH
GS
GS I V V
R V
V V
V
V + − ≤ ≤ − +
Consequences of V
in,CM,Cgoing “off range”
• As long as common mode voltage is within theAs long as common mode voltage is within the permitted range, differential gain is almost
insensitive to it insensitive to it.
• Once too small or too large – gain falls off.
Common-Mode Input vs. Output Swing Tradeoff
E h d i lt
Each drain voltage can go as high as VDD and as low
V V
as Vin,CM-VTH.
The larger Vin,CM the smaller
th i
the swing.
Two types of Differential Gains Two types of Differential Gains
“Single-g
ended”: Vout1 (or Vout2)
V V
( out2)
with respect to ground.
? )
(
2 1
2
1 =
−
= −
in in
out out
v V V
V diff V
A g
? .)
. (
2 1
1 =
= −
in in
out
v V V
E V S A
2
1 in
in
Current Division Mechanism Current Division Mechanism
Calculate ID1 and ID2 in terms of Vin1 and V assuming the circuit is symmetric M Vin2, assuming the circuit is symmetric, M1
and M2 are saturated, and λ=0.
Since the voltage at node P is equal to TH
D
GS V
W V = 2I +
Since the voltage at node P is equal to VP=Vin1-VGS1=Vin2-VGS2,
V V V V
n L k 'W
Vin1-Vin2=VGS1-VGS2
Current Division Mechanism Current Division Mechanism
Given the inputs and Given the inputs and ISS: Solve two
equations with two equations with two unknowns for the transistor currents:
transistor currents:
2 1
2 1
2
2 D D
in
in W
I W
V I
V − = −
'
' n
n
I I
I
L k W
L k W
2
1 D
D
SS I I
I = +
CMOS Differential Amplifiers
Small-Signal Differential Gain-L16
Small Signal Differential Gain L16
Current Difference Properties Current Difference Properties
Even though each e t oug eac current is an even function of its
respective gate-
source voltage, the current difference is current difference is an odd function of the input voltage
)2
4 ( )
1 ( SS
V I V
V W V
C I
I = μ
p g
difference
2 1
2 1
2
1 ( ) ( )
2 in in
OX n
in in
OX n
D
D V V
L C W
V L V
C I
I − = − − −
μ μ
Differential Transconductance Gain vs. Input Voltage
4I
) (
/ 2
4 2
2
1 in
in ox
n
SS ox
n m
D
V L V
W C
I W
G C
I − −
=
Δ = μ μ
∂
∂
) 4 (
2 2
2
1 in
in SS
m
in V V
C W L I
V − −
Δ
μ
∂
ox
nC L
μ
Maximum Differential Transconductance Gain Occurs at ΔV
in=0
W I C
G ⎟ ⎞
⎜ ⎛
= μ
max
, n ox SS
m
I
C L
G ⎟
⎜ ⎠
= μ ⎝
Differential Voltage Gain Differential Voltage Gain
in m
D D
D out
out V R I R G V
V 1 − 2 = Δ = Δ
Differential Voltage Gain near ΔV = 0 Differential Voltage Gain near ΔV
in= 0
|
| V out m,max D n ox ISS RD
L C W
R V G
A V = = μ
Δ
= Δ ,
in L
ΔV
Differential Transconductance Gain Falls to Zero at ΔV
in= ΔV
in12
1
W
V
in= I
SSΔ
L C
oxW
μ
nCurrent Difference Properties Current Difference Properties
It appears as if t appea s as ΔIDD also a so becomes zero at
ΔVin2=(4ISS/(µnCOXW/L))1/2 But this is incorrect.
ΔV > ΔV at which a total ΔVin2> ΔVin1 at which a total current stealing occurs.
)2
4 ( )
1 ( SS
V I V
V W V
C I
I 1 2 = μ ( 1 2) ( 1 2)
2 in in
OX n
in in
OX n
D
D V V
L C W
V L V
C I
I − = − − −
μ μ
ΔV
in= ΔV
in1is the maximum differential input that the amplifier can “handle”
2
1
W
V
in= I
SSΔ
L C
oxW
μ
nAlso note that at ΔV
in=0 each transistor carries a current of I
SS/2 and therefore :
I )
( 1,2
L C W
V I V
ox n
SS TH
GS − = μ
L
Compare this equilibrium
)
( GS TH 1 2 Vin1 V
V Δ
= overdrive to the maximum −
differential input permitted: (VGS VTH )1,2 2
2I V = SS Δ 1
L C W
V
ox n
in = μ
Δ
It means that if we try to increase ΔVin1, for a given ISS, we need larger overdrive voltage in each
transistor, and this is accomplished by reducing W/L
)
( 1,2
C W V I
VGS − TH = SS
)
( GS TH 1 2 Vin1 V
V Δ
=
−
Cox L μn
) 2 (VGS VTH 1,2
2I V = SS Δ 1
L C W
V
ox n
in = μ
Δ
Small-Signal Differential Voltage Gain
• For |ΔVFor |ΔViin|≈0 (sufficiently small) we have:| 0 (sufficiently small) we have:
|
| out W I R R
C R
V G A Δ
|
| m,max D n ox SS D m D
in out
V I R g R
C L R
V G
A = = =
= Δ μ
Where g is that of a NMOS with a current of Where gm is that of a NMOS with a current of ISS/2
Differential Gain: What does each input
“see”?
• By superposition let’s short Vin2 to ground and see the effect of Vi 1
see the effect of Vin1:
• The effect of Vin1 on VX is the same as that of a CS amplifier
CS amplifier
(degenerated by the
resistance seen looking into the source of M ) into the source of M2) on VD
Differential Gain: Effect of V on V Differential Gain: Effect of V
in1on V
XNeglecting λ2 and gmb2 RS≈1/gm2
1 1
D
X
R
V
V −
≈
2 1
1
1 1
m m
in
g g
V +
2
1 m
m
g
g
Differential Gain: Effect of V on V Differential Gain: Effect of V
in1on V
YThe effect of Vin1 on VY is the same as that of a Source
F ll (M ) lifi d i i C G
Follower (M1) amplifier driving a Common-Gate amplifier (M2)
1 in
T
V
V =
11
T
in T
R =
1 m
T
g
Differential Gain: Effect of V on V Differential Gain: Effect of V
in1on V
YThe effect of Vin1 on VY is the same as that of a Source
F ll (M ) lifi d i i C G
Follower (M1) amplifier driving a Common-Gate amplifier (M2)
R V
1
1 1
D in
Y
R
V V
+
≈
2 1
1
m m
in
g
g +
V V as function of V if V =0 V
X-V
Yas function of V
in1if V
in2=0
2R
1 1
_
_ 1 1
) 2
( 1 in m D in
D V
to due Y
X R V g R V
V
V in = −
+
= −
−
2
1 m
m g
g
Because gm1=gm2=gm
By Symmetry: V
X-V
Yas function of V
in2if V
in1=0
2R
2 2
_
_ 1 1
) 2
( 2 in m D in
D V
to due Y
X R V g R V
V
V in =
+
=
−
2
1 m
m g
g
V V as function of V and V V
X-V
Yas function of V
in2and V
in11 2
_
) _
(VX −VY due to both = gmRDVin − gmRDVin
yielding the gain g R regardless where yielding the gain gmRD regardless where and how the inputs are applied
Single-ended Differential Voltage Gain
g V
2 2
1
, D
m in
in
X SE
V g R
V V
A V = −
= −
2 2
1
, D
m in
in Y SE
V g R
V V
A V =
= −
2
1 in
in
Comparison: Differential voltage gain of a differential amplifier vs voltage gain of a CS differential amplifier vs. voltage gain of a CS
amplifier
• If the same current source ISS drives the
differential amplifier and the CS, each transistor
√ of the differential amplifier has gm which is 1/√2 of that of the CS transistor. Differential gain
√ reduces by a factor of 1/√2 .
• If both amplifiers have the same W/L in each transistor and the same load, and we want the gain to be the same, then if we use ISSSS at CS, we need to use 2ISS at the differential amplifier.
The “Virtual Ground” Concept The Virtual Ground Concept
• In a symmetric device (as above), if inputs change anti-y ( ), p g symmetrically (one goes up by a certain amount, and the other goes down by the same amount), then VP does not change
change.
• For small-signal analysis point P becomes “virtual ground”.
g
The “Virtual Ground” Concept The Virtual Ground Concept
• Explanation: Consider the complete “Kirchhoff path”
V ÆD ÆD ÆV
Vin1ÆD1ÆD2ÆVin2.
• By symmetry of the devices, and anti-symmetry of sources, using voltage-division argument, VP stays sources, using voltage division argument, VP stays constant.
• See book (pp. 114-115) for 2-3 more explanations.
The “Half Circuit” Concept The Half-Circuit Concept
• For small-signal analysis because point P isFor small signal analysis, because point P is
“ground” (this is valid only if inputs are anti-
symmetric and devices are symmetric!) we can symmetric and devices are symmetric!), we can analyze each CS “half-circuit” separately.
Differential Gain with λ effect Differential Gain with λ effect
• Based on the half-circuit concept gainBased on the half circuit concept, gain calculation is highly simplified. We get:
• V /V = g (R ||r )=V /( V )
• VX/Vin1=-gm(RD||ro)=VY/(-Vin1)
• (VX-VY)/2Vin1=-gm(RD||ro)
In general V
in1and V
in2are arbitrary (not
necessarily anti-symmetric): What do we do?
Analysis of Differential Amplifiers for arbitrary inputs
A l i it t l
• As long as circuit operates more or less linearly, we use superposition of two
analyses:
• Differential input analysis, using anti- p y , g symmetric inputs derived from the difference between the inputs.
d e e ce bet ee t e puts
• Common-mode analysis, where an input equals to the average of both inputs is
equals to the average of both inputs is
applied to both transistors.
CMOS Differential Amplifiers
Common-Mode Analysis –L17
Common Mode Analysis L17
Goal: No common-mode signal at amplifier’s output
• If amplifier is not 100% symmetric, CM signals will not be fully cancelled out. g y
• If the DC current source (biasing the
amplifier) is not ideal (that is has a finite
amplifier) is not ideal (that is, has a finite
output resistance) then CM signal appears
at each single-ended output.
Single-ended Common-Mode
Response of a symmetric amplifier
Consider a small- signal analysis for signal analysis for the common-mode signal
signal.
Current source is represented by its output resistance RSS
Single-ended Common-Mode
Response of a symmetric amplifier
As Vin,CM changes so does VP As a so does VP. As a result, ID currents change and VX and change, and VX and VY change.
VX-VY continues to be zero.
Single-ended Common-Mode
Response of a symmetric amplifier
To find VX as
function of Vi CM we function of Vin,CM we may do a “half
circuit analysis”
circuit analysis , splitting RSS into two parallel 2RSS two parallel 2RSS resistors, or
equivalently equivalently,
connect transistors in parallel (as
in parallel (as shown).
Single-ended Common-Mode Gain of a symmetric amplifier assuming λ=0 and γ=0
C Y C
X C
out CM
V V
V V
V V
A , = V = =
D
CM in CM
in CM
in
R
V V
V
−
= / 2
, ,
,
SS
m R
g ) + 2
/(
1
M +M has M1+M2 has
twice the width and bias
and bias current,
therefore g is therefore gm is doubled.
Most Primitive Differential Amplifier:
Resistor in place of current source
• Example: Let VExample: Let VDDDD=3V (W/L)3V, (W/L)11=(W/L)(W/L)22=25/0 525/0.5
• µnCOX=50µA/V2, VTH=0.6V, λ=0, γ=0, RSS=500Ω
B I I 0 5 A h
• Because ID1=ID2=0.5mA, we have:
V I V
V
V 2 D1 1 23
+V V
L C W
V
V TH
OX n GS
GS1 = 2 = + =1.23
μ
“Resistor current source” example Resistor current source example
V I V
V
V 2 D1 1 23
+V V
L C W
V
V TH
OX n
D GS
GS1 = 2 = 1 + =1.23
μ
• Also: VAlso: VSS=I RIssRSSSS=0 5V0.5V
• Bias voltage at gates Vin,CM=VGS1+VS=1.73V
Thi lt t th 0 5 A
• This voltage creates the necessary 0.5mA current in each of the transistors.
“Resistor current source” example – differential gain design
1 W
= Ω
= 632
2
n OX D11
m
I
L C W
g μ
If RD=3.16KΩ then differential voltage gain = If RD 3.16KΩ then differential voltage gain gmRD=5
“Resistor current source” example – with such R
Dare transistors in Saturation?
Vout1=Vout2=VDD-IDRD=1.42V > Vin,CM – VTH
=1.73 – 0.6 = 1.13V by 290mV (the overdrive)
“Resistor current source” example – Common-Mode Response
If Vin,CM increases by 50mV, what will happen to each output?
“Resistor current source” example – Common-Mode Response
Large CM
R
A ΔVout D /2
g
gain of 1.94 is due to the
V R V
V V
R g
A V
D
SS m
D CM
in out CM
V
8 96 94
1 ) 50
2 (
| /
|
) 2
/(
, 1
,
Δ Δ
− + Δ =
= small RSS
mV R mV
V g V
SS m
D CM
in
X (50 ) 1.94 96.8
) 2
/(
| 1
| , = ⋅ =
Δ +
= Δ
⇒
Common-Mode Response with asymmetric R
Dassuming λ=0
ΔVX g
ΔVX
ΔVin,CM = − gm
1+ 2gmRSS RD
ΔV g
ΔVY
ΔVin,CM = − gm
1+ 2gmRSS (RD + ΔRD)
m Y
X
V g R
V − Δ Δ
Δ
2
,
1
D SS
m m CM
in
Y
X
R
R g
g
V Δ
= + Δ
RSSSS above represents the current p source – need large RSS
Common-Mode Response with asymmetric R
DCM input noise corrupts the amplified differential signal, because of the
asymmetry
For high-frequency Common-Mode input need to take into account parasitic capacitance effects, p p ,
even if RSS is large. C1 is contributed by M1,M2 and ISSSS and contributes to the impedance “seen” by the p y CM signal.
Mismatches in W/L, V
THand other transistor parameters all translate to mismatches in g
mP CM
in m
D
g V V
I
1=
1(
,− )
S ll i l
P CM
in m
D
g V V
I
2=
2(
,− )
, Small-signal
analysis
P SS
P CM
in m
m
g V V R V
g + − =
⇒ (
1 2)(
,)
Mismatches in W/L, V
THand other transistor parameters all translate to mismatches in g
mP SS
P CM
in m
m
g V V R V
g
1 2)(
,)
( + − =
CM SS
m m
P
SS C
in m
m
R V g
V g
1 2,
)
( +
=
⇒
in CMSS m
m
P
V
R g
V g
,2
1
) 1
( + +
⇒
D P
CM in
m
X
g V V R
V = −
1(
,− )
D P
CM in
m
Y
g V V R
V = −
2(
,− )
Mismatches in W/L, V
THand other transistor parameters all translate to mismatches in g
mY
X V g g
V − 1 − 2
D SS
m m
m m
CM in
Y X
DM CM
V R
R g
g
g g
V
V A V
1 )
( 1 2
2 1
,
, − = = − + +
Common Mode Gains Common-Mode Gains
• We have seen two types of common-
Y
X
V
A V
mode gain:
• AV,CM : Single-ended in CM
Y CM
in X CM
V
V V
A
, ,
,
= =
V,CM g
output due to CM signal.
V
• AV,CM-DM : Differential
V
output due to CM
Y X
DM CM
V
V
V A
,V −
−
=
output due to CM
signal.
V
in,CMCommon-Mode Rejection Ratio (CMRR) Definitions
|
|
DMSE
A
CMRR A
CMRR = =
A
CMA |
|
DM CM
DM diff
A
CMRR A CMRR
−
=
=
In both cases we want CMRR to be as large as possible and it translates into large as possible, and it translates into
small matching errors and RSS as large as possible
possible
CMOS Differential Amplifiers
MOS Loads – L18
MOS Loads L18
MOS Loads MOS Loads
• (a) Diode-connected load
(b) C t S l d
• (b) Current-Source load
MOS Loads: Analysis Method MOS Loads: Analysis Method
• Differential Analysis: Use half-circuit method, with source node at virtual ground.
• Common-Mode Analysis: Again use half-circuit method, with appropriate accommodation for parallel transistors and for R
parallel transistors, and for RSS.
MOS Loads: Differential Gain Formulas MOS Loads: Differential Gain Formulas
r r
g g
A ( −1 || || )
N n
mN
oP oN
mP mN
diff V
L W
g
r r
g g
A
) / (
)
||
||
, (
μ
−
=
)
||
,diff mN ( oN oP
V g r r
A = −
P p
N n
mP mN
L W
g g
) / (
) (
μ
−
μ
=
−
≈ ff
Problems with Diode connected MOS Loads Problems with Diode-connected MOS Loads
• Tradeoff among output voltage swing, voltage gain and CM input range:
and CM input range:
• In order to achieve high gain, (W/L)P must be
decrease, thereby increasing |VGSP-VTHP| and lowering decrease, thereby increasing |VGSP VTHP| and lowering the CM level at nodes X and Y.
Overcoming Diode-connected Load swing problem for higher gains:
Use PMOS current sources which reduce gm of
diode connected MOS instead of lowering (W/L) of diode-connected MOS, instead of lowering (W/L)P of load. Gain can be increased by factor of 5.
Problems with Current Source MOS Loads Problems with Current-Source MOS Loads
• In sub-micron technologies, it’s hard to g , obtain differential gains higher than 10- 20
20.
Solution to low gain problem: Cascoding Solution to low-gain problem: Cascoding
)]
(
||
)
[( 3 3 1 5 5 7
1
,diff m m o o m o o
V g g r r g r r
A ≈
CMOS Differential Amplifiers
Gilbert Cell-L19
Gilbert Cell L19
Can we create a differential amplifier with voltage-controlled differential gain?
(a)is a VGA (Variable-Gain Amplifier). Vcont determines I which determines the
determines Iss, which determines the differential gain.
Gain may be varied from 0 to some maximum value.
Can we create a differential amplifier with voltage-controlled differential gain?
What do we do if we want to vary the gain continuously from some negative value to continuously from some negative value to some positive value?
Can we create a differential amplifier with voltage-controlled differential gain?
In circuits (b) the two amplifiers have opposite differential gain simply by interchanging the
differential gain simply by interchanging the order of output subtraction)
Can we create a differential amplifier with voltage-controlled differential gain?
If I1=I2 then Vout,1/Vin= -gmRD = - Vout,2/Vin
If I d I i it di ti th i
If we vary I1 and I2 in opposite directions, the gains will follow along these directions.
ff ?
How should we combine the two differential outputs?
How to combine the differential outputs?
O th l ft t ll th t
On the left, we conceptually see the two voltages ADDED UP.
Gains A1 and A2 are voltage controlled.
How to combine the differential outputs?
Math will show the implementation method.
Does it work as intended? Can gain be varied positively as well as negatively?
If I =0 then V =g R If I1=0 then Vout=gmRD. If I2=0 then Vout= -gmRD. If I1=I2 then Vout=0 !!
Next phase in the conceptual development:
Do we really need two separate control Do we really need two separate control signals??
Recall the basic structure of a differential
lifi Th i t diff f th
amplifier: The inputs difference cause one of the MOS currents to go up, and at the same time the
t f th it MOS d b th
current of the opposite MOS goes down by the same amount Æ Let I1 , I2 come from diff. amp.
Gilbert Cell Gilbert Cell
Left: If |Vcont1 – Vcont2| is large we have
“current stealing” and then gain is eithercurrent stealing , and then gain is either most positive or most negative.
Gilbert Cell Gilbert Cell
Right: Actual Implementation
Gilbert Cell Gilbert Cell
VOUT = kVinVcont
Applications of Gilbert Cell Applications of Gilbert Cell
• Analog Multiplier
– Mixer
– Phase Detector AM Modulation – AM Modulation
• VGA: Variable-gain amplifier
– AGC (Automatic Gain Control)
It’s a versatile general-purpose tool
Can switch input and control
signals!