Sunteți pe pagina 1din 5

1

A Fast Simulator for Pipelined A/D Converters


Bibhu Datta Sahoo and Behzad Razavi
Electrical Engineering Department
University of California, Los Angeles
e-mail:bsahoo@ee.ucla.edu,razavi@ee.ucla.edu

AbstractA simulator for comprehensive analysis of II. P IPELINED ADC M ODELING


pipelined A/D converters has been developed in MATLAB
Figure 1 shows the architecture of a pipelined ADC. Each
and compiled to an executable that can be run on
stage digitizes its analog input, Vin , by means of a sub-ADC
various platforms. The simulator accepts user-specified
with a resolution of M bits (not necessarily the same for
parameters such as resolution per stage, number of
all stages), converts this estimate to digital by means of a
stages, input and clock frequencies, input amplitude, op
sub-digital-to-analog converter (sub-DAC), and subtracts the
amp nonlinearity, capacitor mismatch, comparator offset,
analog estimate from Vin to produce a residue. The residue
and clock jitter. The tool then provides the simulated
is amplified by a power of two and passed on to the next stage
performance in the form of residue plots, differential
for further digitization.
and integral nonlinearity profiles, output spectrum, and
input-referred thermal noise. Compared with Cadences
Spectre, the proposed simulator runs several orders of Input Stage 1 Stage 2 Stage N
magnitude faster while incurring a small error.

I. INTRODUCTION V in
+
2
M
Vout
_
The design of high-performance analog-to-digital convert-
ers (ADCs) presents difficult challenges as applications call
for higher speeds and resolutions and as device dimensions Sub Sub
ADC DAC
and supply voltages are scaled down. To meet these chal-
lenges, increasingly sophisticated ADC architectures, circuit M Bits

techniques, and digital processing and calibration algorithms


have been introduced, leading to complexity levels of tens Fig. 1. Pipelined ADC architecture.
of thousands of transistors and extremely lengthy analog
simulations. These issues are particularly problematic in A compact, efficient implementation of pipelined stages is
pipelined ADC architectures because the imperfections of the shown in Fig. 2. Called a 1.5-bit multiplying DAC (MDAC)
stages tend to accumulate, thus complicating the analysis of stage [1], [2], this circuit employs only two comparators in
the overall performance. the sub-ADC to determine whether Vin lies below VREF /4,
This paper introduces a simulation tool for the analysis between VREF /4 and +VREF /4, or above +VREF /4. The
and design of pipelined ADCs that runs orders of magnitude sub-ADC and capacitors C1 and C2 sample Vin simultane-
faster then circuit simulators. Based on a MATLAB script ously, C2 is flipped around the op amp, and the sub-ADCs
but usable without MATLAB, the tool operates through decision determines whether the left plate of C1 must be
a graphical user interface (GUI) and provides differential switched to VREF , 0, or +VREF . The popularity of this
nonlinearity (DNL) and integral nonlinearity (INL) profiles, architecture stems from its tolerance of large comparator
the input-output characteristic, the input-referred thermal offsets and timing mismatches between the sampling paths
noise resulting from op amp noise and kT/C noise, and the of C1 + C2 and the two comparators.
output spectrum in response to an input sinusoid. The tool The design of the above pipelined stage must deal with the
incorporates critical imperfections such as op amp nonlinear- following imperfections: (1) kT /C noise given by C1 and
ity, capacitor mismatch, op amp slewing and linear settling, C2 in both sampling and amplification modes, (2) op amp
comparator offset, and clock jitter. noise in the amplification mode (and, in some topologies,
Section II of the paper deals with the modeling of pipelined the sampling mode), (3) finite open-loop gain of the op amp,
ADCs and their nonidealities in a platform such as MATLAB, (4) nonlinearity of the op amp, (5) mismatch between C1 and
including a state-space methodology for the computation of C2 , (6) input capacitance of the op amp, Cx , (7) slewing and
noise in pipelined ADCs. Section III presents the simulator linear settling of the op amp in the amplification mode while
engine, Section IV describes the simulator interface, and it drives CL (the input capacitance of the next stage in the
Section V compares simulation results with those obtained pipeline), and (8) the offset of the comparators. In the front-
from Cadence. end stage of the ADC, the clock jitter also plays a critical

