Ucb Lecture14 DNL Inl
Ucb Lecture14 DNL Inl
Lecture 14
• Administrative issues
Midterm exam postponed to Thurs. Oct. 28th
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: Data Converters- DAC Design © 2010 Page 1
HW2
1st Problem
• 4th order highpass filter SFG
1 V2 1 V4 1 Vout
Vin R*/sL2 R*/sL4
R*/R
-1/sR*C1 -1/sR*C3
• Almost all have used one or two extra amplifiers for summing e.g. at node V4
EECS 247 Lecture 14: Data Converters- DAC Design © 2010 Page 2
HW2
1st Problem
• 4th order highpass filter implementation without use of extra summing amplifiers
-Cintg Vo
Cintg -Cintg
-80.72k Cintg -332.7k
- + - +
+ - - +
-Cintg
Cin=-Cintg
83.2k Cintg Cintg
117.6k
Vin
• The four circled capacitors are used for summing of signals to eliminat need for extra
amplifiers
save power dissipation and Si area , no additional noise
EECS 247 Lecture 14: Data Converters- DAC Design © 2010 Page 3
EE247
Lecture 14
• D/A converters
– D/A converters: Various Architectures (continued)
• Charge scaling DACs
• R-2R type DACs
• Current based DACs
– Static performance of D/As
• Component matching
• Systematic & random errors
– Practical aspects of current-switched DACs
– Segmented current-switched DACs
– DAC dynamic non-idealities
– DAC design considerations
EECS 247 Lecture 14: Data Converters- DAC Design © 2010 Page 4
Summary of Last Lecture
• Data Converters
– Data converter testing (continued)
• Dynamic tests
– Spectral testing
– Relationship between: DNL & SNR, INL &
SFDR
• Effective number of bits (ENOB)
–D/A converters: Various Architectures
• Resistor string DACs
• Serial charge redistribution DACs
EECS 247 Lecture 14: Data Converters- DAC Design © 2010 Page 5
Vout
Cy Cx C Cx
Vout Vref
Cx Cy C
Vref
EECS 247 Lecture 13: Data Converters- Testing & DAC Design © 2010 Page 6
Parallel Charge Scaling DAC
reset
Vout
2(B-1) C 8C 4C 2C C C
Vref
B 1
• E.g. “Binary weighted” bi 2 i C
Vout i 0 Vref
• B+1 capacitors & B switches 2B C
(Cs built of unit elements
2B units of C)
EECS 247 Lecture 13: Data Converters- Testing & DAC Design © 2010 Page 7
8C 4C 2C C C 8C 4C 2C C C
b3 b2
b3 b2 b1 b1 b0 (lsb)
b0 (lsb)
Vref Vref
20 C 21C 23C 11
Vout Vref Vref
24 C 16
EECS 247 Lecture 13: Data Converters- Testing & DAC Design © 2010 Page 8
Charge Scaling DAC
reset CP
Vout
2(B-1) C 8C 4C 2C C C B 1
b 2 C i
i
Vref
EECS 247 Lecture 13: Data Converters- Testing & DAC Design © 2010 Page 9
Parasitic Insensitive
Charge Scaling DAC
CI
reset CP
-
2(B-1) C 8C 4C 2C C
+ Vout
bB-1 (msb) b3 b2 b1 b0 (lsb)
Vref
B 1 i B 1 i
bi 2 C bi 2
Vout i 0 Vref , CI 2 B C Vout i 0 Vref
CI 2B
EECS 247 Lecture 13: Data Converters- Testing & DAC Design © 2010 Page 10
Charge Scaling DAC
Incorporating Offset Compensation
CI S2
reset
reset CP S1
-
S3 Vos
2(B-1) C 8C 4C 2C C reset Vout
+
Vref
• During reset phase:
– Opamp disconnected from capacitor array via switch S3
– Opamp connected in unity-gain configuration (S1)
– CI Bottom plate connected to ground (S2)
– Vout ~ - Vos VCI = -Vos
• This effectively compensates for offset during normal phase
EECS 247 Lecture 13: Data Converters- Testing & DAC Design © 2010 Page 11
Vref
all LSB array C
Cseries C
all MSB array C
• 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+~1 unit Cs
– Issue: Sensitive to series capacitance parasitic capacitor
EECS 247 Lecture 14: Data Converters- DAC Design © 2009 Page 12
Charge Scaling DAC
• Advantages:
– Low power dissipation capacitor array does not dissipate DC power
– Output is sample and held no need for additional S/H
– INL function of capacitor ratio
– Possible to trim or calibrate for improved INL
– Offset cancellation almost for free
• Disadvantages:
– Process needs to include good capacitive material not compatible
with standard digital process
– Requires large capacitor ratios
– If binary-weighted Cs used then not inherently monotonic (more later)
EECS 247 Lecture 14: Data Converters- DAC Design © 2009 Page 13
Segmented DAC
Resistor Ladder (MSB) & Binary Weighted Charge Scaling (LSB)
• Example: 12bit
DAC
– 6-bit MSB DAC
R- string reset
– 6-bit LSB DAC Vout
binary weighted 32 C 16C 8C 4C 2C C C
charge scaling ...
...
• Component count ... b5 b4 b3 b2 b1 b0
much lower .
compared to full R-
string
6-bit
– Full R string
binary weighted
4096 resistors
charge redistribution DAC
– Segmented 64 6bit
R + 7 Cs (64 unit resistor
caps) ladder Switch
Network
EECS 247 Lecture 14: Data Converters- DAC Design © 2009 Page 14
Current Based DACs
R-2R Ladder Type
• R-2R DAC basics:
R V/2
– Simple R network I/2
I I/2
divides both voltage V
& current by 2 2R 2R
Iout
VB
2R 2R 2R 2R 2R 2R
R R R R
VEE
EECS 247 Lecture 14: Data Converters- DAC Design © 2009 Page 16
R-2R Ladder DAC
How Does it Work?
Consider a simple 3bit R-2R DAC:
Iout
2R 2R 2R 2R
R R
VEE
EECS 247 Lecture 14: Data Converters- DAC Design © 2009 Page 17
I3 I2 I1 IT I3 I2 I1+IT
VB Q3 Q2 Q1 QT VB Q3 Q2
2R 2R 2R 2R 2R 2R R
R R R R
VEE VEE
EECS 247 Lecture 14: Data Converters- DAC Design © 2009 Page 18
R-2R Ladder DAC
How Does it Work?
Simple 3bit DAC-
2- Consolidate next two stages:
I1+IT I2+I1+IT
I3 I2 I3
VB Q3 Q2 VB Q3 Q2
2R 2R R 2R R
R R R
VEE VEE
I I I
I3 I2 I1 IT I3 Total , I2 Total , I1 Total
2 4 8
EECS 247 Lecture 14: Data Converters- DAC Design © 2009 Page 19
Iout
4I 2R 2I 2R I 2R I 2R
R R
VEE
4I 2I
In most cases need to convert output current to voltage
Note that finite output resistance of the current sources causes gain error
only
Ref: B. Razavi, “Data Conversion System Design”, IEEE Press, 1995, page 84-87
EECS 247 Lecture 14: Data Converters- DAC Design © 2009 Page 20
R-2R Ladder DAC
RTotal
R
-
+ Vout
VB
16I 2R 8I 2R 4I 2R 2I 2R I 2R I 2R
R R R R
VEE
16I 8I 4I 2I
Trans-resistance amplifier added to:
- Convert current to voltage
- Generate virtual ground @ current summing node so that output
impedance of current sources do not cause error
- Issue: error due to opamp offset
EECS 247 Lecture 14: Data Converters- DAC Design © 2009 Page 21
Gi ves r i s e t o IN L & DN L
EECS 247 Lecture 14: Data Converters- DAC Design © 2009 Page 22
R-2R Ladder
Summary
• Advantages:
– Resistor ratios only x2
– Does not require precision capacitors
– Implemented both in BJT & MOS
• Disadvantages:
– Total device emitter area AEunitx 2B
Not practical for high resolution DACs
– INL/DNL error due to amplifier offset
EECS 247 Lecture 14: Data Converters- DAC Design © 2009 Page 23
EECS 247 Lecture 14: Data Converters- DAC Design © 2010 Page 24
Current Source DAC
Unit Element R
…………… -
Vout
+
EECS 247 Lecture 14: Data Converters- DAC Design © 2010 Page 25
• “Binary weighted”
• B current sources & switches (2B-1 unit current sources but less
# of switches)
• Monotonicity depends on element matching not guaranteed
EECS 247 Lecture 14: Data Converters- DAC Design © 2010 Page 26
Current Source DAC
DNL/INL Due to Element Mismatch
-
Vout
+
Iref -D I Iref +D I
• Simplified example:
– 3-bit DAC
– Assume only two of the current sources mismatched (# 4 & #5)
EECS 247 Lecture 14: Data Converters- DAC Design © 2010 Page 27
( I D I )R IR 2
DN L[ 5]
IR
1xIref R
DN L[ 5] D I / I [ L S B ] Digital
Input
IN Lmax D I / I [ L S B ] 0
000 001 010 011 100 101 110 111
EECS 247 Lecture 14: Data Converters- DAC Design © 2010 Page 28
Static DAC Errors -INL / DNL
Static DAC errors mainly due to component mismatch
– Systematic errors
• Contact resistance
• Edge effects in capacitor arrays
• Process gradients
• Finite current source output resistance
– 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: Data Converters- DAC Design © 2010 Page 29
Component Mismatch
Probability Distribution Function
• Component parameters Random variables
*
pdf [f(x1,x2)] pdf [f(x3,x4)] pdf [f(xm,xn)] Gaussian pdf
..……..
* *
EECS 247 Lecture 14: Data Converters- DAC Design © 2010 Page 30
Gaussian Distribution
0.4
0.2
0.1
xm
2
1 2s 2
p( x ) e
2s 0
-3 -2 -1 0 1 2 3
where: (x-m) /s
m is the expected value and
standard deviation :s E( X 2 ) m 2
s 2 variance
EECS 247 Lecture 14: Data Converters- DAC Design © 2010 Page 31
Yield
In most cases we are
interested in finding the
Probability density
0.4
percentage of components 0.3
(e.g. R) falling within certain
p(x)
0.2
bounds around a mean
value m 0.1
0
PX x X
2
X x
1
e 2 dx 1
P(-X x X)
95.4
2 X 0.8
0.6 68.3
X 0.4
erf 0.2
38.3
2
0
Integral has no analytical 0 0.5 1 1.5 2 2.5 3
solution found by numerical X/s
methods
EECS 247 Lecture 14: Data Converters- DAC Design © 2010 Page 32
Yield
X/s P(-X x X) [%] X/s P(-X x X) [%]
EECS 247 Lecture 14: Data Converters- DAC Design © 2010 Page 33
Example
• Measurements show that the offset voltage of
a batch of operational amplifiers follows a
Gaussian distribution with s = 2mV and m= 0.
EECS 247 Lecture 14: Data Converters- DAC Design © 2010 Page 34
Component Mismatch
Example: Resistors layouted out 400
side-by-side
No. of resistors
300
……. ……. DR
200
R
100
Nominal value
100
0
After fabrication large # of 98.8 99.2 99.6 100 100.4 100.8 101.2
devices measured R[ ]
& graphed typically if E.g. Let us assume in this example 1000 Rs
sample size large shape measured
is Gaussian & 68.5% fall within +-0.4OHM or +-0.4% of
average
1sfor resistors 0.4%
EECS 247 Lecture 14: Data Converters- DAC Design © 2010 Page 35
Component Mismatch
Example: Two resistors 0.4
Probability density p(x)
R1 R2 0.1
R
0.05
2
0
d R R1 R2 3s 2s s 0 s 2s 3s
dR
For typical technologies & geometries R
1 1s for resistors 0.02 to 5%
s dR
2
A re a
R In the case of resistors s is a function of area
EECS 247 Lecture 14: Data Converters- DAC Design © 2010 Page 36
DNL Unit Element DAC
E.g. Resistor string DAC: Vref
Assumption: No systematic error- only random error
2B 1
Iref
o Ri
D Rmedian Iref w here Rmedian
2B
Di Ri Iref
Di Dmedian
DN Li
Dmedian Di Ri Iref
Ri R dR dR
median
R R Ri
median median
s DNL s 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: Data Converters- DAC Design © 2010 Page 37
EECS 247 Lecture 14: Data Converters- DAC Design © 2010 Page 38
Yield
X/s P(-X x X) [%] X/s P(-X x X) [%]
EECS 247 Lecture 14: Data Converters- DAC Design © 2010 Page 39
Ri Answer:
From table or Matlab: for 99.9%
X/s = 3.3
sDNL = sdR/R = 0.4%
3.3 sDNL = 3.3x0.4%=1.3%
EECS 247 Lecture 14: Data Converters- DAC Design © 2010 Page 40
DAC INL Analysis
Ideal Variance
N A=n+E n n.se2
B=N-n-E N-n (N-n).se2
Output [LSB]
E
E = A-n r =n/N N=A+B
n A = A-r(A+B)
= (1-r). A - r.B
Variance of E:
n
Input [LSB]
N=2B-1 sE2 =(1-r)2 .sA2 r 2 .sB2
=N.r .(1-r).se2 = n .(1- n/N).se2
EECS 247 Lecture 14: Data Converters- DAC Design © 2010 Page 41
DAC INL
sINL/se
n
sE 2
n 1 s e 2 (2B-1)0.5/2
N
ds E 2
T o f i nd max. var i ance : 0
dn
N
n N / 2 s E2 s e 2
4
• Error is maximum at mid-scale (N/2):
1 B
s INL
max
2 1 se 0
2 0 0.5 1
w i t h N 2B 1 n/N
• INL depends on both DAC resolution & element matching se
• While sDNL = seis to first order independent of DAC resolution and is
only a function of element matching
Ref: Kuboki et al, TCAS, 6/1982
EECS 247 Lecture 14: Data Converters- DAC Design © 2010 Page 42
Untrimmed DAC INL
Example:
1 B
Assume the following requirement s INL 2 1 se
for a DAC: 2
sINL = 0.1 LSB
s INL
Find maximum resolution for: B 2 2log 2
se
se 1% Bmax 8.6bits
se 0.5% Bmax 10.6bits
se 0.2% Bmax 13.3bits
se 0.1% Bmax 15.3bits
EECS 247 Lecture 14: Data Converters- DAC Design © 2010 Page 43
Simulation Example
12 Bit converter DNL and INL
2 se = 1%
B = 12
DNL [LSB]
0
Why is the
results not as
-1 expected per our
500 1000 1500 2000 2500 3000 3500 4000
bin derivation?
EECS 247 Lecture 14: Data Converters- DAC Design © 2010 Page 44
INL & DNL for Binary Weighted DAC
Iout
• INL same as for unit
element DAC
EECS 247 Lecture 14: Data Converters- DAC Design © 2010 Page 45
DAC DNL
Example: 4bit DAC
..
.
Iout Analog ..
Output [Iref] I8on, I4off ,I2off ,I1off
8
I8off, I4on ,I2on ,I1on
7
I8 I2 I1 6
I4
8Iref 5
4Iref 2Iref Iref
4 I4on ,I2off ,I1off
..
..
.
3 I2on ,I1on
• DNL depends on transition
2 I2on ,I1off
– Example:
0 to 1 sDNL2 = s(dIref/Iref2 1 I1on
Digital
1 to 2 sDNL2 = 3s(dIref/Iref2 0 Input
EECS 247 Lecture 14: Data Converters- DAC Design © 2010 Page 46
Binary Weighted DAC DNL
• Worst-case transition
DNL for a 4-Bit DAC occurs at mid-scale:
15
s DNL
2
2B1 1 se2 2B1 se2
sDNL2/se2
0111... 1000...
10
2Bse2
s DNLmax 2B / 2se
5 1 1
s INLmax 2B 1 s e s DNLmax
2 2
• Example:
0 2 4 6 8 10 12 14 B = 12, se = 1%
EECS 247 Lecture 14: Data Converters- DAC Design © 2010 Page 47
EECS 247 Lecture 14: Data Converters- DAC Design © 2010 Page 48
Current-Switched DACs in CMOS
Iout
Iref Switch Array
dId dW L 2dVth
Id W
L VGS Vth ……
• Disadvantages:
Accuracy depends on device W/L & Vth matching
EECS 247 Lecture 14: Data Converters- DAC Design © 2010 Page 49
1 B 1B see
s IN L 2 2 se s IN L 2 2 se slide 42
S 2B SB
EECS 247 Lecture 14: Data Converters- DAC Design © 2010 Page 50
Unit Element versus Binary Weighted DAC
Example: B=10
Unit Element DAC Binary Weighted DAC
s DNL s e s DNL 2 s e 3 2s e
B
2
1 1
s INL 2 s e 1 6s e s INL 2 s e 16s e
B B
2 2
S B 10
S 2B 1 0 24
EECS 247 Lecture 14: Data Converters- DAC Design © 2010 Page 51
1
0
-1
-2 Close to statistical result!
500 1000 1500 2000 2500 3000 3500 4000
bin
2
INL [LSB]
-1
500 1000 1500 2000 2500 3000 3500 4000
bin
EECS 247 Lecture 14: Data Converters- DAC Design © 2010 Page 52
10Bit DAC DNL/INL Comparison
Plots: 100 Matlab Simulation Runs Overlaid
Ref: C. Lin
and K. Bult,
"A 10-b,
500-
MSample/s
CMOS DAC
in 0.6 mm2,"
IEEE
Journal of
Solid-State
Circuits, vol.
33, pp. 1948
- 1958,
December
1998.
Note: se=2%
EECS 247 Lecture 14: Data Converters- DAC Design © 2010 Page 53
Ref: C. Lin
and K. Bult,
"A 10-b,
500-
MSample/s
CMOS DAC
in 0.6 mm2,"
IEEE
Journal of
Solid-State
Circuits, vol.
33, pp. 1948
- 1958,
December
1998.
Note: se=2%
EECS 247 Lecture 14: Data Converters- DAC Design © 2010 Page 54
DAC INL/DNL Summary
• DAC choice of architecture has significant impact on
DNL
EECS 247 Lecture 14: Data Converters- DAC Design © 2010 Page 55
Segmented DAC
Combination of Unit-Element & Binary-Weighted
• Objective:
Compromise between unit-element and binary-weighted DAC
• Approach: VAnalog
B1 MSB bits unit elements
B2 LSB bits binary weighted BTotal = B1+B2
EECS 247 Lecture 14: Data Converters- DAC Design © 2010 Page 56
Comparison
Example: B2 1
B = 12, B1 = 5, B2 = 7 s DNL 2 2
s e 2s INL
B1 = 6, B2 = 6 1
s INL 2 se
B
2
MSB LSB
S 2B1 1 B2
Assuming: se = 1%
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
d7 d1
• For each diff pair, only one of
the devices are on switch
device mismatch not an issue Binary Thermometer
b2,b1,b0 d7,d6,d5,d4,d3,d2,d1
• Issue: While binary weighted
000 0000000
DAC can use the incoming 001 0000001
binary digital word directly, 010 0000011
unit element requires a 011 0000111
decoder 100 0001111
101 0011111
110 0111111
N to (2N-1) decoder 111 1111111
EECS 247 Lecture 14: Data Converters- DAC Design © 2010 Page 58
Segmented Current-Switched DAC
Example: 8bit4MSB+4LSB
• 4-bit MSB Unit
element DAC +
4-bit binary
weighted DAC
EECS 247 Lecture 14: Data Converters- DAC Design © 2010 Page 59
EECS 247 Lecture 14: Data Converters- DAC Design © 2010 Page 60
Segmented Current-Switched DAC
Cont’d
Domino Logic
• MSB Decoder
Domino logic
Example: D4,5,6,7=1 OUT=1
IN
• Register
Latched NAND gate:
CTRL=1 OUT=INB
Register
EECS 247 Lecture 14: Data Converters- DAC Design © 2010 Page 61
Problem:
Reference
current
varies with +
supply -
voltage
Iref =(VDD-Vref ) / R
EECS 247 Lecture 14: Data Converters- DAC Design © 2010 Page 62
Segmented Current-Switched DAC
Reference Current Considerations
• Iref is
referenced to
VssGND
+
-
EECS 247 Lecture 14: Data Converters- DAC Design © 2010 Page 63
EECS 247 Lecture 14: Data Converters- DAC Design © 2010 Page 64
Dynamic DAC Error: Timing Glitch
• Consider binary weighted DAC Output
DAC transition 011 100 10
Ideal
5
• DAC output depends on
0
timing 10
1 1.5 2 2.5 3
Early
5
• Plot shows situation where
0
the control signals for LSB & 1 1.5 2 2.5 3
10
MSB
Late
– LSB/MSBs on time 5
EECS 247 Lecture 14: Data Converters- DAC Design © 2010 Page 65
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
• Examples:
fs [MHz] B dt [ps]
1 12 << 488
20 16 << 1.5
1000 12 << 0.5
Timing accuracy for data converters much more critical compared to digital
circuitry
EECS 247 Lecture 14: Data Converters- DAC Design © 2010 Page 66
DAC Dynamic Errors
• To suppress effect of non-idealities:
– Retiming of current source control signals
• Each current source has its own clocked latch
incorporated in the current cell
• Minimization of latch clock skew by careful
layout ensuring simultaneous change of bits
EECS 247 Lecture 14: Data Converters- DAC Design © 2010 Page 67
• Current copiers:
– D. W. J. Groeneveld et al, “A Self-Calibration Technique for
Monolithic High-Resolution D/A Converters,” JSSC December
1989, pp. 1517
EECS 247 Lecture 14: Data Converters- DAC Design © 2010 Page 68
2mtech., 5Vsupply
8x8 array
6+2 segmented
EECS 247 Lecture 14: Data Converters- DAC Design © 2010 Page 69
EECS 247 Lecture 14: Data Converters- DAC Design © 2010 Page 70
Current-Switched DACs in CMOS
Assumptions:
RxI small compared to transistor gate-overdrive
To simplify analysis: Initially, all device currents assumed to be equal to I
VGSM 2 VGSM 1 4RI
Iout
VGSM 3 VGSM 1 7RI
I2 k VGSM 2 Vth
2
EECS 247 Lecture 14: Data Converters- DAC Design © 2010 Page 71
EECS 247 Lecture 14: Data Converters- DAC Design © 2010 Page 72
Current-Switched DACs in CMOS
Example: INL of 3-Bit unit element DAC
0.3
Sequential current
0.2
source switching
INL [LSB]
-0.1
0 1 2 3 4 5 6 7
Input
EECS 247 Lecture 14: Data Converters- DAC Design © 2010 Page 73
source switching
0
Symmetrical current
source switching
-0.1
-0.2 1 2 3 4 5 6 7
Input
EECS 247 Lecture 14: Data Converters- DAC Design © 2010 Page 74
Two sources of systematic error:
- Finite current source output resistance
- Voltage drop due to finite ground bus resistance
EECS 247 Lecture 14: Data Converters- DAC Design © 2010 Page 75