Professional Documents
Culture Documents
L14 2 f09 PDF
L14 2 f09 PDF
Lecture 14
Administrative issues
Midterm exam postponed to Thurs. Nov. 5th
o You can only bring one 8x11 paper with your
own written notes (please do not photocopy)
o No books, class or any other kind of
handouts/notes, calculators, computers, PDA,
cell phones....
o Midterm includes material covered to end of
lecture 14
EECS 247 Lecture 14:
2009 Page 1
EE247
Lecture 14
D/A converters
D/A converters: Various Architectures (continued)
Charge scaling DACs (continued)
R-2R type DACs
Current based DACs
2009 Page 2
2009 Page 3
8/7C
2C
4C
b0
b1
b2
2C
4C
b3
b4
b5
Cse rie s =
Vout
Vref
Split array reduce the total area of the capacitors required for high
resolution DACs
E.g. 10bit regular binary array requires 1024 unit Cs while split array
(5&5) needs 64 unit Cs
Issue: Sensitive to parasitic capacitor
EECS 247 Lecture 14:
2009 Page 4
Disadvantages:
Process needs to include good capacitive material
with standard digital process
Requires large capacitor ratios
Not inherently monotonic (more later)
EECS 247 Lecture 14:
not compatible
2009 Page 5
Segmented DAC
reset
...
...
...
.
string
Full R string
4096 resistors
Segmented
64
R + 7 Cs (64 unit
caps)
EECS 247 Lecture 14:
6bit
resistor
ladder
Vout
32 C
16C
8C
4C
2C
b5
b4
b3
b2
b1
b0
6-bit
binary weighted
charge redistribution DAC
Switch
Network
2009 Page 6
V/2
I/2
I/2
I
2R
2R
2009 Page 7
2R
2R
VEE
2R
R
2R
2R
2R
2009 Page 8
VB
2xAunit
VEE
2R
2R
2R
2R
R
1xAunit 1xAunit
2009 Page 9
I2
I3
VB
VEE
IT
I1
Q3
Q2
Aunit
4Aunit
2Aunit
2Aunit
2R
2R
R
2R
R
Q3
Q2
Q1
QT
4Aunit
2Aunit
Aunit
2R
R
2R
R
2R
VB
I1+IT
I2
I3
VEE
2009 Page 10
I2
I3
VB
VEE
I1+IT
VB
Q3
Q2
4Aunit
2Aunit
2R
R
2R
R
I2+I1+IT
I3
Q3
Q2
2Aunit
4Aunit
4Aunit
2R
R
VEE
I
I
I
I3 = I2 + I1 + IT I3 = T ot al , I2 = T ot a l , I1 = To t al
2
4
8
EECS 247 Lecture 14:
2009 Page 11
Iout
VB
4Aunit
4I
VEE
2R 2I
R
4I
Aunit
2Aunit
2R
2R I
Aunit
2R
2I
2009 Page 12
Vout
VB
16I
VEE
2R 8I
R
2R 4I
R
2R 2I
R
16I
8I
4I
2R
2R I
2R
2I
2009 Page 13
R T ot al
R
RTotal
-
If R T ota l = l a r g e,
Vos
out
in
Vos
Vos
If RT ota l = n o t l a rg e
R
out
in 1 +
Vos
= Vos
RT ot al
P r ob l em :
Vout
Offset
Model
S i nce RT ota l i s co d e d ep en d an t
ou t
w ou l d b e co de d ep en da n t
Vos
G i ves r i s e t o I N L & DN L
2009 Page 14
R-2R Ladder
Summary
Advantages:
Resistor ratios only x2
Does not require precision capacitors
Disadvantages:
Total device emitter area
AEunitx 2B
2009 Page 15
Iref
Iref
Iout
Iref
Iref
Iref
2009 Page 16
Vout
Iref
Iref
Iref
Iref
2009 Page 17
2B-1 Iref
Iout
4 Iref
2Iref
Iref
Binary weighted
B current sources & switches (2B-1 unit current sources but less
# of switches)
Monotonicity depends on element matching not guaranteed
2009 Page 18
Random variations
Lithography etc
Often Gaussian distribution (central limit theorem)
*Ref: C. Conroy et al, Statistical Design Techniques for D/A Converters, JSSC
Aug. 1989, pp. 1118-28.
EECS 247 Lecture 14:
2009 Page 19
Iref
Iref
Iref
Iref -I
Iref
Vout
Iref
Iref +I
Simplified example:
3-bit DAC
Assume only two of the current sources mismatched (# 4 & #5)
EECS 247 Lecture 14:
2009 Page 20
Analog
Output
seg men t[ m] V [ L S B ]
V [ LSB]
7 Iref R
seg men t[ 4 ] V [ L S B ]
V [ LSB]
6
5
( I I )R IR
IR
DN L[ 4 ] = I / I [ LSB ]
( I + I )R IR
DN L[ 5] =
IR
1xIref R
DN L[ 5 ] = I / I [ L S B ]
IN Lmax = I / I [ L S B ]
Digital
Input
2009 Page 21
Component Mismatch
Probability Distribution Function
Component parameters
Random variables
pdf [f(x2)]
pdf [f(x1,x2)]
*
pdf [f(x3,x4)]
pdf [f(x1,x2)]
*
EECS 247 Lecture 14:
pdf [f(xm,xn)]
....
Gaussian pdf
2009 Page 22
p( x ) =
1
e
2
Gaussian Distribution
x )
2 2
0.4
0.3
0.2
0.1
0
-3
-2
-1
where:
is the expected value and
standard deviation : = E( X 2 ) 2
(x-) /
2 variance
EECS 247 Lecture 14:
2009 Page 23
P ( X x + X ) =
=
+X
Probability density
p(x)
0.4
P(-X x +X)
Yield
1
0.8
0.6
0.4
0.2
0
0.2
0.1
0
x2
2 dx
X
= e rf
2
Integral has no analytical
solution
found by numerical
methods
EECS 247 Lecture 14:
0.3
95.4
68.3
38.3
0
0.5
1.5
X/
2.5
2009 Page 24
Yield
X/
P(-X x X) [%]
0.2000
0.4000
0.6000
0.8000
1.0000
1.2000
1.4000
1.6000
1.8000
2.0000
15.8519
31.0843
45.1494
57.6289
68.2689
76.9861
83.8487
89.0401
92.8139
95.4500
X/
2.2000
2.4000
2.6000
2.8000
3.0000
3.2000
3.4000
3.6000
3.8000
4.0000
P(-X x X) [%]
97.2193
98.3605
99.0678
99.4890
99.7300
99.8626
99.9326
99.9682
99.9855
99.9937
2009 Page 25
Example
Measurements show that the offset voltage of
a batch of operational amplifiers follows a
Gaussian distribution with = 2mV and = 0.
Find the fraction of opamps with |Vos| < 6mV:
X/ = 3
99.73 % yield
15.85 % yield
2009 Page 26
Component Mismatch
Example: Resistors layouted out
side-by-side
No. of resistors
400
300
R
200
100
0
988
992
996
1000
1004
1008 1012
R[ ]
2009 Page 27
R=
R1 + R2
2
dR = R1 R2
2
dR
1
Are a
Component Mismatch
0.4
0.35
0.3
0.25
0.2
0.15
0.1
0.05
0
3 2
dR
R
2009 Page 28
= Rmedi an Iref
w h ere Rmedian =
i = Ri Iref
D N Li =
o Ri
i = Ri I ref
median
medi an
median
Iref
2B
i median
Ri R
Vref
dR
R
median
dR
Ri
DNL = dRi
Ri
To first order
DNL of unit element DAC is independent of resolution!
Note: Similar results for other unit-element based DACs
EECS 247 Lecture 14:
2009 Page 29
D NL = dR
Ri
Example:
If dR/R = 0.4%, what
DNL spec goes into
the DAC datasheet so
that 99.9% of all
converters meet the
spec?
2009 Page 30
Yield
P(-X x X) [%]
X/
0.2000
0.4000
0.6000
0.8000
1.0000
1.2000
1.4000
1.6000
1.8000
2.0000
15.8519
31.0843
45.1494
57.6289
68.2689
76.9861
83.8487
89.0401
92.8139
95.4500
X/
2.2000
2.4000
2.6000
2.8000
3.0000
3.2000
3.4000
3.6000
3.8000
4.0000
P(-X x X) [%]
97.2193
98.3605
99.0678
99.4890
99.7300
99.8626
99.9326
99.9682
99.9855
99.9937
2009 Page 31
D NL = dR
Example:
If dR/R = 0.4%, what DNL spec
goes into the datasheet so that
99.9% of all converters meet
the spec?
Ri
Answer:
From table: for 99.9%
X/ = 3.3
DNL = dR/R = 0.4%
3.3 DNL = 3.3x0.4%=1.3%
DNL= +/- 0.013 LSB
2009 Page 32
Output [LSB]
B=N-n-E
B
E
Variance
n.2
N-n
(N-n).2
E = A-n r =n/N
N=A+B
= A-r(A+B)
= (1-r). A - r.B
Variance of E:
2
E =(1-r)2 .2 + r 2 .B2
Ideal
n
N=2B-1
Input [LSB]
2009 Page 33
DAC INL
E2 = n 1
INL/
n
2
N
(2B-1)0.5/2
d E 2
T o f i n d ma x. var i a nce :
n = N / 2 E2 =
N
4
dn
=0
2B 1
2
w i th N = 2B 1
IN L =
0.5
n/N
2009 Page 34
INL
1 B
2 1
2
INL
B 2 + 2log 2
= 1% Bmax = 8.6bits
= 0.5% Bmax = 10.6bits
= 0.2% Bmax = 13.3bits
= 0.1% Bmax = 15.3bits
2009 Page 35
Simulation Example
12 Bit converter DNL and INL
DNL [LSB]
0
-1
500
1000
bin
INL LSB]
2
1
0
-1
500
1000
bin
EECS 247 Lecture 14:
= 1%
B
= 12
Random #
generator used in
MatLab
Computed INL:
INLmax = 0.32 LSB
(midscale)
Why is the
results not as
expected per our
derivation?
2009 Page 36
2B-1 Iref
DNL2 = (d/) 2
DNL2 = 3(d/) 2
0 to 1
1 to 2
4 Iref
2Iref
Iref
2009 Page 37
DAC DNL
Example: 4bit DAC
..
.
Iout
Analog
Output [Iref]
I8
8Iref
I4
4Iref
I2
I1
2Iref
Iref
1 to 2
DNL2 = (dref/ref)2
DNL2 = 3(dref/ref)2
5
4
I2on ,I1on
.
..
..
..
I8on, I4off ,I2off ,I1off
I2on ,I1off
I1on
Digital
Input
2009 Page 38
2
DNL
= 2B1 1 2 + 2B1 2
DNL2/ 2
144244
3 14243
10
0111...
1000...
2B 2
DNLma x = 2B / 2
INLmax
1
2
2B 1
1
2
DNLmax
Example:
0
10
12
14
B = 12, = 1%
2009 Page 39
Id1 + Id 2
2
Id1
dId Id1 Id 2
=
Id
Id
Id2
dId
dW L
2 dVth
=
+
W
Id
VGS Vth
L
Current matching depends on:
- Device W/L ratio matching
Larger device area less mismatch effect
- Current mismatch due to threshold voltage variations:
Larger gate-overdrive less threshold voltage mismatch effect
EECS 247 Lecture 14:
2009 Page 40
Iref
dId
Id
dW L
W
Switch Array
2d Vth
VGS Vth
256
128
64 ....1
Disadvantages:
Accuracy depends on device W/L & Vth matching
EECS 247 Lecture 14:
2009 Page 41
DN L =
DN L 2 2 = 2 IN L
1
IN L 2 2
1
IN L 2 2
S = 2B
S=B
2009 Page 42
DN L =
DN L 2 = 3 2
IN L 2
= 1 6
INL 2
= 16
S = B = 10
S = 2B = 1 0 24
2009 Page 43
2
1
0
-1
-2
INL [LSB]
2
1
0
-1
2009 Page 44
Note: =2%
EECS 247 Lecture 14:
2009 Page 45
Note: =2%
EECS 247 Lecture 14:
2009 Page 46
2009 Page 47
Segmented DAC
Combination of Unit-Element & Binary-Weighted
Objective:
Compromise between unit-element and binary-weighted DAC
MSB (B1 bits)
(B2 bits)
LSB
Approach:
B1 MSB bits
B2 LSB bits
unit elements
binary weighted
VAnalog
BTotal = B1+B2
2009 Page 48
Comparison
Example:
B = 12, B1 = 5,
B1 = 6,
( B2 +1)
DNL 2
B2 = 7
B2 = 6
MSB
I NL 2
LSB
= 2 I NL
S = 2B1 1 + B2
Assuming: = 1%
DAC Architecture
(B1+B2)
INL[LSB]
DNL[LSB]
# of switched
elements
0.32
0.32
0.32
0.32
0.01
0.113
0.16
0.64
4095
63+6=69
31+7=38
12
2009 Page 49
Practical Aspects
Current-Switched DACs
Unit element DACs ensure monotonicity by
turning on equal-weighted current sources in
succession
Typically current switching performed by
differential pairs
For each diff pair, only one of the devices are
on switch device mismatch not an issue
Issue: While binary weighted DAC can use the
incoming binary digital word directly, unit
element requires a decoder
N to (2N-1) decoder
Binary
000
001
010
011
100
101
110
111
Thermometer
0000000
0000001
0000011
0000111
0001111
0011111
0111111
1111111
2009 Page 50
2009 Page 51
2009 Page 52
MSB Decoder
Domino logic
Example: D4,5,6,7=1 OUT=1
IN
Register
Latched NAND gate:
CTRL=1 OUT=INB
EECS 247 Lecture 14:
Register
2009 Page 53
+
-
Iref =(VDD-Vref ) / R
EECS 247 Lecture 14:
2009 Page 54
+
-
2009 Page 55
LSB
MSB
2009 Page 56
2009 Page 57
Ideal
5
0
10
Early
DAC Output
10
1.5
2.5
1.5
2.5
1.5
2.5
5
0
10
Late
5
0
Time
2009 Page 58
Glitch Energy
Glitch energy (worst case) proportional to: dt x 2B-1
dt
error in timing & 2B-1 associated with half of the switches changing
state
LSB energy proportional to: T=1/fs
Need dt x 2B-1 << T or dt << 2-B+1 T
Examples:
fs [MHz]
dt [ps]
1
20
1000
12
16
12
<< 488
<< 1.5
<< 0.5
Timing accuracy for data converters much more critical compared to digital
circuitry
EECS 247 Lecture 14:
2009 Page 59
2009 Page 60
Current copiers:
D. W. J. Groeneveld et al, A Self-Calibration Technique for
Monolithic High-Resolution D/A Converters, JSSC December
1989, pp. 1517
2 tech., 5Vsupply
6+2 segmented
8x8 array
2009 Page 61
2009 Page 62
2009 Page 63
Iout
VG
M1
I1
M2
I2
M3
I3
M4
I4 M5 I5
I2 = k (VGSM 2 Vth )
4RI
I2 = I1 1
VGS Vth
M1
Rx4I
Rx3I
Rx2I
RxI
2009 Page 64
2
I 2 = k (VGSM 2 Vth ) = I1 1
V
GSM 1 Vt h
2I1
gmM 1 =
VGSM 1 Vth
Iout
VDD
M1
4RgmM 1
I 2 = I1 1
I1 (1 4RgmM 1 )
2
2
7RgmM 1
I3 = I1 1
I1 (1 7RgmM 1 )
2
2
9RgmM 1
I4 = I1 1
I1 (1 9RgmM 1 )
2
2
1 0R gmM 1
I5 = I1 1
I1 (1 10RgmM 1 )
M2
I1
Rx4I
I2
Rx3I
M3
M4
I3
Rx2I
I4 M5 I5
RxI
2009 Page 65
0.3
Sequential current
source switching
0.2
0.1
Symmetrical current
source switching
0
-0.1
0
Input
2009 Page 66
DNL [LSB]
0.1
0
Symmetrical current
source switching
-0.1
-0.2
Input
DNLmax = + 0.15LSB
EECS 247 Lecture 14:
DNLmax unchanged
2009 Page 67
2009 Page 68