butterfield justin project2 report -...

22
ECE 614 – Fall 2011 Justin D. Butterfield 1 12-Bit Pipelined ADC Design Project Justin D. Butterfield Boise State University December 15, 2011 1. Introduction The goal of this project is to design a 12-bit pipeline analog to digital converter (ADC). The pipeline ADC design is to use 1.5 bits/stage and capacitor error averaging. The ADC will operate with a maximum clock frequency of 100MHz, a VDD of 1V, and a maximum V REF range from 0V to 1V. The design will be verified using ideal components in Spice simulation to focus the design effort on the pipeline ADC architecture rather than on the Op-amps and comparators themselves. Using ideal components will also keep the simulation times reasonable. The purpose of analog to digital converts is to sample and digitize an analog signal. The more precisely the analog signal is converted to digital, the more information can be obtained from it. It is also desirable to convert high bandwidth or high frequency analog signals; thus, ADCs must be capable of a fast sampling rate as well being accurate. The pipeline ADC is the architecture of choice for applications that require both speed and accuracy and where latency is not concern. The basic idea behind the pipeline ADC is that each stage will first sample and hold the input then compare this to V REF /2. If the input is greater than V REF /2, output a 1 for that stage and pass the input voltage directly to the next stage. If the input is less than V REF /2, output a 0 for that stage and multiply the input voltage by 2 before passing it to the next stage. Figure 1 shows the block diagram for this basic operation. Figure 1 Pipeline ADC Block Diagram [1] There are a few challenges with the basic pipeline ADC architecture that this project will attempt to address. Before looking at the sources of error, it is worth noting that an error in the early stages of the pipeline will propagate through the pipeline affectively being amplified by 2 by each successive stage. Errors can be created by the comparators not switching at the correct point. This means that the comparator may have some offset which will result in it making the wrong decision. The sample and hold may also have some offset causing the wrong voltage to be passed to the comparator which will result in the same problem of the comparator making a wrong decision. The other source of error is the multiply by 2 function, because it is difficult to multiply by a gain of exactly 2. These limitations with real op-amps and comparators will result in integral nonlinearity (INL) and differential nonlinearity (DNL) errors. This design requires 12-bit resolution. This means that there will be 2 12 or 4096 possible output bit combinations. Assuming a V REF of 1V, 1LSB or the level of analog resolution is given by 1ܮ ܤ ಶಷ ସଽ 244ߤ (Eq. 1) To correct the errors caused by the offsets in the comparators and the sample and hold op-amps, a technique called 1.5 bits/stage will be used. The name 1.5 bits/stage is based on the fact that each stage has an output with three possible cases consisting of a and b signals, where ab can be 00, 01, or 11. The 1.5 bits/stage algorithm works as follows:

Upload: others

Post on 22-Jan-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Butterfield Justin Project2 Report - CMOSedu.comcmosedu.com/cmos1/email/Butterfield_Justin_Project2_Report.pdf · the analog input to the next stage. Figure 7(a) shows the simulations

ECE 614 – Fall 2011 Justin D. Butterfield

1

12-Bit Pipelined ADC Design Project Justin D. Butterfield

Boise State University December 15, 2011

1. Introduction

The goal of this project is to design a 12-bit pipeline analog to digital converter (ADC). The pipeline ADC design is to use 1.5 bits/stage and capacitor error averaging. The ADC will operate with a maximum clock frequency of 100MHz, a VDD of 1V, and a maximum VREF range from 0V to 1V. The design will be verified using ideal components in Spice simulation to focus the design effort on the pipeline ADC architecture rather than on the Op-amps and comparators themselves. Using ideal components will also keep the simulation times reasonable. The purpose of analog to digital converts is to sample and digitize an analog signal. The more precisely the analog signal is converted to digital, the more information can be obtained from it. It is also desirable to convert high bandwidth or high frequency analog signals; thus, ADCs must be capable of a fast sampling rate as well being accurate. The pipeline ADC is the architecture of choice for applications that require both speed and accuracy and where latency is not concern. The basic idea behind the pipeline ADC is that each stage will first sample and hold the input then compare this to VREF/2. If the input is greater than VREF/2, output a 1 for that stage and pass the input voltage directly to the next stage. If the input is less than VREF/2, output a 0 for that stage and multiply the input voltage by 2 before passing it to the next stage. Figure 1 shows the block diagram for this basic operation.

Figure 1 Pipeline ADC Block Diagram [1]

There are a few challenges with the basic pipeline ADC architecture that this project will attempt to address. Before looking at the sources of error, it is worth noting that an error in the early stages of the pipeline will propagate through the pipeline affectively being amplified by 2 by each successive stage. Errors can be created by the comparators not switching at the correct point. This means that the comparator may have some offset which will result in it making the wrong decision. The sample and hold may also have some offset causing the wrong voltage to be passed to the comparator which will result in the same problem of the comparator making a wrong decision. The other source of error is the multiply by 2 function, because it is difficult to multiply by a gain of exactly 2. These limitations with real op-amps and comparators will result in integral nonlinearity (INL) and differential nonlinearity (DNL) errors. This design requires 12-bit resolution. This means that there will be 212 or 4096 possible output bit combinations. Assuming a VREF

of 1V, 1LSB or the level of analog resolution is given by 1 244 (Eq. 1) To correct the errors caused by the offsets in the comparators and the sample and hold op-amps, a technique called 1.5 bits/stage will be used. The name 1.5 bits/stage is based on the fact that each stage has an output with three possible cases consisting of a and b signals, where ab can be 00, 01, or 11. The 1.5 bits/stage algorithm works as follows:

Page 2: Butterfield Justin Project2 Report - CMOSedu.comcmosedu.com/cmos1/email/Butterfield_Justin_Project2_Report.pdf · the analog input to the next stage. Figure 7(a) shows the simulations

ECE 614 – Fall 2011 Justin D. Butterfield

2

If , then 00 and 2 ∙ .

If , then 01 and 2 ∙ .

If , then 11 and 2 ∙ . The ideal transfer curve for the 1.5 bits/stage of vin versus vout is shown in Figure 2. And, the relationship between vin and vout can be expressed as 2 ∙ . (Eq. 2)

Figure 2 1.5 Bits/Stage Transfer Curve (Single-ended) [1]

Using 1.5 bits/stage corrects reasonable comparator offsets by building in error correction with the extra half bit resolution. Only strings of 01 output are valid. For instance, a 00 cannot be followed by another 00 output, and the same is true for 11 output. This is because the subtraction or addition of VCM is done prior to the multiplication by 2. The consequence of this error correction is that extra logic is required to take into account the output of the next stage and get the final digital output code. The logic schematic will be shown in the design considerations section, but it basically does the following logic functions, where ⊕denotes exclusive OR (XOR): . . and . (Eq. 3) . . ⊕ and . . (Eq. 4) . . ⊕ . ⊕ and . . . . . . (Eq. 5) Also note that the output at this point has a word size of N + 1 where bN is given by . ⊕ c . (Eq. 6) Finally, the binary output word needs to have the offset of VCM – 0.5 LSB subtracted from it where this offset can be expressed as: 0.5 001111… (Eq. 7)

Page 3: Butterfield Justin Project2 Report - CMOSedu.comcmosedu.com/cmos1/email/Butterfield_Justin_Project2_Report.pdf · the analog input to the next stage. Figure 7(a) shows the simulations

ECE 614 – Fall 2011 Justin D. Butterfield

3

The simulation results in the Design Considerations section will show that comparator offset is removed by the error correction of 1.5 bits/stage, but the pipeline ADC still requires a precise multiply by 2. To achieve a more precise multiply by 2, a technique called capacitor error averaging will be used. This technique uses a modified bottom plate sampling switched capacitor op-amp circuit with an ideal gain of 2 as is shown in Figure 3. This circuit works by sampling and holding the input, but instead of sampling again the circuit swaps the positions of the C and C+ΔC capacitors. The outputs of the amplify and hold phases will then need to be averaged by another bottom plate sample and hold circuit (not shown in Figure 3). The goal is that any mismatch in the capacitance of capacitors will be averaged out by using both capacitors for the multiplication and averaging the result.