978-1-4244-4480-9/09/$25.00 2009 IEEE 402


2

MDAC
Equations (2)-(5) do not lend themselves to a closed-form
2
solution but are readily solved in MATLAB using the func-
1 C2 1 tion roots. That is, the output of each stage in the pipeline
is calculated based on the user-specified nonidealities of the
1 C1
VX
stage and passed on to the next stage.
V in
A1 Vout The coefficients j in Eq. (1) are obtained by transistor-
CX
CL level simulation of the op amp and fitting a third-order
2
polynomial to the resulting characteristic. For differential
D1 implementations with small mismatches, 2 0, thus
KVREF simplifying the fitting procedure.
The offset of the comparators is incorporated by adjusting

V REF D1 K their decision thresholds and hence producing a correspond-
4 00 1 ing digital output for the sub-ADC. The offsets can be
01 0 specified by the user for all stages.
V REF
+ 11 +1
4 While the above modeling procedure has been derived for
SubADC a 1.5-bit stage, our simulation tool in fact handles arbitrary
resolutions in each stage of the pipeline. Equations (2)-(5)
Fig. 2. Pipelined stage with 1.5-bit resolution. can be modified to handle N -bit MDACs with or without
redundancy.

role.
B. Modeling of Dynamic Effects
In the analysis and design of pipelined ADCs, it is desir-
A. Modeling of Static Effects able to quantify how the precision degrades as the clock rate
We now formulate the behavior of the stage so as to capture increases. The simulation tool developed here approximates
the above nonidealities. The input-output static characteristic the MDAC dynamic behavior by a slewing regime followed
of the op amp in Fig. 2 can be approximated by a third-order by a linear settling regime . The time at which the settling
polynomial across the voltage range of interest: changes from nonlinear to linear (t1 ) is a user-defined fraction
of the clock period. The linear settling behavior is based on
Vout 1 Vx + 2 Vx2 + 3 Vx3 . (1)
the small-signal model shown in Fig. 3, whose time constant
In the sampling mode, the input and output voltages of the is given by [3]
op amp are equal and expressed by CL (CS + Cx ) + CL CF + (CS + Cx )CF
amp = . (6)
2
Vx1 = 1 Vx1 + 2 Vx1 3
+ 3 Vx1 , (2) Gm CF
In other words, an exponential with this time constant and
where Vx1 denotes Vx in the sampling mode. (The offset of
an initial value equal to Vout (t1 ) is solved to obtain Vout at
the op amp can also be included by subtracting it from Vx1
t = Tck /2.
on the right-hand side.) The total charge stored on C1 and
C2 is thus equal to CF

Qsamp = (C1 + C2 )Vin (C1 + C2 + Cx )Vx1 . (3) CS


Vout
Upon completion of sampling, the sub-ADC is clocked, V in VX CX G m VX RO CL

C2 is placed around the op amp, and the left plate of C1 is


connected to KVREF , where K = 1, 0 denotes the sub-
ADCs decision. The output voltage thus settles to Fig. 3. Equivalent circuit of MDAC in amplification mode.

