7. Differential Amplifiers
ECE 102, Fall 2012, F. Najmabadi
Sedra & Smith Sec. 2.1.3 and Sec. 8 (MOS Portion)
(S&S 5
thEd: Sec. 2.1.3 and Sec. 7 MOS Portion &
Common-Mode and Differential-Mode
Signals & Gain
Differential and Common-Mode Signals/Gain
F. Najmabadi, ECE102, Fall 2012 (3/33)
Consider a linear circuit with TWO inputs
2 2 1 1
v
A
v
A
v
o=
⋅
+
⋅
By superposition: Define:v
d=
v
2−
v
12
2 1v
v
v
c=
+
Difference (or differential) Mode Common Mode
Substituting for and in the expression for vo:
2
1 d cv
v
v
=
−
2
2 d cv
v
v
=
+
(
)
c d d c d c ov
A
A
v
A
A
v
v
A
v
v
A
v
⋅
−
+
⋅
+
=
+
⋅
+
−
⋅
=
2
2
2
1 2 2 1 2 1 d d c c oA
v
A
v
v
=
⋅
+
⋅
2
2
2 1 d c d cv
v
v
v
v
v
+
=
−
=
Differential and common-mode signal/gain is an
alternative way of finding the system response
2 2 1 2 2 1 2 1 1 2 A A A v v v A A A v v v d c c d − = + = + = − = 2 2 1 1
v
A
v
A
v
o=
⋅
+
⋅
v
o=
A
c⋅
v
c+
A
d⋅
v
d Differential Gain: Ad Common Mode Gain: Ac Common Mode Rejection Ratio (CMRR)*: |Ad|/|Ac||A |/|A |) 2 2 2 2 2 2 1 1 d c d c d c d c A A A v v v A A A v v v + = + = − = − =
To find
v
o
, we can calculate/measure
either
A
1
A
2
pair or
A
c
A
d
pair
F. Najmabadi, ECE102, Fall 2012 (5/33)
Difference Method (finding Ad and Ac ):
1. Set vc = 0 (or set v1 = − 0.5 vd & v2 = + 0.5 vd) compute Ad from vo = Ad vd
2. Set vd = 0 (or set v1 = + vc & v2 = + vc )
compute Ac from vo = Ac vc
3. For any v1 and v2 : vo = Ad vd + Ac vc
Superposition (finding A1 and A2 ):
1. Set v2 = 0, compute A1 from
vo = A1 v1
2. Set v1 = 0, compute A2 from
vo = A2 v2
3. For any v1 and v2 :
vo = A1 v1 + A2 v2
Both methods give the same answer for vo (or Av ). The choice of the method is driven by application:
o Easier solution
o More relevant parameters
) ( 5 . 0 1 2 1 2 v v v v v vd = − c = +
Caution
In Chapter 2.1.3, Sedra & Smith defines vd = v2 − v1
But in Chapter 8, Sedra & Smith uses vd = v1 − v2
While keeping vo = vo2 − vo1 as before (this is inconsistent)
2 1 d c v v v = − 2 2 d c v v v = + 2 1 d c v v v = + 2 2 d c v v v = −
Here we use vd = v2 − v1 and vo = vo2 − vo1throughout
Therefore, Ad(lecture slides) = −Ad(Sedra & Smith) for difference Amplifiers.
Use Lecture Slides Notation!
2 1 d c v v v = − 2 2 d c v v v = +
F. Najmabadi, ECE102, Fall 2012 (7/33)
Differential Amplifiers:
Fundamental Properties
Differential Amplifier
o For now, we keep track of “two” output, vo1 and vo2 , because there
are several ways to configure “one” output from this circuit.
Identical transistors.
Circuit elements are symmetric about the mid-plane. Identical bias voltages at Q1 & Q2 gates (VG1 = VG2 ). Signal voltages & currents are different because v1 ≠ v2.
Load RD: resistor, current-mirror, active load, …
RSS: Bias resistor, current source (current-mirror)
Q1 & Q2 are in CS-like configuration (input at the gate, output at the drain) but with sources connected to each other.
Differential Amplifier – Bias
F. Najmabadi, ECE102, Fall 2012 (9/33)
ID ID ID ID 2ID 2 1 2 1 2 1 2 1 DS DS DS D D D OV OV OV GS GS GS
V
V
V
I
I
I
V
V
V
V
V
V
=
=
=
=
=
=
=
=
S S S G G GV
V
V
V
V
V
=
=
=
=
2 1 2 1and
Since
o o o m m mr
r
r
g
g
g
=
=
=
=
2 1 2 1 Also:This is correct even if channel-length modulation is included because
2 2 1 1 D DS D D DS D
R
V
I
R
V
I
+
=
+
Differential Amplifier – Gain
Signal voltages & currents are
different because v1 ≠ v2
We cannot use fundamental
amplifier configuration for arbitrary values of v1 and v2.
We have to replace each NMOS
Differential Amplifier – Gain
F. Najmabadi, ECE102, Fall 2012 (11/33)
0 ) ( ) ( 0 ) ( 0 ) ( 3 2 3 1 1 3 2 3 3 3 2 3 2 2 3 1 3 1 1 = − − − − − + − + = − + − + = − + − + v v g v v g r v v r v v R v v v g r v v R v v v g r v v R v m m o o o o SS m o o D o m o o D o
Node Voltage Method: Node vo1:
Node vo2: Node v3:
Above three equations should be solved to find vo1 , vo2 and v3 (lengthy calculations) 3 2 2 3 1 1 v v v v v v gs gs − = − =
Because the circuit is symmetric, differential/common-mode
method is the preferred method to solve this circuit (and we
can use fundamental configuration formulas).
Differential Amplifier – Common Mode (1)
Because of summery of
the circuit and input signals*:
Common Mode: Set vd = 0 (or set v1 = + vc and v2 = + vc )
d d d o o
v
i
i
i
v
1=
2and
1
=
2=
We can solve for vo1 by node voltage method but there is a simpler and more elegant way.
id
id id
2id
* If you do not see this, set v1 = v2 = vc in node equations of the previous slide, subtract the first two equations to get vo1 = vo2 . Ohm’s law on RD then gives id1 = id2 = id
Differential Amplifier – Common Mode (2)
F. Najmabadi, ECE102, Fall 2012 (13/33)
Because of the symmetry, the common-mode circuit breaks into two
identical “half-circuits”. id id id 2id id 0 id * 2 3 idRSS v =
Differential Amplifier – Common Mode (3)
o D SS m D m c o c o r R R g R g v v v v / 2 1 2 1 + + − = = CS Amplifiers with Rs 0Differential Amplifier – Differential Mode (1)
F. Najmabadi, ECE102, Fall 2012 (15/33)
3 2 3 1 5 . 0 5 . 0 v v v v v v d gs d gs − + = − − = 0 ) 5 . 0 ( ) 5 . 0 ( 0 ) 5 . 0 ( 0 ) 5 . 0 ( 3 3 1 3 2 3 3 3 3 2 2 3 3 1 1 = − + − − − − − + − + = − + + − + = − − + − + v v g v v g r v v r v v R v v v g r v v R v v v g r v v R v d m d m o o o o SS d m o o D o d m o o D o
Node Voltage Method:
Node vo1: Node vo2: Node v3:
Differential Mode: Set vc = 0 (or set v1 = − vd /2 and v2 = + vd /2 )
0
2
2
)
(
1
1
3 2 1
=
+
−
+
+
g
v
r
v
v
r
R
D o o o o m(
)
1
2
2
0
1
3 2 1
=
−
+
+
+
−
g
v
r
R
v
v
r
o o o SS o m Node vo1 + Node vo2 : Node v3: 0 0 3 2 1 2 1 = − = ⇒ = + v v v v vo o o oDifferential Amplifier – Differential Mode (2)
Because of the symmetry, the differential-mode circuit also breaks into two
identical half-circuits. 2 1 2 1 3
0
and
v
ov
oi
di
dv
=
=
−
⇒
=
−
v3 = 0 id id v3 = 0 CS Amplifier ) || ( 5 . 0 , ) || ( 5 . 0 2 1 D o m d o D o m d o g r R v v R r g v v − = + − = − id id 0 id idConcept of “Half Circuit”
F. Najmabadi, ECE102, Fall 2012 (17/33)
Common Mode Differential Mode
For a symmetric circuit, differential- and common-mode
Common-Mode “Half Circuit”
id id
id id
0
Common Mode Half-circuit
1. Currents about symmetry line are equal.
2. Voltages about the symmetry line are equal (e.g., vo1 = vo2) 3. No current crosses the symmetry line.
2 1 o
o v
v =
Common Mode circuit
2 1 s
s v
Differential-Mode “Half Circuit”
F. Najmabadi, ECE102, Fall 2012 (19/33)
Differential Mode circuit
Differential Mode Half-circuit
1. Currents about the symmetry line are equal in value and opposite in sign. 2. Voltages about the symmetry line are equal in value and opposite in sign. 3. Voltage at the summery line is zero
2 1 o o v v = − 0 2 1 = s = s v v id id id id
Constructing “Half Circuits”
Step 1:
Divide ALL elements that cross the symmetry line (e.g., RL) and/or are located on the symmetry line (current source) such that we have a symmetric circuit (only wires should cross the symmetry line, nothing should be located on the symmetry line!)
Constructing “Half Circuit”– Common Mode
F. Najmabadi, ECE102, Fall 2012 (21/33)
Step 2: Common Mode Half-circuit
1. Currents about symmetry line are equal (e.g., id1 = id2). 2. Voltages about the symmetry line are equal (e.g., vo1 = vo2).
3. No current crosses the symmetry line.
c o c o
v
v
1,=
2, 0Constructing “Half Circuit”– Differential Mode
Step 3: Differential Mode Half-Circuit
1. Currents about symmetry line are equal but opposite sign (e.g., id1 =
−
id2)2. Voltages about the symmetry line are equal but opposite sign (e.g., vo1 =
−
vo2)3. Voltage on the symmetry line is zero.
d o d
o
v
“Half-Circuit” works only if the circuit is
symmetric!
F. Najmabadi, ECE102, Fall 2012 (23/33)
Half circuits for common-mode and differential mode are different.
Bias circuit is similar to Half circuit for common mode.
Not all difference amplifiers are symmetric. Look at the load
carefully!
We can still use half circuit concept if the deviation from prefect
symmetry is small (i.e., if one transistor has
R
Dand the other
R
D+
∆
R
Dwith
∆
R
D<<
R
D).
Why are Differential Amplifiers popular?
They are much less sensitive to noise (CMRR >>1). Biasing: Relatively easy direct coupling of stages:
o Biasing resistor (RSS) does not affect the differential gain
(and does not need a by-pass capacitor).
o No need for precise biasing of the gate in ICs o DC amplifiers (no coupling/bypass capacitors). …
Why is a large CMRR useful?
F. Najmabadi, ECE102, Fall 2012 (25/33)
A major goal in circuit design is to minimize the noise level (or improve
signal-to-noise ratio). Noise comes from many sources (thermal, EM, …)
However, if the signal is applied between two inputs and we use a
difference amplifier with a large CMRR, the signal is amplified a lot more than the noise which improves the signal to noise ratio.*
A regular amplifier “amplifies” both signal and noise.
noise d sig d c c d d o v CMRR A v A v A v A v = ⋅ + ⋅ = ⋅ + ⋅ 1 vsig vnoise v = + 1 sig noise o A v A v A v v = ⋅ = ⋅ + ⋅ noise c sig d noise sig noise sig v v v v v v v v v v v v = = − = + + = + − = & 5 . 0 & 5 . 0 1 2 2 1
Comparing a differential amplifier
two identical CS amplifiers (perfectly matched)
Comparison of a differential amplifier with two
identical CS amplifiers – Differential Mode
F. Najmabadi, ECE102, Fall 2012 (27/33)
) || ( / ) || ( ) 5 . 0 ( ) || ( ) 5 . 0 ( ) || ( , 1 , 2 , 2 , 1 D o m d od d d D o m d o d o od d D o m d o d D o m d o R r g v v A v R r g v v v v R r g v v R r g v − = = − = − = + − = − − =
vo1,d , vo2,d , vod, and differential gain, Ad, are identical.
Half-Circuits
Identical
Comparison of a differential amplifier with two
identical CS amplifiers – Common Mode
Half-Circuits
NOT Identical
vo1,c & vo2,c are different! But voc = 0 and CMMR = ∞. 0 / 0 / 2 1 , 1 , 2 , 2 , 1 = = = − = + + − = = c oc c c o c o oc c o D SS m D m c o c o v v A v v v v r R R g R g v v
0
/
0
)
||
(
, 1 , 2 , 2 , 1=
=
=
−
=
−
=
=
c oc c c o c o oc c D o m c o c ov
v
A
v
v
v
v
R
r
g
v
v
Comparison of a differential amplifier with two
identical CS amplifiers – Summary
F. Najmabadi, ECE102, Fall 2012 (29/33)
∞ = = = − = = CMRR 0 , ) || ( c oc c D o m d od d v v A R r g v v A
For perfectly matched circuits, there is no difference between
a differential amplifier and two identical CS amplifiers.
o But one can never make perfectly matched circuits!
∞ = = = − = = CMRR 0 , ) || ( c oc c D o m d od d v v A R r g v v A
Consider a “slight” mis-match in the load resistors
“Slightly” mis-matched loads – Differential Mode
F. Najmabadi, ECE102, Fall 2012 (31/33)
) 5 . 0 ( / ) 5 . 0 ( ) 5 . 0 ( ) ( ) 5 . 0 ( ) ( , 1 , 2 , 2 , 1 D D m d od d d D D m d o d o od d D D m d o d D m d o R R g v v A v R R g v v v v R R g v v R g v ∆ + − = = ∆ + − = − = + ∆ + − = − − =
vo1, vo2, vod, and differential gain, Ad, are identical.
Half-Circuits
Identical
“Slightly” mis-matched loads – Common Mode
Half-Circuits
NOT Identical
Differential amplifier Two CS amplifiers
vo1 and vo2 are different. In addition, voc ≠ 0 and CMMR ≠ ∞.
SS m D m c oc c c SS m D m c o c o oc c SS m D D m c o c SS m D m c o R g R g v v A v R g R g v v v v R g R R g v v R g R g v 2 1 2 1 2 1 ) ( , 2 1 , 1 , 2 , 2 , 1 + ∆ − = = + ∆ − = − = + ∆ + − = + − = D m c oc c c D m c o c o oc c D D m c o c D m c o R g v v A v R g v v v v R R g v v R g v ∆ + = = ∆ + = − = ∆ + − = − = ) ( , 1 , 2 , 2 , 1
A differential amplifier increases CMRR
substantially for a slight mis-match (
∆
R
D
≠
0
)
F. Najmabadi, ECE102, Fall 2012 (33/33)
D m c g R A = + ∆ ) 5 . 0 ( D D m d g R R A = − + ∆ D D R R / 1 CMRR ∆ ≈ Two CS Amplifiers ) 5 . 0 ( D D m d g R R A = − + ∆ SS m D m c R g R g A 2 1+ ∆ − = D D SS m R R R g / 2 1 CMRR ∆ + ≈ Differential Amplifier
Differential amplifier reduces Ac and increases CMRR substantially
(by a factor of: 1 + 2 gmRSS).
The common-mode half-circuits for a differential amplifier are
CS amplifiers with RS (thus common mode gain is much smaller than two CS amplifiers).
We should use a large RSS in a differential amplifier!
* Exercise: Compare a differential amplifier and two CS amplifiers with a mis-match in gm