Figure 3 Capacitor Error Averaging Sample and Hold [1]

The cost of this capacitor error averaging is the added design complexity. There is an extra op-amp and set of switched capacitors for the averaging stage. This will result in more current draw and increase the noise contribution at each stage; although, some of the noise may be canceled out by the averaging action. The other drawback is the need for a three phase non-overlapping clock as shown in the timing diagram at the bottom of Figure 3. This three phase clock must be generated from the input clock which results in a reduction in the sampling rate to less than the input clock rate. Although, the stages can share clocks as will be shown later, there is also a latency penalty for using capacitor error averaging. An additional goal of this project, beyond the design of the 12-bit ADC, is to investigate whether capacitor error averaging provides any advantage when using op-amps with low open loop gains. The output error with finite gain will be derived based on conservation of charge. Simulations will also be performed looking at the effect of finite gain on the error of the multiply by 2 performed by the sample and hold.

Page 4: Butterfield Justin Project2 Report - CMOSedu.comcmosedu.com/cmos1/email/Butterfield_Justin_Project2_Report.pdf · the analog input to the next stage. Figure 7(a) shows the simulations

ECE 614 – Fall 2011 Justin D. Butterfield

4

2. Design Considerations

The first step in the design is to setup the comparators and multiplexers for the 1.5 bits/stage operation. Figure 4(a) shows the schematic of the block that includes the comparators and multiplexers. The inputs to the cell are the differential sampled analog signal from the previous stage. The outputs of the cell are the a and b digital codes from the output of the comparators and the VCIP and VCIM voltages that will be added to the input voltage before being multiplied by 2. Note that the outputs of the comparators are connected to a latch with a delayed clock to prevent comparator metastability from resulting in a timing error. Figure 4(b) shows the simulation results for this cell when a differential ramp voltage is applied to the inputs. The simulation results show that at an input differential voltage of -250mV b goes to a 1 and VCIP and VCIM both go to VCM. At the input differential voltage of 250mV, a goes to a 1, VCIP goes to 2VCM = 1V and VCIM goes to 0V. Figures 5(a) and (b) show the schematic details of the multiplexer and 2-to-4 decoder which were created for this design.

(a) Comparator and Multiplexer Schematic (b) Transfer Simulation

Figure 4 1.5 Bits/Stage Schematic and Simulation

(a) Multiplexer Schematic Detail (b) 2-to-4 Decoder Schematic Detail

Figure 5 Multiplexer and Decoder Detail

+

-

Ideal comp.VDD

Clk -

+

+

-

Ideal comp.VDD

Clk -

+

Mu

xI0I1I2I3

S0S1

Ou

t

VD

D

Mu

xI0I1I2I3

S0S1

Ou

t

VD

D

DClk

Q

Qi

VDD

DClk

Q

Qi

VDD

TD=500ps

A1

TD=500ps

A2R1

100

R2

100 C1

10p

C2

10p

VD

DV

DD

Clk

Clk

Ref

a

am

b

bm

Vcm

2Vcm

Vcip

Vcim

Vinm

Vinp

VDD

VDD

a

am

b

bm

VD

DV

DD

Clk

2C

lk2

Clk2Clk

0.0µs 0.2µs 0.4µs 0.6µs 0.8µs 1.0µs 1.2µs 1.4µs 1.6µs 1.8µs 2.0µs-500mV-400mV-300mV-200mV-100mV

0mV100mV200mV300mV400mV500mV

0.0V0.1V0.2V0.3V0.4V0.5V0.6V0.7V0.8V0.9V1.0V

0.0V0.1V0.2V0.3V0.4V0.5V0.6V0.7V0.8V0.9V1.0V

V(vinsp)-V(vinsm)

V(a) V(b)

V(vcip) V(vcim)

2-4

De

co

de

r

D0

D1

D2

D3

A0

A1

Out

S0

S1

I0

I1

I2

I3

VDD

VDD

VDD

VDD

A1

A2

A3

A4

A5

A6

A0

A1

D0

D1

D2

D3

Page 5: Butterfield Justin Project2 Report - CMOSedu.comcmosedu.com/cmos1/email/Butterfield_Justin_Project2_Report.pdf · the analog input to the next stage. Figure 7(a) shows the simulations

ECE 614 – Fall 2011 Justin D. Butterfield

5

The next major cell to design is the capacitor error averaging sample and hold with a multiplication by two and the addition/subtraction of the VCIP and VCIM. Figure 6 shows the schematic of this capacitor error averaging block. The inputs to this cell are the differential analog voltage from the previous stage and the VCIP and VCIM outputs from the multiplexers. The output of this stage is the vout from Eq. 2 and is the differential output of a given stage, which will be the analog input to the next stage. Figure 7(a) shows the simulations results for a vout transfer curve of this single stage where the differential input is a ramp from 0V to 1V as shown in Figure 7(b). Figure 7(b) also shows how VCIP and VCIM

are changing in relation to the input and output transfer curve. An important consideration for the design of this cell is the size of the capacitors. The minimum size of the capacitors is determined by kT/C noise which must be less than 0.5 LSB for the maximum operating temperature. Assuming a maximum operating temperature of 100°C, the capacitors must be larger than 0.35pF for the ADC to be 12-bit accurate. Thus, 1pF capacitors should give some margin while not being too large.

Figure 6 Capacitor Error Averaging Sample and Hold

(a) 1.5 Bits/Stage S/H Transfer Curve Simulation (b) Transfer Curve Simulation Input Stimulus

Figure 7 Single Stage Transfer Curve Simulation

+

-

Ideal op-amp-

+

CIT

1.00p

CFT

1.00p

CIB

1.00p

CFB

1.00p

+

-

Ideal op-amp-

+

CIT1

1p

CFT1

2.00p

CIB1

1.00p

CFB1

2.00p

VDD

VDD

ph

iap

his

VDD

VDD

ph

is

ph

ih

Vinp

VCMVopp

VDD

VDD

ph

ih

VDD

VDD

ph

iap

his

VDD

VDDVinm

VopmVDD

VDDVoutm

VoutpVin

m1

Vin

p1

Vcip

Vcim

VDD

VDD

ph

ihp

hia

VDD

VCMVopp2

VDD

VDD

ph

ihp

hia

VDD

Vopm2

Vin

m2

Vin

p2

ph

iap

hia

VDD

ph

ih

VDD

ph

ih

VDD

VDD

ph

ia

VDD

ph

ih

VDD

VDD

VDDp

hih

0.0µs 0.2µs 0.4µs 0.6µs 0.8µs 1.0µs 1.2µs 1.4µs 1.6µs 1.8µs 2.0µs-500mV

-400mV

-300mV

-200mV

-100mV

0mV

100mV

200mV

300mV

400mV

500mVV(vinp2)-V(vinm2)

0.0µs 0.2µs 0.4µs 0.6µs 0.8µs 1.0µs 1.2µs 1.4µs 1.6µs 1.8µs 2.0µs-500mV

-400mV

-300mV

-200mV

-100mV

0mV

100mV

200mV

300mV

400mV

500mV

0.0V

0.1V

0.2V

0.3V

0.4V

0.5V

0.6V

0.7V

0.8V

0.9V

1.0V

V(vinp1)-V(vinm1)

V(vicm1) V(vcip1)

Page 6: Butterfield Justin Project2 Report - CMOSedu.comcmosedu.com/cmos1/email/Butterfield_Justin_Project2_Report.pdf · the analog input to the next stage. Figure 7(a) shows the simulations

