Académique Documents
Professionnel Documents
Culture Documents
BY:-
Ajay Pratap Singh
VLSI Design 1
Basic Circuits using MOS Transistors
MOS transistors can be used in TWO ways to realize logic functions
1. As Switches (Pass Transistors)
2. As Gates
Pass Transistors
A switch can be closed to pass the current from one terminal to the other
Similarly an MOS transistor can be switched on to pass the signal from
input to output
Vin Vout
When = 1, Vout = Vin
When MOS transistors are used as switches they are called PASS
transistors
VLSI Design 2
Drawbacks of Pass transistors Vin Vout
Here, when Vin = VDD and =1
Is Vout = VDD ?
(Logic 1 = VDD)
Vin = VDD Vout = ?
No! Now Vout = VDD – V t
Why?
Vin Vout
Say Vin raises from 0.
When Vin = 0, VGS = VDD which is > Vt Hence
the transistor will be ON and Vout = Vin = 1 = VDD
When Vin = VDD – Vt, VGS = VDD – (VDD – Vt ) =
VDD
Vt and Vout = Vin = VDD – Vt VDD – V t
Vin
0
When Vin > VDD – Vt, VGS < Vt , the transistor
will be OFF and the output can not raise VDD – V t
further and will be clamped to VDD – Vt Vout
0
VLSI Design 3
This leads to another problem
You cannot cascade pass transistors by connecting the output to
the gate of another pass transistor as this will further deteriorate the
output
VDD
VDD
= VDD
VDD
VDD – Vt
VDD – 2Vt
VDD – 3Vt
VLSI Design 4
What is a TRSMISSION GATE ?
You can observe that NMOS pass transistors can pass perfect 0
but not perfect 1 from input to output, whereas a PMOS pass
transistor passes perfect 1 but not perfect 0. Here we use
Vt = Vtn = – Vtp
VDD
0 - VDD VDD – Vt VDD – V t VDD – V t
0 Output is clamped
0 to this value
= VDD
Vin Vout
VDD - 0 Vt
VDD VDD Output is clamped
to this value
=0 Vt Vt
0
Vin Vout
VLSI Design 5
Here we connect NMOS and PMOS transistors in
parallel and apply at the gate of NMOS and at
the gate of PMOS and this is known as
TRANSMISSION GATE.GATE Vin Vout
0 Vout
This means that PMOS is OFF but NMOS is ON
and hence it will pass the input to the output
So Vout = Vin = 0
VLSI Design 6
PMOS will be OFF until Vin = Vt
For NMOS :
=1
VG = VDD and VS = Vt VGS = VDD – Vt,
Vt Vout
i.e. VGS >> Vt
VDD
For PMOS :
VG = 0 and VS = Vt VGS = 0 – Vt = – Vt 0
VLSI Design 7
The output will continue to follow the input until
Vin = VDD – Vt
For NMOS :
=1
VG = VDD and VS = VDD – Vt
VGS = VDD – (VDD – Vt ) = Vt , i.e. VGS = Vt
VDD – Vt Vout
For PMOS :
VG = 0 and VS = VDD – Vt VDD
VLSI Design 8
Now, Let = 1 and Vin > VDD – Vt
Say Vin = VDD – 0.5 Vt
For NMOS : Vin = VDD –0.5 Vt Vout
This means that NMOS is OFF but PMOS Vin = VDD –0.5 Vt Vout
is ON and hence it will pass the input to
the output
So Vout = Vin = VDD – 0.5Vt
VLSI Design 9
Another problem with the pass transistors is that the output is
unpredictable when the gate voltage is 0
In fact the value of X depends on its previous value which can be either
0 or 1
You have to use additional circuits to get the correct value of the output
VLSI Design 10
The following circuit represents the complete AND gate
VDD
X
A B C D
A B C D
Here X = A . B . C . D
VLSI Design 11
Gates
MOS transistors can be used in the form of GATEs. The basic circuit of
this type is an INVERTER
Inverters
NMOS Inverter
Consider the circuit consisting of a resistor Rpu
VDD
and an enhancement type NMOS transistor
connected as shown
Rpu
The resistor is known to be the pull-up resistor
Vout and the transistor is known to be the pull-down
G D transistor as they help respectively in pulling-
Vin
S up the output from 0 (0 V) to 1 (VDD) and
pulling-down the output from 1 to 0
This circuit performs the function of inverting
the input to the output
VLSI Design 12
VDD
The output of the inverter
is usually connected to the
RL
input of another inverter or
a gate, which corresponds
G
D to a capacitive load
Vin
Vout equivalent to the gate-
S
1 1 source capacitance of the
0 0 next stage
VLSI Design 13
Resistor pull-ups are usually not used because they occupy a very large
area
Replace Rpu by a Depletion type NMOS with its Gate tied to its Source
VLSI Design 14
The supply voltage VDD is shared
VDD
between the pull-up and pull-down
transistors
VLSI Design 15
For the pull-up transistor, it is only a single characteristic corresponding
to VGS = 0 and for the pull-down transistor it is a family of characteristics.
The characteristic of pull-up transistor is superimposed over the
characteristics of pull-down transistor
The points of
intersection of
these
I characteristics give
the values of
currents and
voltages at various
points
0 VDD
(Pull-down) (Pull-down)
(Pull-down)
VDD 0
(Pull-up)
(Pull-up) (Pull-up)
VLSI Design 16
VDD
I
Vout
Vin
0 , VDD VDD , 0
(Pull-down) (Pull-up)
Initially, when Vin rises from 0 to Vt, (Vt is the threshold voltage of
enhancement transistor) the pull-down transistor just enters into
conduction offering a large resistance at its output and hence a large
output voltage. At this point, the voltage across the pull-up transistor is
VDD – Vout which will be small
Now the pull-down transistor is in SATURATION region and the pull-up
transistor is in RESISTIVE region
VLSI Design 17
VDD
I
Vout
Vin
0 , VDD VDD , 0
(Pull-down) (Pull-up)
Venh = Vout
As Vin rises further, the enhancement transistor goes more and more into
conduction making Vout to decrease.
This makes the voltage across the depletion transistor to increase and the
transistor enters from resistive to saturation region
VLSI Design 18
VDD
I
Vout
Vin
0 , VDD VDD , 0
(Pull-down) (Pull-up)
When Vin VDD / 2 , the voltage across both the transistors are almost
equal and both are in saturation region.
For further increase in Vin , the pull-down transistor enters into the
resistive region and the output falls to a very low value
VLSI Design 19
VDD
I
Vout
Vin
0 , VDD VDD , 0
(Pull-down) (Pull-up)
Non-Zero output
The drawbacks are:
1. Non-zero output for logic 0
2. For the entire period for which Vin Vt, there exists a direct path
between VDD and ground which makes a wasted static current to
flow. This is a wasted power drain to the supply
VLSI Design 20
Transfer Characteristics
VDD
VDD Vout
VDD / 2
Vout
Vin
0 Vt VDD / 2 VDD
Vin
When Vin = Vt, the pull-down transistor just starts conducting and for
further increase in Vin , the output starts decreasing
When Vin = VDD, Vout decreases to a very low value, but is not perfect zero
VLSI Design 21
CMOS Inverter
VDD
G S
D
Vin Vout
D
G
S
VLSI Design 22
Working
1. Vin = 0
VDD Vout = ?
S D
Vin = 0 Vin = 0
G G
D S
Vout = ?
No current flows through the inverter and the output is directly connected
to VDD and a good logic 1 is obtained at the output
VLSI Design 23
2. Vin = VDD
This case is similar to Case-1 except that the roles of P and N transistors
are interchanged
VDD Vout = ?
S D
Vin = VDD Vin = VDD
G D G
S
Vout = ?
Again no current flows through the inverter and the output is directly
connected to Ground through the NMOS and a good logic 0 is obtained at
the output
VLSI Design 24
3. Vin = Vtn
VDD Vout = ?
S D
Vin = Vtn Vin = Vtn
G G
D S
Vout = ?
VLSI Design 25
4. Vin = VDD – Vtn
This case is similar to Case-3 with the roles of P and N transistors
interchanged
VDD Vout = ?
S D
Vin = VDD – Vtn Vin = VDD – Vtn
G G
D S
Vout = ?
For PMOS, VGS = (VDD – Vtn) – VDD = – Vtn = + Vtp, i.e. PMOS is just
coming out of conduction offering a very high output resistance
This corresponds to SATURATION region for PMOS
For NMOS, VGS = VDD – VT >> VT, hence conducting heavily with low
output resistance
This corresponds to RESISTIVE region for NMOS
The output voltage is LOW, and the current through the inverter is very
small as PMOS offers a high resistance
VLSI Design 26
5. Vin = VDD / 2
VDD Vout = ?
S D
Vin = VDD / 2 Vin = VDD / 2
G G
D S
Vout = ?
So, both PMOS and NMOS are heavily conducting offering low output
resistances
Here both PMOS and NMOS are in SATURATION
This is the region where the inverter exhibits GAIN and the output is
unstable switching from one stable state to the other (0 to 1 or 1 to 0)
The current through the inverter is maximum
VLSI Design 27
Transfer Characteristics
Vt VDD-Vt
VDD
P ON P OFF
Both ON
N OFF N ON
Vout
0 VDD
Vin
1 2 3 4 5
Current
between
VDD and
Ground
0 Vin VDD
VLSI Design 28
Inverter Design
NMOS Inverter
Vout1 Vout2
Vin1 Vin2
For obtaining the inverter output without degrading, it is assumed that the
following condition is satisfied
Vin1 = Vout1 = Vin2 = Vout2 = Vinv = 0.5 VDD
VLSI Design 29
The saturation current for an NMOS is given by
W (VGS – Vt)
2
IDS = K
L 2
Where
L and W are the length and width of the transistor
K is a technology dependent parameter given by K = C0
C0 is the gate capacitance per unit area and
is the mobility of the channel carriers
Using the suffix ‘pu’ for pull-up and ‘pd’ for pull-down transistors
VLSI Design 30
For the Depletion Mode transistor, VGS = 0 and Vt = Vtd
Since the current is the same for both the transistors, equating (1) & (2)
we get
1 (Vinv–Vt)2 1 (–Vtd)2
= ……… (4)
Zpd 2 Zpu 2
VLSI Design 31
Substituting the following typical values
Vt = 0.2 VDD, Vt = – 0.6 VDD and Vinv = 0.5 VDD
We get
1 (0.5–0.2)2 1 (+0.6)2
=
Zpd 2 Zpu 2
Zpu 0.36
= = 4 ……… (5)
Zpd 0.09
VLSI Design 32
You can get the ratio Zpu/ Zpd = 4 by choosing different values for Lpd, Wpd,
Lpu and Wpu
For example, you can choose Lpd = Wpd = X , Wpu = X and Lpu = 4 X
VDD VDD
4:1 2:1
1:1 1:2
VLSI Design 33
When an Inverter drives another inverter through one or more pass
transistors
VDD VDD
Inverter 1 Inverter 2
Vout1
Vout2
Vin1 Vin2
You know that the NMOS pass transistors degrade logic 1 at their
outputs. In other words, when Vout1 = VDD corresponding to Vin1 = 0, Vin2
= VDD – Vt(pass) . For this the output voltage Vout2 will not be a proper logic
0
You already know that for an NMOS inverter, even when the input is VDD
the output is not a perfect zero and to add to it, the deterioration of the
input to the second inverter by the pass transistors deteriorates the
output further
VLSI Design 34
So, you should aim to achieve an output Vout2 for the inverter 2, driven
with an input Vin2 = VDD – Vt(pass) , same as would be the output Vout1 for the
inverter 1 driven with an input Vin1 = VDD
Thus, for inverter 1, Vin1 = VDD and Vout1 = logic 0
i.e., the voltage across the pull-down transistor is low and that across
pull-up transistor is high
This corresponds to the pull-up transistor working in saturation region
and the pull-down transistor in resistive region
Here also, the voltage across the pull-down transistor is low and that
across pull-up transistor is high
This corresponds to the pull-up transistor working in saturation region
and the pull-down transistor in resistive region
VLSI Design 35
Inverter 1
For the Enhancement Mode pull-down transistor (working in RESISTIVE
region)
Wpd1 VDS12
IDS1 = K (VDD–Vt) VDS1 – ……… (6)
Lpd1 2
Since VDS1 is small, neglecting the higher order term, the resistance
offered at the output of the pull-down transistor can be given by
VDS1 1 Lpd1 1
R1 =
IDS1 K Wpd1 (VDD–Vt)
1 1 ……… (7)
= Zpd1
K (VDD–Vt)
VLSI Design 36
For the Depletion Mode pull-up transistor (working in SATURATION
region)
Wpu1 (– Vtd) 2
IDS1 = K ……… (8)
Lpu1 2
Wpu1 (– Vtd) 2 1 1
Vout1 = IDS1 R1 = K X Zpd1
Lpu1 2 K (VDD–Vt)
Zpd1 1 (– Vtd) 2
= ……… (9)
Zpu1 (VDD–Vt) 2
VLSI Design 37
Inverter 2
Similarly for the inverter 2 the resistance offered at the output of the pull-
down transistor is given by
1 1 ……… (10)
R2 Zpd2
K (VDD–Vt(pass)) – Vt
Zpd2 1 (– Vtd) 2
Vout2 = IDS2 R2 = ……… (12)
Zpu2 (VDD–Vt(pass)) – Vt 2
VLSI Design 38
Since output of inverter 2 should be same as the output of inverter 1
under our assumed conditions, we get
Vout1 = Vout2
i.e.
Substituting the typical values Vt = 0.2 VDD and Vt(pass) = 0.3 VDD in (13)
VLSI Design 39
This means that if an inverter is driven by another through one or more
pass transistors, the size of the DRIVEN INVERTER (not the driver)
must be such that Zpu / Zpd 8
CMOS Inverter
For CMOS inverter, when Vin = Vout = 0.5 VDD, both P and N transistors
are in saturation. The saturation current is given by
VDD
IDS = (VGS – Vt) 2
G S
Where = K W / L = C0 W / L
D
Hence the current through P and NMOS will Vin Vout
be given by D
G
IDSp = p [(Vin – VDD) – Vtp] S
2
……… (14)
VLSI Design 40
Since the same current flows through both VDD
the transistors, we have
G S
IDSp = – IDSn
D
i.e. Vin Vout
D
p [(Vin – VDD) – Vtp] 2 = – n [(Vin – 0) – Vt] 2
G
S
i.e. p Wp n Wn
=
Lp Ln
VLSI Design 41
Since the mobility of electrons is approximately 2.5 times the mobility of
holes, we get
Wp Wn
= 2.5
Lp Ln
VLSI Design 42