2 3
Vout = 1 Vx2 + 2 Vx2 + 3 Vx2 , (4)
where Vx2 is the value of Vx in the amplification mode. Also C. Modeling of Noise Transfer Functions
the total charge residing on C1 , C2 and Cx in this mode is Perhaps the most difficult task in the analysis of pipelined
given by ADCs, computation of the overall input-referred noise plays
a critical role in the power optimization of the design. Since
Qamp = C1 KVref + C2 Vout (C1 + C2 + Cx )Vx2 . (5)
such ADCs typically scale down the devices and bias currents
Conservation of charge requires that Qamp = Qsamp . Equa- along the pipeline, it is essential to accurately calculate the
tions (2)-(5) provide a complete description of the static noise contribution of each stage.
behavior of the pipelined stage, modeling the following The difficulty in noise computation arises from two fac-
nonidealities: finite op amp gain, op amp nonlinearity, op tors: (1) the noise transfer functions become very complex,
amp offset, op amp input capacitance, and mismatch between assuming orders as high as 6 or 7 (explained below), and
C1 and C2 . (2) the noise sampled by the input of one stage depends on

403
3

bandwidth limitations imposed by the MDAC in the previous sources included in the previous calculations. The state space
stage. Cadences Spectre can calculate noise in transistor- approach can be extended to this case as well.
level transient simulations, but the simulation becomes pro- The foregoing noise calculation method continues to the
hibitively long for a cascade of pipelined stages and, owing end of the pipeline, thereby yielding the total integrated noise
to difficulty in finding periodicity, fails in some cases. In this at the output of the last MDAC stage. The result is then
work, we apply the state space method of analyzing linear divided by the total gain provided by the pipeline so as to
systems [4] to the calculation of the noise. arrive at the input-referred noise voltage of the ADC.
Figure 4 shows the small-signal model of an MDAC The circuits of Figs. 4 and 5 may imply that the value of
employing a two-stage op ampa common choice in todays the switch resistances must be provided by the user. Since
low-voltage ADCs. Here, Rsj and Vsj respectively denote the these resistances should not limit the settling behavior of the
on-resistance and thermal noise of the switches that appear MDAC, the tool assumes that the resistance in series with
in series with the sampling capacitors, and In1,op and In2,op each capacitor leads to a time constant of 1/10 of Tck /2.
the noise current at the output of each stage of the op amp Also, the op amp noise spectral density is approximated
(per unit bandwidth). The op amp is modeled by two gain by 4kT gm where denotes the excess noise factor of
stages and a compensation capacitor Cc . Note that the input MOSFETs ( 1) and gm denotes the transconductance of
sampling network of the next stage is also included. The each stage of the op amp. As explained in Section V,
objective is to determine the total noise sampled on CL at these approximations lead to good agreement between our
the end of this mode. simulators estimate and that obtained from Spectre.
Rather than directly compute the noise transfer functions,
we utilize the state space method: we first assign independent III. S IMULATOR E NGINE
states to the storage elements in the circuit (voltages Xj in
The simulator engine is shown in Fig. 6. The arguments
Fig. 4) and then write the following matrix equations:
to the engine are the MDAC architecture, number of stages
X = AX + BU (7) in the pipeline, clock frequency, input signal swing, input
Y = CX + DU , (8) frequency and the variance of the clock jitter. The INL
and DNL profiles are obtained by code density tests using
where X denotes the states, X = dX/dt, U is the vector either a ramp input or a sinusoidal input. The ramp input is
of inputs to the system (the noise sources), and Y is the chosen such that it produces 10 codes per bin. For sinusoidal
vector of the outputs (in this case, the voltage across CL ). inputs, the computation becomes difficult as the resolution
Also, A, B, C, and D are the state matrices. exceeds 8 bits because hundreds of thousands of samples
The circuit of Fig. 4 contains six states, five inputs and one are necessary to produce the profiles. Thus, the simulation
output. Since the output is equal to state X6 , we have D = 0 is performed in a number of passes, each generating 25,000
and C = [0 0 0 0 0 1]. Matrices A and B are defined by codes. The results are then combined properly, yielding the
the circuit parameters and can be readily found by writing DNL and INL profiles.
the various nodal equations. For example, the first row of A, In order to determine the output spectrum in response to
i.e., a11 , ..., a16 , is obtained by noting that an input sinusoid whose amplitude and frequency are defined
by the user, the simulator first generates the digital bits
X 1 = a11 X1 + + a16 X6 + b11 Vn1 + from each stage, appropriately combines them to generate the
+b15 In1,op + b16 In2,op , (9) digital representation of the analog value, and subsequently
takes the FFT in MATLAB.
where b1j are the first row of B, Vnj are the four noise
sources, and Inj,op the op amp noise currents. To compute
a11 , we apply a KVL in the loop consisting of C1 , CX , Rs1 , IV. S IMULATOR I NTERFACE
and Vns1 , thus arriving at a11 = 1/(Rs1 C1 ). With the four The simulator has been implemented in MATLAB and
state matrices known, Eqs. (7) and (8) are numerically solved subsequently compiled to an executable that can be run on
to find the contribution of each noise source to the output. various platforms. On the GUI, the user selects the resolution
These contributions are then integrated for a frequency range of each stage (1 bit, 1.5 bits, or higher integer values) and the
of 0 to and summed to determine the total noise. The number of stages in the pipeline. The user can also enter the
numerical integration is simplified through the use of initial following parameters: (1) for each stage, the op amp gain and
value theorem in Laplace transforms. nonlinearity coefficients, the capacitor values and mismatch,
The circuit of Fig. 4 still does not completely represent the the op amp and comparator offsets, and the transconductance
noise mechanisms in a cascade of pipelined stages. Consider of the op amp; (2) the analog signal swing and frequency,
the cascade depicted in Fig. 5, where the first stage is in the and the clock frequency.
amplification mode and the second in the sampling mode. Upon simulation, the user can view the residue plot of
Here, the second op amp is configured as a unity-gain buffer each stage, the overall input-output characteristic, the DNL
by a feedback switch with noise Vnf 1,2 . Thus, the noise of and INL profiles, and the output spectrum. The total input-
the op amp and the feedback switch is sampled on C1,2 referred noise along with contributions from each stage are
and C2,2 in the second stage along with the other noise also computed.