ECE 614 – Fall 2011 Justin D. Butterfield

6

The results in Figure 7 use an ideal clock from voltage sources, but the ADC system needs a way to take its 100MHz input clock and convert it to a three phase non-overlapping clock. Figure 8(a) shows the schematic for the three phase non-overlapping clock generation circuit. Figure 8(b) shows the simulation results for the three phase non-overlapping clock generation circuit with a 100MHz input clock signal. Note, that the resulting three phase clock is one third the frequency of the input clock. Thus, the sampling rate of the sample and hold will be one third the clock frequency or 33MS/s for a 100MHz clock. The extra Phi4 clock in Figure 8(a) will be used for the single-ended to differential conversion.

(a) Schematic (b) Simulation Results

Figure 8 Three Phase Non-Overlapping Clock Generation

Figure 9 First 3 Pipeline Stages Schematic

Figure 9 shows the first three stages of the pipeline ADC. The capacitor average error averaging sample and hold cells are the top three blocks, and the comparator and multiplexer cells are the bottom three blocks. This schematic also shows

TD=25ps

A1

TD=25ps

A2

TD=25ps

A3

TD=25ps

A4

TD=25ps

A5

TD=25ps

A6

TD=25ps

A7

TD=25ps

A8

TD=25ps

A9

TD=25ps

A10

TD=25ps

A11

TD=25ps

A12

TD=25ps

A13

TD=25ps

A14

TD=25ps

A15

DClk

Q

Qi

VDD

D

Clk

Q

Qi

VDD

DClk

Q

Qi

VDD

A16

TD=25ps

A17

TD=25ps

A18

TD=25ps

A19

TD=25ps

A20

TD=25ps

A21

TD=25ps

A22

TD=25ps

A25TD=25ps

A23

TD=25ps

A26

TD=25ps

A27

TD=25ps

A28

TD=25ps

A29

TD=25ps

A30

TD=25ps

A31 A32

TD=25ps

A24

In1

In2

In3

VD

DV

DD

VD

D

Clk

Clk

Clk

Phi1

Phi2

Phi3

Phi4In3In3

4ns 8ns 12ns 16ns 20ns 24ns 28ns 32ns 36ns 40ns 44ns-0.1V

0.0V

0.1V

0.2V

0.3V

0.4V

0.5V

0.6V

0.7V

0.8V

0.9V

1.0V

1.1V

-0.1V

0.0V

0.1V

0.2V

0.3V

0.4V

0.5V

0.6V

0.7V

0.8V

0.9V

1.0V

1.1V

V(phi1) V(phi2) V(phi3)

V(clk)

1.5

-Bit

Co

mp

ara

tor

Mu

x

Vin

pV

inm

Vc

m2

Vc

mR

ef

Vc

ipV

cim

ab

Clk

VD

D

CLT1

10p

CLB1

10p

Cap Err Avg S/HVinp

Vinm

VcipVcim

ph

isp

hia

ph

ih

VDD

VoutpVoutm

VCM

1.5

-Bit

Co

mp

ara

tor

Mu

x

Vin

pV

inm

Vc

m2

Vc

mR

ef

Vc

ipV

cim

ab

Clk

VD

D

CLT2

10p

CLB2

10p

Cap Err Avg S/HVinp

Vinm

VcipVcim

ph

isp

hia

ph

ih

VDD

VoutpVoutm

VCM

R1

0.01

R2

0.01

R3

0.01

R4

0.01

R5

0.01

R6

0.01

1.5

-Bit

Co

mp

ara

tor

Mu

x

Vin

pV

inm

Vc

m2

Vc

mR

ef

Vc

ipV

cim

ab

Clk

VD

D

Cap Err Avg S/HVinp

Vinm

VcipVcim

ph

isp

hia

ph

ih

VDD

VoutpVoutm

VCM

Phi1Phi2Phi3

Clk

VDD

R9

100R10

100

R11

100R12

100

R13

100R14

100

0

Vos1

0

Vos2

0

Vos3

R33

100k

R34

100k

R35

120k

R36

200k

VDD

VD

D

phia2

Vinp2

Vinm2

VCM Ref

VD

DR

ef

VC

M

VCM

Vcip1Vicm1

phis1phia1phih1

VDD

VD

D

ph

is2

ph

ia2

phia3

ph

ih2

Vinp3

Vinm3

VD

DR

ef

VC

M

VCM

Vcip2Vicm2

phis1 phia2

phia1 phih2

phih1 phis2

phis1

phia1

phih1

phih3

phis3

phia3

VDD

VD

D

ph

is3

ph

ia3

phia1

ph

ih3

VD

DR

ef

VC

M

VCM

Vcip3Vicm3

ph

is1

ph

ia1

ph

ih1

Clk

VD

D

VD

D

VD

D

3Phase Nonoverlapping Clock Generation

Rename Clocks

Page 7: Butterfield Justin Project2 Report - CMOSedu.comcmosedu.com/cmos1/email/Butterfield_Justin_Project2_Report.pdf · the analog input to the next stage. Figure 7(a) shows the simulations

ECE 614 – Fall 2011 Justin D. Butterfield

7

the VCM and Ref = 3VCM/4 generating resistive voltage dividers. The three phase clock generation is also shown. The clock generation is done once to create one set of three phase clock signals, and those signals are renamed for use in the subsequent stages of the pipeline. Figure 10 shows each of the three sets of three phase clock signals. The pattern of clock signals is repeated for the additional stages of the pipeline.

Figure 10 Single Stage Transfer Curve Simulation

Another important component of the design is a circuit to take the single-ended analog input of ADC and convert it to a differential analog signal with a common mode reference of VCM. The circuit shown in Figure 11(a) is one way to convert the single-ended input to differential. The circuit is a basic bottom plate sample and hold that is modified with one of the inputs tied to VCM and the other input broken up between the input and VCM. This is to keep the input common mode range of the op-amp at or near VCM. Figure 11(b) shows the simulations results for this circuit which demonstrate that for an input ramp of 0V to 1V the common mode voltage on the op-amp does not change. Errors arise with this circuit since it has gain that is determined by CI/CF that is set to 1 for this application. Thus, there will be some gain error from this circuit that will show up in the ADC output due to capacitor mismatch. Figure 12 shows the error from the single-ended input to the differential output for three cases of CIT equal to 0.9pF, 1pF, and 1.1pF. This result shows the effect of the gain error that will show up on the output of the ADC due to this capacitor mismatch.

(a) Schematic (b) Simulation Results

Figure 11 Single-Ended to Differential Sample and Hold

32ns 40ns 48ns 56ns 64ns 72ns 80ns 88ns 96ns 104ns 112ns 120ns 128ns0.0V

1.7V

3.3V

0.0V

1.7V

3.3V

0.0V

1.7V

3.3V

V(phis1) V(phia1)+1.1 V(phih1)+2.2

V(phia2)+1.1 V(phih2)+2.2 V(phis2)

V(phih3)+2.2 V(phis3) V(phia3)+1.1

CIT

{CIT}

CFT

1p

CIB

1p

CFB

1p

+

-

Ideal op-amp-

+

VDD

VDD

ph

i3p

hi1

VDD

VDD

ph

i2

ph

i3

Vin

VCMVopp

VDDVDD

ph

i3

VDD

VDD

ph

i3p

hi1

VDD

VDD

VopmVDDVDD

Voutm

VoutpVin

mV

inp

VCM

VCM

No connectionbut to each other

Page 8: Butterfield Justin Project2 Report - CMOSedu.comcmosedu.com/cmos1/email/Butterfield_Justin_Project2_Report.pdf · the analog input to the next stage. Figure 7(a) shows the simulations

ECE 614 – Fall 2011 Justin D. Butterfield

8

Figure 12 Single-Ended to Differential Gain Error Simulation Results

