You are on page 1of 15

DURRMANN Antoine

GEAMBLU Clment
4 AE

I-

INTRODUCTION ............................................................................................................................. 1

II-

COMPARATORS: ........................................................................................................................... 2
1.
2.

III1.
2.

SIMPLE COMPARATOR.................................................................................................................... 2
COMPLEX COMPARATOR ................................................................................................................ 3
VOLTAGE DIVIDER: .................................................................................................................. 5
W ITH NMOS.................................................................................................................................. 5
W ITH RESISTOR ............................................................................................................................. 6

IV-

BUBBLE ERRORS. .................................................................................................................... 7

V-

FINAL DESIGN AND TESTS. ....................................................................................................... 12

VI-

CONCLUSION........................................................................................................................... 14

VII-

BIBLIOGRAPHY ....................................................................................................................... 14

ADC 3-bits Flash

I- Introduction
We have decided to design an one-step Flash converter. As shown in the schematic below, in
this type of ADC the input signal is compared to the 2 nodes of resistors. At the output of the
comparators, the sampled input value can be read in thermometer-code. At the beginning of this
project, we were novice in circuit designing. Due to the large number of resistors and comparators
(2N1 comparators required), we have chosen to design a 3-bit Flash A/D Converter (7 comparators
required).
We were interested in this type of structure, because there is lots of different components to
design: Resistors, logic gates, operational amplifier.
In this report, we will deal with all this functions, beginning with the design of a comparator.
Next, we will analyze how we can divide a reference voltage in comparison steps. It is required to
decode the thermometer code into binary code. And to conclude, we have decided to add a system to
remove the bubble errors of this ADC.

DURRMANN Antoine GEAMBLU Clment

ADC 3-bits Flash

II- Comparators:
1.

Simple Comparator

We will use the operational amplifiers as comparator. Let us try to build a very simple
comparator:

This comparator is very easy to design, but the test results are not satisfactory. We have
simulated this circuit with two inputs: a sinus with an offset of 0.5V and a continuous signal
Vseuil=0.5V. The results of the test are just above. It is very easy to observe the inefficiency of this
comparison system. It is impossible to reach the 0, and the rise time is obviously too long. That is
why, we had decided to search an other comparator, which would be more efficient.

DURRMANN Antoine GEAMBLU Clment

ADC 3-bits Flash

2.

Complex Comparator

We have decided to do an other comparator, more complex. This comparator introduces a setup of rise time with V-bias.
VDD

VDD

P2

P1

Vbias

N1

VDD

VDD

P3

N5

VDD

P4

P5

N6

VIN+

VIN-

N2

N3

VOUT

N4

V-bias must be included in VTN of transistor and Vdd/2. VTN provide by transistor
characteristic and is approximately 0.2V for optimal functioning.

For our system, V-bias must be included in 0.2V and 0.5V. We choose V-bias=0.3V.

DURRMANN Antoine GEAMBLU Clment

ADC 3-bits Flash

With V-bias=0.2V, we see a long rise time for V-out and impossible to reach the Vdd. This
sample is rejected.

With V-bias=0.9V, Vout is always with long rise time but the signal is more efficient for reach
Vdd. This sample is always rejected.

DURRMANN Antoine GEAMBLU Clment

ADC 3-bits Flash

With V-bias=0.3V, Vout is faster and the crests value is reached.


This comparator with the sample 3 is more elaborate but especially more efficient. The 0 and 1
levels are easily reached and the rise time is ten times faster.

III-

Voltage Divider:
1.

With nMOS

In a first part, we will analyze a voltage divider realized with nMOS connected as diodes.
The schematic used is this one:

To obtain our voltage divider, we have to choose the same equivalent resistor for both nMOS.
But the equivalent resistance of a nMOS is commensurate with W/L.Dividing by 2 the voltage
requires resizing the nMOS because the polarization of the 2 nMOS are not the same. This type of
circuits uses less area than circuit realized with strips of polysilicon but is not so accurate. With lot of
resizings on W and L, we finally reached Vref = 0.502*Vdd.
This method cant be used with more than 3 CMOS connected as diode because of the
substrate voltage VTN = 0.2V. In our application, we want to divide by 8 the input voltage (1 Volt). So
much, this is very impossible to modify each transistor to generate the same quantum. That is why it
will be impossible to use this method to obtain a voltage divider.
Let us try with a classical circuit: 8 resistors serially connected. Each one had the same value.
We also reach to divide by 8 the input voltage with a fine accuracy.

DURRMANN Antoine GEAMBLU Clment

ADC 3-bits Flash

2.

With resistor
We use the circuit opposite on left as add a
same quantum as VPE. The value of resistors that we
use is the same and R1=R2=R=R=1Kohms. The
simulation is opposite on right.

Vcc

R8

a6
R7

a5
R6

The values we obtain are correct but the value