404
4

2 Next Stage
V nS2
C2 R S2 2
V nS3
X3 R3

CC
C1 X6 CL
R4
X1
R S1 X2 CX g m1V 1 I n1,op
2 V1 R1 X4 C O1 V 2 g m2 V 2 I n2,op R2 X 5 C O2 2
V nS1 V nS4

Op Amp

Fig. 4. MDAC equivalent circuit with all noise sources.

MDAC 1 MDAC 2

C 2,1 R S2,1 V ns2,1 C 2,2 R nf1,2 V nf1,2

R S1,1 V ns1,1 C 1,1


R S3,1 V ns3,1 C 1,2
C X1
C X2
V op1
V op2

Fig. 5. Noise sources: stage 1 in amplification mode and stage 2 in sampling mode.

Input Next Stage


to Stage 1

Solve
Residue
Eqs. (2) (5)
Input for Residue Plot Residue Plot
for Stage j
I/O Plot and DNL/INL Plot
Ramp
Stage j
Generator Combine
Digital Output Bits
I/O Plot

Input for FFT Plot Histogram DNL/INL


User Input Plot
and/or DNL/INL Plot
To GUI Sine
Generator

Compute Integrate Each 1024 Point Spectrum


Generate FFT Plot
Transfer Function Transfer Function
Eqs. (8) (9) from Each Noise from 0 to
for Stage j to Output in Laplace Domain

Sum to Obtain Divide by the Sum to Obtain


Noise for Total Gain Total Input
Stage j to Stage j Referred Noise
Next Stage

Fig. 6. Simulator engine.