Before cascading the stages of the pipeline together, the design needs to implement the logic specified in Equations 3 through 6. Figure 13 shows how the design implements this logic using basic and full adders. Note that both true and complement versions of a are required. Figure 13 only shows the first 5 least significant bits of the 13-bit word out of the logic, but the logic is same for all bits except the first two bits and the last bit. The logic for the last 3 most significant bits is shown in Figure 14.

Figure 13 Logic to Combine the First 1.5 Bit/Stage Outputs

After the a and b outputs of the 1.5 bits/stage are combined into a binary word, the logic needs to subtract VCM – 0.5 LSB as described in Equation 7 from the digital output code. The equivalent operation is to add the negative value of this to the binary output. This way, the full adders can be used. The 13-bit binary two’s complement of –VCM + 0.5 LSB is 1100000000001. The schematic that adds this as a hard coded value to the output word is shown in Figure 15.

A2

A3

Adderbit

Bit

AB

itB

Cin

Co

ut

S

VD

D

A4Adderbit

Bit

AB

itB

Cin

Co

ut

S

VD

D

A6

A8

A10

Adderbit

Bit

AB

itB

Cin

Co

ut

S

VD

DA

1

bo

ut0

bo

ut2

af1

p5

2_

b1

p5

2

bo

ut1

a1

p5

1

c1

VDD

bo

ut3

c2

a1

p5

2a

f1p

53

_b

1p

53

af1

p5

0b

1p

50

af1

p5

2b

1p

52

af1

p5

1b

1p

51

af1

p5

1_

b1

p5

1

af1

p5

3b

1p

53

a1

p5

0

VDD

bo

ut4

c3

a1

p5

3a

f1p

54

_b

1p

54

af1

p5

4b

1p

54

VDD

c4

Page 9: Butterfield Justin Project2 Report - CMOSedu.comcmosedu.com/cmos1/email/Butterfield_Justin_Project2_Report.pdf · the analog input to the next stage. Figure 7(a) shows the simulations

ECE 614 – Fall 2011 Justin D. Butterfield

9

Figure 14 Logic to Combine the Last 1.5 Bit/Stage Outputs Figure 15 Subtract VCM Cell Schematic The design cannot simply take the a and b outputs of each stage and directly apply them to the logic shown in Figures 13 and 14, because the pipeline processes the analog signal stage by stage each on a different clock cycle. The problem is that the data is available first for the MSB stages and is available many clock cycles later for the LSB stages. The solution is to add latches to delay the data for each stage of the pipeline to match the data coming out of the last stage. This way, the data for each stage is available at the same time for the logic perform is function. Since the stages are sharing the three phase clocks for the capacitor error averaging, the clocking of the data is not 1-to-1. This means that the first stage does need 12 latched clock delays to match the output of the 12th stage. Table 1 shows the number of flip-flops this design used to time align the a and b data going into the adder logic.

Table 1 Logic to Combine the Last 1.5 Bit/Stage Outputs Figure 16 Subtract VCM Cell Schematic The top level design symbol is shown in Figure 16, and the top level design schematic is shown in Figure 17. Although the details cannot be seen from the schematic, the Figure does show how the different number of flip-flops are connected to the outputs of each stage. Additionally, it shows how some to the pieces are connected together. The single-ended to differential conversion stage is first followed by 12 stages of the sample and hold and comparators with multiplexer blocks. The complete digital logic for combining the a and b outputs of the 1.5 bits/stage comparators is at the bottom right. The subtraction cell and a final 12-bit register are directly above the digital logic. The purpose of the final 12-bit register is to synchronize the data to the clock at the final output, which is necessary since real adders will have some delay.

Adderbit

Bit

AB

itB

Cin

Co

ut

S

VD

DA

14

Adderbit

Bit

AB

itB

Cin

Co

ut

S

VD

DA

15

A1

6

bo

ut1

0

c9

a1p

59

af1p

510_

b1p

510

af1p

510

b1p

510

VDD VDD

bo

ut1

1

c10

a1p

510

af1p

511_

b1p

511

af1p

511

b1p

511

c11

a1p

511

bo

ut1

2

Ad

der

bit

BitA

BitB

Cin

Cout

S

VDD

Ad

der

bit

BitABitB

Cin

Cout

S

VDD

Ad

der

bit

BitA

BitB

Cin

Cout

S

VDD

Ad

der

bit

BitABitB

Cin

Cout

S

VDD

Ad

der

bit

BitA

BitB

Cin

Cout

S

VDD

Ad

der

bit

BitABitB

Cin

Cout

S

VDD

Ad

der

bit

BitA

BitB

Cin

Cout

S

VDD

Ad

der

bit

BitABitB

Cin

Cout

S

VDD

Ad

der

bit

BitA

BitB

Cin

Cout

S

VDD

Ad

der

bit

BitABitB

Cin

Cout

S

VDD

Ad

der

bit

BitA

BitB

Cin

Cout

S

VDD

Ad

der

bit

BitABitB

Cin

Cout

S

VDD

Ad

der

bit

BitA

BitB

Cin

Cout

S

VDD

VD

D

b0

VD

D

b1

s0

s1

b2s2

VD

D

b3s3

VD

D

VD

D

b4s4

VDD

VD

D

b5s5

b6s6

VD

D

b7s7

VD

D

VD

D

b8s8

VD

D

b9s9

b10s10

VD

D

b11s11

VD

D

VDD

VD

D

b12s12

VDD

Significance Stage #FF Delays

MSB 1 8

2 8

3 7

4 6

5 6

6 5

7 4

8 4

9 3

10 2

11 2

LSB 12 1

12-b

it A

DC

B11B10B9B8B7B6B5B4B3B2B1B0

Vin

Vre

fpV

refm

Clo

ckVDD

Page 10: Butterfield Justin Project2 Report - CMOSedu.comcmosedu.com/cmos1/email/Butterfield_Justin_Project2_Report.pdf · the analog input to the next stage. Figure 7(a) shows the simulations

ECE 614 – Fall 2011 Justin D. Butterfield

10

Figure 17 Logic to Combine the First 1.5 Bit/Stage Outputs

3. Characterization Results

Figure 18 characterizes the delay or latency of the pipeline ADC. Figure 18(a) shows the simulation stimulus and output of an ideal digital to analog converter (DAC) that converts the digital output code from the pipeline ADC back to analog voltage. The input voltage is a step from 0V to 0.8V. Figure 18(b) gives the results of measuring from the time the input pulses high to the time when the same pulse is seen on the output. These plots show a 300ns latency with an input clock frequency of 100MHz, which means the latency is 30 clock cycles.

(a) Latency Simulation Waveforms (b) Latency Measurement

Figure 18 Latency Characterization Simulation Results

Figure 19 shows the simulation results for the ideal pipeline ADC with no comparator offsets, op-amp offsets, or capacitor mismatches. Figure 19(a) shows the analog equivalent output of the pipeline ADC compared to the input ramp. The results show that the output closely matches the input and there are no non-monotonicities. Figure 19(b) gives more detailed perspective of the error between the input and output of the ADC or quantization error. This plot is generated by subtracting the input from the output and also subtracting the static error due to the latency of the pipeline ADC. This factor is based on the latency calculated from Figure 18(b) of 300ns and given the input ramp from 0V to 1V over 4us which translates to about 75mV. Of course, there will always be some quantization error for an ADC since it has a finite

1.5-

Bit

Co

mp

arat

or

Mu

x

Vin

p

Vin

m

Vcm

2Vcm Ref

Vci

p

Vci

m

ab

Clk

VD

D

CLT1

10p

CLB1

10p

Cap Err Avg S/HVinp

Vinm

Vcip

Vcim

ph

is

ph

ia

ph

ih

VDD

Voutp

Voutm

VCM1.

5-B

it C

om

par

ato

rM

ux