of a0 is too small. a0 could be superior to 0.2V, the
VTN value of comparator for powered correctly the
transistor. The simulation of the out of comparator
with this divider stage gives us:

a4
R5

a3
R4

a2
R3

a1
R2

a0
R1

The out is very bad. The signal does not even


achieve Vdd/2.

We thus decided to modify quantum of voltage


divider. We decided to put the first and last quantum as 0.2V, the other
as 0.1V for VPE=1V. We choose R1=R8=2Kohms and
R2=R3=R4=R5=R6=R7=1Kohms. We obtain the following results:
The simulation of the out of comparator gives us:

The out is as good as previously. Vdd is reached and the next


stage can interpret the signal.

DURRMANN Antoine GEAMBLU Clment

ADC 3-bits Flash

IV-

Bubble Errors.

Incorrect comparator output signals caused by comparator metastability, noise, etc. lead to
faulty thermometer-code representation. This phenomenon, a 1 appearing between zeros or a 0
appearing between ones close to the transition between 0 and 1 is called bubble error. Most of this
bubble error can be removed by using three-input NAND gates (see fig. below).

A one appearing between two 0 caused no mistakes at the output stage. Let us apply this
method on our system:

DURRMANN Antoine GEAMBLU Clment

ADC 3-bits Flash

Initially 1, the outputs of the comparators switched to 0 when the input voltage increase.
A correspond to the LSB and G to the MSB.

Yet, we have to design an inverter and a three-input NAND gate. Let's begin with the inverter.
The principle is easy. A nMOS and a pMOS connected together with a common gate.

Now, we will design a 3-input NAND gate. The circuit is composed of 3 nMOS and 3 pMOS.

DURRMANN Antoine GEAMBLU Clment

ADC 3-bits Flash

The results meet the requirements. The output signal had a very short rise time. The 0 and the
1 are perfectly reached.
Yet, we connect the input and simulate. At the output of the NAND gates, we observe an
inverted step while the input signal is in the interval.

DURRMANN Antoine GEAMBLU Clment

ADC 3-bits Flash

From these results, we can build this truth table, which links the outputs of the comparators
and binary code:

S2

S1

S0

g
f

This truth table gives us three equations:

S2

S2 = d e f g = d e + f g

S1 = b c f g = b c + f g

S0 = a c e g = a c + e g

S1

S0

For more than 3 inputs, it is better to combine 2 or 3 input NAND gates. In this case, we will
use two NAND gates and an OR gate in order to realize an equivalent to a 4-input NAND gate.

The result of the combination of 2 NAND and an OR gate are the same as a 4-input NAND
gate. The final design of this part is :

DURRMANN Antoine GEAMBLU Clment

10

ADC 3-bits Flash

And the simulation gives us this result:

Without error, the output is correct. The word (S2-S1-S0) is increasing while Vin increases.
The outputs of the comparators switched to 0 as soon as VIN become higher than the comparison
voltage. But the aim of this circuit is to remove bubble-errors too. We will simulate a defect
comparator (Ve on Simulation, which never switched to 0).

DURRMANN Antoine GEAMBLU Clment

11

ADC 3-bits Flash

We observe that the word (S2-S1-S0) contained an error exclusively when Vin is between Ve
and Vf. Without error, the maximal error between the input signal and the output is Quantum/2. When
an error occurred, we reach a maximal error of (3*Quantum) /2.

V- Final Design and tests.


All the different components of our circuit are designed and tested. We have to assemble all of
these and to test.
The final design is this one:

DURRMANN Antoine GEAMBLU Clment

12

ADC 3-bits Flash

Comparators
Stage

Bubble Error
Stage

Voltage Divider
Stage

Thermometer
Code Stage

DURRMANN Antoine GEAMBLU Clment

13

ADC 3-bits Flash

And the simulation gives this result:

The basic function of our circuit is accomplished. While Vin is increasing, the word (S2-S1S0) counts up. There are some glitches during the transitions. Slightly different delays lead to a
momentarily erroneous output value.
A way to suppress glitches is adding a Sample and Hold circuit at the output or to recover the
conversion value after signal is stable.

VI-

Conclusion

The dimension of the final circuit are: 11,375 um *16,05 um. We are impressed with this
small area. In the industry, one-step Flash converters are not used because of the too large number of
comparators. We designed a one-step Flash ADC with anti-bubble error system contained in 183 um.
This project was really rewarding and permitted us to manipulate the practical purpose of
CMOS. We have learnt how design the CMOS cell for optimal working, how modify parameters
which influence on system. So this project was a good experience for us.

VII- Bibliography
Basic CMOS Cell Design By Etienne SICARD and Sonia DELMAS BNDIA
Advanced CMOS Cell Design By Etienne SICARD and Sonia DELMAS BNDIA
Mixed-Signal Electonic by Prof. Dr Doris Schmitt-Landsiedel.

DURRMANN Antoine GEAMBLU Clment

14

You might also like