The simulator also provides two calibration algorithms, V. S IMULATION R ESULTS AND
either one of which can be selected and run on the ADC.
Alternatively, the user can use his/her own calibration al-
C OMPARISON WITH S PECTRE
gorithm and compare the performance of the ADC before
In order to demonstrate the speed advantages of the
and after calibration. In the latter case, the user can write
proposed simulator, pipelined ADCs having resolutions of
the digital outputs of the stages to a file, run the calibration
8 to 12 bits have been simulated by the tool, by Spectre, and
algorithm, and return the results to the simulator so as to
by Ultrasim on a 64-bit AMD, 2.2-GHz machine with Redhat
study the performance after calibration.
Linux. Spectre and Ultrasim simulations were performed at
transistor level (in 90-nm CMOS technology).
Table I compares the linearity simulation times using our

405
5

simulator and Ultrasim. (Spectre simulation was prohibitively


long.) Figure 7 shows the DNL and INL plots obtained
from the proposed tool and Ultrasim. Table II shows the
TABLE I 0.05
DNL/INL COMPUTATION TIME 0

DNL (LSB)
Resolution Ultrasim Proposed Simulator 0.05
8-bit 5h:33m:40s 3.3s 0.1
10-bit 12h:45m:33s 45.97s
0.15
12-bit 63h:11m:24s 16m:37s
0.2

0.25

simulation time to compute the 1024-point FFT of the output 200 400 600 800 1000
Code
for 8-bit, 10-bit and 12-bit ADCs. Table III compares the
TABLE II (a)
1024 FFT COMPUTATION TIME
Resolution Spectre Ultrasim Proposed
Simulator 1
INL Plot

8-bit 17h:27m:12s 2h:2m:40s 1.24s


10-bit 20h:37m:19s 2h:26m:31s 1.63s
12-bit 36h:16m:22s 6h:43m:11s 2.48s 0.5

INL (LSB)
Accuracy tightened for 12-bit resolution.
0

simulation time and accuracy of noise measurement using 0.5

the proposed tool and Spectre for stage 1 and stage 2 of a


pipelined ADC and the cascade of the two stages. (Transient 1
0 200 400 600 800 1000
noise simulations for more than two pipelined stages in Code

Spectre have not been successful.)


(b)
TABLE III
N OISE COMPUTATION
Noise (V) Error Simulation Time 0.1
Spectre Proposed Spectre Proposed 0.05
Simulator Simulator 0
Stage 1 110 120.70 9.7% 20m:10s 0.200s
DNL (LSB)

0.05
Stage 2 197 208.99 6.1% 4m:36s 0.192s 0.1
Cascade 275 299 8.7% 26m:18s 0.3s 0.15

0.2

0.25

0.3

VI. C ONCLUSION 200 400 600 800 1000


Code
A MATLAB-based simulator for the analysis and design
of pipelined ADCs has been proposed that allows fast com-
(c)
putation of critical parameters, enabling the user to easily
explore the design space and quantify the consequences of
each design choice. The simulator provides DNL and INL
profiles, the output spectrum, and the input-referred noise in 1

orders of magnitude less time.


0.5
INL (LSB)

R EFERENCES 0

[1] S. H. Lewis, Optimizing the Stage Resolution in 0.5

Pipelined, Multistage, Analog-to-Digital Converters for


Video Rate Applications, IEEE Trans. Circuits Syst. II, 1
0 200 400 600 800 1000
Code
vol. 39, pp. 516523, Aug 1992.
[2] A. M. Abo and P. R. Gray, A 1.5-V, 10-bit, 14.3-MS/s
(d)
CMOS Pipelined Analog-to-Digital Converter, IEEE J.
Solid-State Circuits, vol. 34, pp. 599606, May 1992.
Fig. 7. Simulation results for a 10-bit ADC: (a) DNL as predicted by our
[3] B. Razavi, Design of Analog CMOS Integrated Circuits. simulator, (b) INL as predicted by our simulator, (c) DNL as predicted by
McGraw Hill, 2001. Ultrasim, and (d) INL as predicted by Ultrasim.
[4] B. C. Kuo, Automatic Control Systems. John Wiley &
Sons, Inc, 1995.

406

S-ar putea să vă placă și