Vin

p

Vin

m

Vcm

2Vcm Ref

Vci

p

Vci

m

ab

Clk

VD

D

CLT2

10p

CLB2

10p

Cap Err Avg S/HVinp

Vinm

Vcip

Vcim

ph

is

ph

ia

ph

ih

VDD

Voutp

Voutm

VCM

R1

0.01

R2

0.01

R3

0.01

R4

0.01

R5

0.01

R6

0.01

1.5-

Bit

Co

mp

arat

or

Mu

x

Vin

p

Vin

m

Vcm

2Vcm Ref

Vci

p

Vci

m

ab

Clk

VD

D

CLT3

10p

CLB3

10p

Cap Err Avg S/HVinp

Vinm

Vcip

Vcim

ph

is

ph

ia

ph

ih

VDD

Voutp

Voutm

VCM

1.5-

Bit

Co

mp

arat

or

Mu

x

Vin

p

Vin

m

Vcm

2Vcm Ref

Vci

p

Vci

m

ab

Clk

VD

D

CLT4

10p

CLB4

10p

Cap Err Avg S/HVinp

Vinm

Vcip

Vcim

ph

is

ph

ia

ph

ih

VDD

Voutp

Voutm

VCM

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

A2

A3

Adderbit

Bit

A

Bit

B

Cin

Co

ut

S

VD

D

A4Adderbit

Bit

A

Bit

B

Cin

Co

ut

S

VD

D

A6

A8

A10

Phi1

Phi2

Phi3

Clk

VDD

Phi4

CLT5

10p

CLB5

10p

R7

100R8

100

R9

100R10

100

R11

100R12

100

R13

100R14

100

R15

100R16

100

1.5-

Bit

Co

mp

arat

or

Mu

x

Vin

p

Vin

m

Vcm

2Vcm Ref

Vci

p

Vci

m

ab

Clk

VD

D

CLT6

10p

CLB6

10p

Cap Err Avg S/HVinp

Vinm

Vcip

Vcim

ph

is

ph

ia

ph

ih

VDD

Voutp

Voutm

VCM

1.5-

Bit

Co

mp

arat

or

Mu

x

Vin

p

Vin

m

Vcm

2Vcm Ref

Vci

p

Vci

m

ab

Clk

VD

D

CLT7

10p

CLB7

10p

Cap Err Avg S/HVinp

Vinm

Vcip

Vcim

ph

is

ph

ia

ph

ih

VDD

Voutp

Voutm

VCM

1.5-

Bit

Co

mp

arat

or

Mu

x

Vin

p

Vin

m

Vcm

2Vcm Ref

Vci

p

Vci

m

ab

Clk

VD

D

CLT8

10p

CLB8

10p

Cap Err Avg S/HVinp

Vinm

Vcip

Vcim

ph

is

ph

ia

ph

ih

VDD

Voutp

Voutm

VCM

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

R17

100R18

100

R19

100R20

100

R21

100R22

100

1.5-

Bit

Co

mp

arat

or

Mu

x

Vin

p

Vin

m

Vcm

2Vcm Ref

Vci

p

Vci

m

ab

Clk

VD

D

CLT9

10p

CLB9

10p

Cap Err Avg S/HVinp

Vinm

Vcip

Vcim

ph

is

ph

ia

ph

ih

VDD

Voutp

Voutm

VCM

1.5-

Bit

Co

mp

arat

or

Mu

x

Vin

p

Vin

m

Vcm

2Vcm Ref

Vci

p

Vci

m

ab

Clk

VD

D

CLT10

10p

CLB10

10p

Cap Err Avg S/HVinp

Vinm

Vcip

Vcim

ph

is

ph

ia

ph

ih

VDD

Voutp

Voutm

VCM

1.5-

Bit

Co

mp

arat

or

Mu

x

Vin

p

Vin

m

Vcm

2Vcm Ref

Vci

p

Vci

m

ab

Clk

VD

D

CLT11

10p

CLB11

10p

Cap Err Avg S/HVinp

Vinm

Vcip

Vcim

ph

is

ph

ia

ph

ih

VDD

Voutp

Voutm

VCM

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

R23

100R24

100

R25

100R26

100

R27

100R28

100

1.5-

Bit

Co

mp

arat

or

Mu

x

Vin

p

Vin

m

Vcm

2Vcm Ref

Vci

p

Vci

m

ab

Clk

VD

D

CLT12

10p

CLB12

10p

Cap Err Avg S/HVinp

Vinm

Vcip

Vcim

ph

is

ph

ia

ph

ih

VDD

Voutp

Voutm

VCM

1.5-

Bit

Co

mp

arat

or

Mu

x

Vin

p

Vin

m

Vcm

2Vcm Ref

Vci

p

Vci

m

ab

Clk

VD

D

CLT13

10p

CLB13

10p

Cap Err Avg S/HVinp

Vinm

Vcip

Vcim

ph

is

ph

ia

ph

ih

VDD

Voutp

Voutm

VCM

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

R29

100R30

100

R31

100R32

100

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D Adderbit

Bit

A

Bit

B

Cin

Co

ut

S

VD

D

A1

Adderbit

Bit

A

Bit

B

Cin

Co

ut

S

VD

D

A5

Adderbit

Bit

A

Bit

B

Cin

Co

ut

S

VD

D

A7

Adderbit

Bit

A

Bit

B

Cin

Co

ut

S

VD

D

A9

Adderbit

Bit

A

Bit

B

Cin

Co

ut

S

VD

D

A12

Adderbit

Bit

A

Bit

B

Cin

Co

ut

S

VD

D

A13

Adderbit

Bit

A

Bit

B

Cin

Co

ut

S

VD

D

A14

Adderbit

Bit

A

Bit

B

Cin

Co

ut

S

VD

D

A15

SubtractVCM

b0

b1

b2

b3

b4

b5

b6

b7

b8

b9

b10

b11

b12

s0

s1

s2

s3

s4

s5

s6

s7

s8

s9

s10

s11

s12VDD

D0

D1

D2

D3

D4

D5

D6

D7

D8

D9

D10

D11

D12

Q0

Q1

Q2

Q3

Q4

Q5

Q6

Q7

Q8

Q9

Q10

Q11

Q12VDD

Clk

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

D

Clk

QQi

VD

D

0

Vos1

0

Vos2

0

Vos3

0

Vos4

0

Vos5

0

Vos6

0

Vos7

0

Vos8

0

Vos9

0

Vos10

0

Vos11

0

Vos12

R33

100k

R34

100k

R35

120k

R36

200k

A16

SE2DiffFig30_35 Voutp

Voutm

Vin

ph

i1

ph

i2

ph

i3

VCM

VDD

VDD

VD

D

phia2

af1p

511

b1p

511

Vinp2

Vinm2

Vinp1

Vinm1

VCM Ref

VD

D

Ref

VC

M

VCM

Vcip1

Vicm1

phis1

phia1

phih1

VDD

VD

D

ph

is2

ph

ia2

phia3

ph

ih2

af1p

510

b1p

510

Vinp3

Vinm3

VD

D

Ref

VC

M

VCM

Vcip2

Vicm2

phis1 phia2

phia1 phih2

phih1 phis2

phis1

phia1

phih1

phih3

phis3

phia3

VDD

VD

D

ph

is3

ph

ia3

phia1

ph

ih3

af1p

59

b1p

59

Vinp4

Vinm4

VD

D

Ref

VC

M

VCM

Vcip3

Vicm3

VDD

VD

D

ph

is1

ph

ia1

phia2

ph

ih1

VD

D

Ref

VC

M

VCM

Vcip4

Vicm4

VDD VDD

VDD VDD

VDD VDD VDD VDD

bo

ut0

bo

ut2

af1p

52_b

1p52

bo

ut1

a1p

51

c1

VDD

bo

ut3

c2

a1p

52

af1p

53_b

1p53

af1p

50

b1p

50

af1p

52

b1p

52

af1p

51

b1p

51af

1p51

_b1p

51

af1p

53

b1p

53

bout0

bout1

bout2

bout3

VD

D

ph

ia2

Clock

VD

D

ph

ih1

ph

is2

ph

ia2

ph

ih2

VD

D

Vin

VCM

phia2

phia2 phia2

phia2 phia2 phia2 phia2 phia2

Vinp5

Vinm5

VDD

VD

D

phia3

af1p

57

b1p

57

Vinp6

Vinm6

VD

D

Ref

VC

M

VCM

Vcip5

Vicm5

VDD

VD

D

ph

is3

ph

ia3

phia1

ph

ih3

af1p

56

b1p

56

Vinp7

Vinm7

VD

D

Ref

VC

M

VCM

Vcip6

Vicm6

VDD

VD

D

ph

is1

ph

ia1

phia2

ph

ih1

VD

D

Ref

VC

M

VCM

Vcip7

Vicm7

VDD VDD

VDD VDD

VDD VDD

ph

is2

ph

ia2

ph

ih2

phia2

phia2 phia2

phia2 phia2 phia2

Vinp8

Vinm8

VDD

VD

D

phia3

af1p

54

b1p

54

Vinp9

Vinm9

VD

D

Ref

VC

M

VCM

Vcip8

Vicm8

VDD

VD

D

ph

is3

ph

ia3

phia1

ph

ih3

af1p

53

b1p

53

Vinp10

Vinm10

VD

D

Ref

VC

M

VCM

Vcip9

Vicm9

VDD

VD

D

ph

is1

ph

ia1

phia2

ph

ih1

VD

D

Ref

VC

M

VCM

Vcip10

Vicm10

VDD VDD

VDD VDD

VDD VDD

ph

is2

ph

ia2

ph

ih2

phia2

phia2 phia2

phia2 phia2 phia2

Vinp11

Vinm11

VDD

VD

D

phia3

af1p

51

b1p

51

Vinp12

Vinm12

VD

D

Ref

VC

M

VCM

Vcip11

Vicm11

VDD

VD

D

ph

is3

ph

ia3

phia1

ph

ih3

VD

D

Ref

VC

M

VCM

Vcip12

Vicm12

ph

is1

ph

ia1

ph

ih1

VDD VDDphia2 phia2

af1p

52

b1p

52

VDD VDDphia2 phia2

VDD VDDphia2 phia2

af1p

55

b1p

55

VDD VDD

VDD VDD

phia2

phia2 phia2

phia2

VDD VDDphia2 phia2

VDD VDDphia2 phia2

VDD VDDphia2 phia2

VDD VDDphia2 phia2

VDD VDDphia2 phia2

VDD VDDphia2 phia2

af1p

58

b1p

58

VDD VDD

VDD VDD

phia2

phia2 phia2

phia2

VDD VDDphia2 phia2

VDD VDDphia2 phia2

VDD VDDphia2 phia2

VDD VDDphia2 phia2

VDD VDDphia2 phia2

VDD VDDphia2 phia2

VDD VDDphia2 phia2

VDD VDDphia2 phia2

VDD VDDphia2 phia2

VDD VDDphia2 phia2

VDD VDDphia2 phia2

VDD VDDphia2 phia2

VDD VDDphia2 phia2

VDD VDDphia2 phia2

VDD VDDphia2 phia2

VDD VDDphia2 phia2

VDD VDDphia2 phia2

VDD VDDphia2 phia2

a1p

50

VDD

bo

ut4

c3

a1p

53

af1p

54_b

1p54

af1p

54

b1p

54

VDD

bo

ut5

c4

a1p

54

af1p

55_b

1p55

af1p

55

b1p

55

VDD

bo

ut6

c5

a1p

55

af1p

56_b

1p56

af1p

56

b1p

56

VDD

bo

ut7

c6

a1p

56

af1p

57_b

1p57

af1p

57

b1p

57

VDD

bo

ut8

c7

a1p

57

af1p

58_b

1p58

af1p

58

b1p

58

VDD

bo

ut9

c8

a1p

58

af1p

59_b

1p59

af1p

59

b1p

59

VDD

bo

ut1

0

c9

a1p

59

af1p

510_

b1p

510

af1p

510

b1p

510

VDD VDD

bo

ut1

1

c10

a1p

510

af1p

511_

b1p

511

af1p

511

b1p

511

c11

bout4

VD

D

bout5

bout6

bout7

bout8

bout9

bout10

bout11

bout12

a1p

51

a1p

52

a1p

53

a1p

54

a1p

55

a1p

56

a1p

57

a1p

58

a1p

59

a1p

510

a1p

511

b0

b1

b2

b3

b4

b5

b6

b7

b8

b9

b10

b11

VDD VDDphia2 phia2

VDD VDDphia2 phia2 VDD VDDphia2 phia2 VDD VDDphia2 phia2 VDD VDDphia2 phia2 VDD VDDphia2 phia2 VDD VDDphia2 phia2 VDD VDDphia2 phia2 VDD VDDphia2 phia2 VDD VDDphia2 phia2 VDD VDDphia2 phia2 VDD VDDphia2 phia2

af1p

50

b1p

50

VDD VDDphia2 phia2

a1p

50

VDD VDDphia2 phia2

VDD VDDphia2 phia2

Vre

fp

phi4

ph

i4

ph

i4

a1p

511

bo

ut1

2

Vre

fm

Vre

fmV

refp

3Phase Nonoverlapping Clock Generationt

300ns 360ns 420ns 480ns 540ns 600ns 660ns 720ns 780ns 840ns 900ns-90mV

0mV

90mV

180mV

270mV

360mV

450mV

540mV

630mV

720mV

810mV

900mVV(vin) V(vout)

Page 11: Butterfield Justin Project2 Report - CMOSedu.comcmosedu.com/cmos1/email/Butterfield_Justin_Project2_Report.pdf · the analog input to the next stage. Figure 7(a) shows the simulations

ECE 614 – Fall 2011 Justin D. Butterfield

11

The steeper the input ramp voltage the larger difference between input and output, but ideally the peaks high should be at 0V. The results show that the INL and DNL error are good, but that there may be some gain error which is likely coming from the initial single-end to differential sample and hold. Note that these results cannot be used to determine if the ADC is 12-bit accurate since the ramp is not exercising all 4096 output word combinations.

(a) Vout and Vin Plot (b) Quantization Error Estimation Plot

Figure 19 Ideal Ramp Simulation

Figure 20 shows the output of the pipeline ADC with all the comparators having an offset on the positive terminal. The green waveform is the baseline and has a comparator offset of 0V. The blue waveform has a comparator offset of 50mV. And, the red waveform has a comparator offset of 75mV. Very little difference can be observed between the ideal case and the offset cases. This proves that the 1.5 bit/stage and error correction logic are able to cancel out these offset levels to a first order.

(a) Vout Plot (b) Quantization Error Estimation Plot

Figure 20 Comparator Offset Simulation

Figure 21 shows the output of the pipeline ADC with all of the op-amps having an offset on the negative terminal. Again, the green waveform is the baseline and has an op-amp offset of 0V. The blue waveform has an op-amp offset of 50mV. And, the red waveform has an op-amp offset of 100mV. There are some small differences in the quantization error with the op-amp offsets, but these are not significant.

0.8µs 1.3µs 1.8µs 2.3µs 2.8µs 3.3µs 3.8µs 4.3µs 4.8µs0.0V

0.1V

0.2V

0.3V

0.4V

0.5V

0.6V

0.7V

0.8V

0.9V

1.0VV(vout) V(vin)

0.8µs 1.2µs 1.6µs 2.0µs 2.4µs 2.8µs 3.2µs 3.6µs 4.0µs 4.4µs 4.8µs-21mV

-18mV

-15mV

-12mV

-9mV

-6mV

-3mV

0mV

3mV

6mV

9mVV(vin)-V(vout)-75m

0.8µs 1.3µs 1.8µs 2.3µs 2.8µs 3.3µs 3.8µs 4.3µs 4.8µs0.0V

0.1V

0.2V

0.3V

0.4V

0.5V

0.6V

0.7V

0.8V

0.9V

1.0VV(vout)

0.8µs 1.2µs 1.6µs 2.0µs 2.4µs 2.8µs 3.2µs 3.6µs 4.0µs 4.4µs 4.8µs-24mV

-21mV

-18mV

-15mV

-12mV

-9mV

-6mV

-3mV

0mV

3mV

6mV

9mVV(vin)-V(vout)-75m

Page 12: Butterfield Justin Project2 Report - CMOSedu.comcmosedu.com/cmos1/email/Butterfield_Justin_Project2_Report.pdf · the analog input to the next stage. Figure 7(a) shows the simulations

ECE 614 – Fall 2011 Justin D. Butterfield

12

(a) Vout Plot (b) Quantization Error Estimation Plot

Figure 21 Op-Amp Offset Simulation

Figures 22(a) and (b) show the output of the ADC and the quantization error with capacitor mismatches in all of the sample and hold cells. Both the CIT and CIT1 capacitors in the sample and hold circuit shown in Figure 6 are varied. Both capacitors are set to 1pF (displayed in green), 0.9pF (displayed in blue), and 1.1pF (displayed in red). Again, there are some small differences in the quantization error with the op-amp offsets, but these are not significant.

(a) Vout Plot (b) Quantization Error Estimation Plot

Figure 22 Capacitor Mismatch Simulation

Figures 23(a) and (b) show the output of the ADC and an estimate for the quantization error with comparator offsets in the first three pipeline stages. The comparator offset is set to 0V (displayed in green), 75mV (displayed in blue), and 150mV (displayed in red). The 150mV offset case results in significant DNL errors at and around 0V, 250mV, 500mV and 750mV. These points make sense, because these are the points where the first three comparators make their decisions. The 1.5 bit/stage error correction does help, but cannot completely remove this offset. The 75mV offset makes little difference as is shown in Figure 20(b) where all the comparators have the same offset. Figures 23(c) and (d) show the output of the ADC and the quantization error with comparator offsets in the last three pipeline stages. Interestingly, even the offset of 150mV has little affect on the INL and DNL error when it is present in the last stages only.

0.8µs 1.3µs 1.8µs 2.3µs 2.8µs 3.3µs 3.8µs 4.3µs 4.8µs0.0V

0.1V

0.2V

0.3V

0.4V

0.5V

0.6V

0.7V

0.8V

0.9V

1.0VV(vout)

0.8µs 1.2µs 1.6µs 2.0µs 2.4µs 2.8µs 3.2µs 3.6µs 4.0µs 4.4µs 4.8µs-14mV

-12mV

-10mV

-8mV

-6mV

-4mV

-2mV

0mV

2mV

4mV

6mV

8mV

10mV

12mVV(vin)-V(vout)-75m

0.8µs 1.3µs 1.8µs 2.3µs 2.8µs 3.3µs 3.8µs 4.3µs 4.8µs0.0V

0.1V

0.2V

0.3V

0.4V

0.5V

0.6V

0.7V

0.8V

0.9V

1.0VV(vout)

0.8µs 1.2µs 1.6µs 2.0µs 2.4µs 2.8µs 3.2µs 3.6µs 4.0µs 4.4µs 4.8µs-21mV

-18mV

-15mV

-12mV

-9mV

-6mV

-3mV

0mV

3mV

6mV

9mVV(vin)-V(vout)-75m

Page 13: Butterfield Justin Project2 Report - CMOSedu.comcmosedu.com/cmos1/email/Butterfield_Justin_Project2_Report.pdf · the analog input to the next stage. Figure 7(a) shows the simulations

ECE 614 – Fall 2011 Justin D. Butterfield

13

(a) Vout Plot for First Three Comparators w/ Offsets (b) Quantization Error Plot for First Three Comparators w/ Offsets

(c) Vout Plot for Last Three Comparators w/ Offsets (d) Quantization Error Plot for Last Three Comparators w/ Offsets

Figure 23 Simulation Results with Different Stage Offsets

Figures 24(a) and (b) show the output of the ADC and the quantization error with sample and hold capacitor mismatches in the first three stages of the pipeline. Both the CIT and CIT1 capacitors in the sample and hold circuit shown in Figure 6 are varied. They are both set to 1pF (displayed in green), 0.5pF (displayed in blue), and 1.5pF (displayed in red). Both cases of this high capacitor mismatch (±50%) show increases in the INL and DNL error from the ideal case. While, Figures 24(c) and (d) show the output of the ADC and the quantization error with sample and hold capacitor mismatches in the last three stages of the pipeline. Both cases with this amount of capacitor mismatch show some increased INL and DNL error, but both errors are much less significant when the capacitor mismatch is the last few stages.

0.8µs 1.3µs 1.8µs 2.3µs 2.8µs 3.3µs 3.8µs 4.3µs 4.8µs0.0V

0.1V

0.2V

0.3V

0.4V

0.5V

0.6V

0.7V

0.8V

0.9V

1.0VV(vout)

0.8µs 1.2µs 1.6µs 2.0µs 2.4µs 2.8µs 3.2µs 3.6µs 4.0µs 4.4µs 4.8µs-21mV

-14mV

-7mV

0mV

7mV

14mV

21mV

28mV

35mV

42mV

49mV

56mVV(vin)-V(vout)-75m

0.8µs 1.2µs 1.6µs 2.0µs 2.4µs 2.8µs 3.2µs 3.6µs 4.0µs 4.4µs 4.8µs0.0V

0.1V

0.2V

0.3V

0.4V

0.5V

0.6V

0.7V

0.8V

0.9V

1.0VV(vout)

0.8µs 1.2µs 1.6µs 2.0µs 2.4µs 2.8µs 3.2µs 3.6µs 4.0µs 4.4µs 4.8µs-21mV

-18mV

-15mV

-12mV

-9mV

-6mV

-3mV

0mV

3mV

6mV

9mV

12mVV(vin)-V(vout)-75m

Page 14: Butterfield Justin Project2 Report - CMOSedu.comcmosedu.com/cmos1/email/Butterfield_Justin_Project2_Report.pdf · the analog input to the next stage. Figure 7(a) shows the simulations

ECE 614 – Fall 2011 Justin D. Butterfield

14

(a) Vout Plot for First Three S/H Cap Mismatch (b) Quantization Error Plot for First Three S/H Cap Mismatch

(c) Vout Plot for Last Three S/H Cap Mismatch (d) Quantization Error Plot for Last Three S/H Cap Mismatch

Figure 24 Simulation Results with Different Stage Switched Capacitor Mismatch

4. Finite Gain Experiment

Thus far, the analysis and characterization of the design has assumed that the op-amps in the sample and hold circuit have effectively infinite gain. This section attempts to examine the effects of finite open loop op-amp gain on the performance of the sample and hold cell. Recall from Equation 2 that to get the vout of a pipeline stage, the vin must be multiplied by 2 and some value is subtracted or added based on the a and b outputs of the comparators. This subtraction or addition is done with the VCI inputs to the sample and hold shown in Figure 6. The equation that ideally relates vout to vin in terms of VCI is given by 2 . (Eq. 8) This equation assumes that there is no offset in the op-amps, the capacitors are exactly the same, and the op-amp gain is sufficiently high. The hand derivations in Appendix A show that there is an error factor when the gain is finite. These derivations assume that the gain of both op-amps is the same value of AOL, that there is no offset in the op-amps, and that the capacitors are exactly matched to simplify the equations. The equation for the output of the averaging sample and hold when the op-amps have finite gain is given by

0.8µs 1.3µs 1.8µs 2.3µs 2.8µs 3.3µs 3.8µs 4.3µs 4.8µs0.0V

0.1V

0.2V

0.3V

0.4V

0.5V

0.6V

0.7V

0.8V

0.9V

1.0VV(vout)

0.8µs 1.2µs 1.6µs 2.0µs 2.4µs 2.8µs 3.2µs 3.6µs 4.0µs 4.4µs 4.8µs-21mV

-18mV

-15mV

-12mV

-9mV

-6mV

-3mV

0mV

3mV

6mV

9mV

12mVV(vin)-V(vout)-75m

0.8µs 1.3µs 1.8µs 2.3µs 2.8µs 3.3µs 3.8µs 4.3µs 4.8µs0.0V

0.1V

0.2V

0.3V

0.4V

0.5V

0.6V

0.7V

0.8V

0.9V

1.0VV(vout)

0.8µs 1.2µs 1.6µs 2.0µs 2.4µs 2.8µs 3.2µs 3.6µs 4.0µs 4.4µs 4.8µs-18mV

-15mV

-12mV

-9mV

-6mV

-3mV

0mV

3mV

6mV

9mVV(vin)-V(vout)-75m

Page 15: Butterfield Justin Project2 Report - CMOSedu.comcmosedu.com/cmos1/email/Butterfield_Justin_Project2_Report.pdf · the analog input to the next stage. Figure 7(a) shows the simulations

ECE 614 – Fall 2011 Justin D. Butterfield

15

2 . (Eq. 9)

This equation shows that the output of the sample and hold will be reduced by some factor that depends on the gain of the op-amps. If the open loop gain is 100, the output swing of the sample and hold will be 96.1% of its ideal value. If the open loop gain is 1000, the output swing of the sample and hold will be 99.6% of its ideal value. Figure 25(a) shows the effect on the single stage transfer curve previously shown in Figure 7(a) when the op-amp gain is swept from 100 (plotted in green), 1K (plotted in blue), 10K (plotted in red), and 100K (plotted in pink). Figure 25(b) is a zoomed in plot of Figure 25(a) at the point where the error is at its maximum. These results show the relationship between the open loop gain and the error on the output as Equation 9 predicts.

(a) Vout Plot (d) Zoomed Vout Plot

Figure 25 Capacitor Error Averaging Affect of Finite Op-Amp Gain

The characterization results of the 12-bit pipeline ADC have shown that the design is tolerant to op-amp offset and capacitor mismatch in the sample and hold. The tolerance to capacitor mismatch is due to using the capacitor error averaging sample and hold topology shown in Figure 6. The question that also arises is “How does the performance of the capacitor error average compare to a single stage sample and hold when the op-amp gain is low?” Figure 26 shows the topology for the “single stage” bottom plate sample and hold. This topology uses only one op-amp to do the sample, hold, subtract and multiply by 2 operations. There is no swapping of the capacitors and no second stage to average two output values, so this topology will be susceptible to capacitor mismatch error. Although it is not proven in the hand calculations, it is presumed that since this topology has only one op-amp the error will be the square root of the error term from Equation 9. This means that for the topology in Figure 26, the vout can be estimated by 2 . (Eq. 10) Figure 27(a) shows the maximum differential error for the single stage sample and hold in Figure 26, while Figure 27(b) shows the maximum differential error for the capacitor error averaging sampled and hold. In these plots, the op-amp gain is swept from 100 (plotted in green), 1K (plotted in blue), 10K (plotted in red), and 100K (plotted in light blue). These results show that the single stage sample and hold topology has less error due to finite op-amp gain. The capacitor averaging sample and hold has slightly less than twice the maximum error compared to the single stage sample and hold. This makes sense based on Equations 9 and 10. If AOL is 100, the “error term” is 96.1% for the capacitor error averaging case and 98.0% for the single stage case. This means that using capacitor error averaging has more of a decrease in performance from finite op-amp gain than the standard single stage bottom plate sample and hold.

0.0µs 0.2µs 0.4µs 0.6µs 0.8µs 1.0µs 1.2µs 1.4µs 1.6µs 1.8µs 2.0µs-600mV

-500mV

-400mV

-300mV

-200mV

-100mV

0mV

100mV

200mV

300mV

400mV

500mVV(voutp)-V(voutm)

495ns 500ns 505ns 510ns 515ns 520ns 525ns 530ns 535ns 540ns 545ns 550ns-504mV

-501mV

-498mV

-495mV

-492mV

-489mV

-486mV

-483mV

-480mV

-477mV

V(voutp)-V(voutm)

Page 16: Butterfield Justin Project2 Report - CMOSedu.comcmosedu.com/cmos1/email/Butterfield_Justin_Project2_Report.pdf · the analog input to the next stage. Figure 7(a) shows the simulations

ECE 614 – Fall 2011 Justin D. Butterfield

16

Figure 26 Single Op-Amp Bottom Plate Sample and Hold [1]

(a) Single Stage Sample and Hold (d) Capacitor Error Averaging Sample and Hold

Figure 27 Maximum Error for Finite Op-Amp Gain Sample and Hold

5. References

[1] R. J. Baker, CMOS: Circuit Design, Layout, and Simulation 3rd ed.¸ Jon Wiley and Sons Publishers, 2010. ISBN 978-0-0470-88132-3.

0ns 20ns 40ns 60ns 80ns 100ns 120ns 140ns0mV

1mV

2mV

3mV

4mV

5mV

6mV

7mV

8mV

9mV

10mV

11mV1-(V(voutp)-V(voutm))

0ns 20ns 40ns 60ns 80ns 100ns 120ns 140ns0mV

2mV

4mV

6mV

8mV

10mV

12mV

14mV

16mV

18mV1-(V(voutp)-V(voutm))

Page 17: Butterfield Justin Project2 Report - CMOSedu.comcmosedu.com/cmos1/email/Butterfield_Justin_Project2_Report.pdf · the analog input to the next stage. Figure 7(a) shows the simulations

ECE 614 – Fall 2011 Justin D. Butterfield

17

A. Hand Calculations

First, consider the simple sample case:

Page 18: Butterfield Justin Project2 Report - CMOSedu.comcmosedu.com/cmos1/email/Butterfield_Justin_Project2_Report.pdf · the analog input to the next stage. Figure 7(a) shows the simulations

ECE 614 – Fall 2011 Justin D. Butterfield

18

Next, consider the first stage of the capacitor error averaging sample and hold shown in Figure 6.

Page 19: Butterfield Justin Project2 Report - CMOSedu.comcmosedu.com/cmos1/email/Butterfield_Justin_Project2_Report.pdf · the analog input to the next stage. Figure 7(a) shows the simulations

ECE 614 – Fall 2011 Justin D. Butterfield

19

Page 20: Butterfield Justin Project2 Report - CMOSedu.comcmosedu.com/cmos1/email/Butterfield_Justin_Project2_Report.pdf · the analog input to the next stage. Figure 7(a) shows the simulations

ECE 614 – Fall 2011 Justin D. Butterfield

20

Page 21: Butterfield Justin Project2 Report - CMOSedu.comcmosedu.com/cmos1/email/Butterfield_Justin_Project2_Report.pdf · the analog input to the next stage. Figure 7(a) shows the simulations

ECE 614 – Fall 2011 Justin D. Butterfield

21

Last, consider the averaging stage of Figure 6.

Page 22: Butterfield Justin Project2 Report - CMOSedu.comcmosedu.com/cmos1/email/Butterfield_Justin_Project2_Report.pdf · the analog input to the next stage. Figure 7(a) shows the simulations

ECE 614 – Fall 2011 Justin D. Butterfield

22