2017 MidSem PDF
2017 MidSem PDF
The output of the 2 input NOR gate is A2 · A1 , valid in phases φ2 and φ3. Thus we have
two intermediate products which are both valid in phase φ3. These can be combined
with a 2-input NAND gate of type 3 to produce the desired Sel output.
En
A3 En.A3.A0
1 2
A0
Sel
3
A2 A2 . A1
A1 1
– [Q1: 2 marks]
Q–2 Give the transistor level circuit diagram of a static Cascade Voltage Switch logic (CVSL)
gate which implements the logic function A.(B + C) and its complement, given A, B, C
and their complements as inputs. How does this logic style avoid static current when
the output is ‘0’ while still needing to drive mostly n type transistors?
Soln.: The figure below shows the logic function A.(B + C) implemented in CVSL logic
style.
A.(B+C) A.(B+C)
A B
A
B C C
– P.T.O.
This study source was downloaded by 100000880904053 from CourseHero.com on 09-16-2024 23:48:30 GMT -05:00
https://www.coursehero.com/file/53098547/2017-MidSempdf/
The nMOS network on the left is ON and pulls the left side output low when A = 1
AND either B or C or both are 1. Thus the left side output is A.(B + C) provided the
pMOS load is ‘ON’ when A.(B + C) is ‘0’.
Similarly, the right side nMOS network is ON and will pull the right side output
low when either A = 1 or B as well as C are ‘1’. Thus the right side output is
A + B · C = A.(B + C) provided the right side pMOS is on when A.(B + C) is ’1’
Whenever A.(B + C) = 1, the nMOS transistors on the left side pull the output LOW,
turning the pMOS on the right ON as required. At the same time, the nMOS switch
combination on the right is OFF and the right side output is ‘1’, which turns the left
side pMOS OFF.
Thre is no static power consumption in either state because the nMOS switch combina-
tions and their pMOS loads are complementary. When A.(B + C) = 1, the left nMOS
switch combination is ON, but its pMOS is OFF. At the same time, since A + B · C = 0,
the nMOS combination on the right is OFF, while its pMOS is ON.
When A.(B + C) = 0, A + B · C = 1 and the right side nMOS switch combination is ON,
but its pMOS is OFF. At the same time, since A.(B + C) = 0, the nMOS combination
on the left is OFF, while its pMOS is ON.
In this way, even though we are driving only nMOS transistors, there is no static power
consumption unlike the case for pseudo nMOS logic. – [Q2: 2 marks]
Q–3 Show how latch up occurs in CMOS circuits. Give a cross section diagram and the
equivalent circuit, showing the correspondence between the regions in the cross section
and the nodes of the equivalent circuit.
What are the suggested methods for avoiding latch up in the process (doping profile)
and layout (design rules).
Soln.: The figure below shows a cross section of a CMOS circuit and the parasitic bipolar
transistors which form the latchup structure.
This study source was downloaded by 100000880904053 from CourseHero.com on 09-16-2024 23:48:30 GMT -05:00
https://www.coursehero.com/file/53098547/2017-MidSempdf/
The vertical pnp transistor is formed
by the p+ source of a pMOS transistor
Substrate contact n source p source Well contact
Gnd Gnd VDD VDD connected to VDD (which becomes the
emitter), the n well (which becomes
p+ n+ n+ p+ p+ n+
the base) and the p substrate (which
n well
becomes the collector of this transistor).
p substrate
The n well is connected to VDD through
a resistive path, which represents the
Rwell resistance of the n well to the well contact.
Vertical pnp
The horizontal npn transistor is formed
by the n+ source of an nMOS transistor
Rsub
connected to ground (which becomes the
horizontal npn
emitter), the p substrate, (which becomes
the base) and the n well, (which becomes
the collector).
Since the collector of the npn and the base of the pnp are both formed by the n well,
these two are connected. Similarly, the collector of the pnp and the base of the npn are
formed by the p substrate, so these are connected too.
Looking at the equivalent circuit, one can see that it forms a positive feedback system.
An increase in the base current of the pnp will be amplified by its βp and a large part
of it will flow through the base emitter junction of the npn transistor. This part will
be amplified by the βn of the npn and a substantial part of it will go through the base
emitter junction of the pnp. If the product of the two amplification factors βp and βn
and the current division ratios between the resistors and the base emitter junctions ex-
ceeds 1, the currents will keep increasing due to this feedback, till there is a dead short
between VDD and ground. This is called latch up.
To prevent latch up, we must reduce the β of the parasitic bipolar transistors and make
sure that most of the collector current of either transistor is directed to the resistor
and not to the base-emitter junction of the other transistor. This can be done through
process steps as well as through design rules.
1. The doping gradient of the n well should be made retrograde. (Doping should
increase as we go deeper). This kills the current gain βp of the pnp transistor.
2. The n well should have a guard ring connected to VDD , which will collect any
current which could form the base current of the pnp.
3. In layout, substrate and well contacts should be placed frequently, to reduce the
value of Rwell and Rsubstrate .
4. n channel transistors should be placed far from the edge of the n well. This increase
the base width of the npn transistor and kills its current gain.
5. p channel transistors should also be placed far from the well edge and the p well
should be deep to kill the gain of the npn transistor.
– [Q3: 3 marks]
This study source was downloaded by 100000880904053 from CourseHero.com on 09-16-2024 23:48:30 GMT -05:00
https://www.coursehero.com/file/53098547/2017-MidSempdf/
Q–4 For a given CMOS process, the mobility correction factor γ for PMOS transistor widths
is 2.5. The parasitic delay of gates may be taken to be proportional to the sum of the
widths of transistors directly connected to the output terminal in a minimum sized gate.
The parasitic delay of an inverter (pinv ) is 2 in units of τ , the propagation delay of a
minimum sized inverter driving another minimum sized inverter without including the
parasitic delay.
Sel0
Nand0 Sel0
Sel1
Nand1
Sel15
Sel15
Nand15
Decoder (i) with 4 input NANDs and inverters. Decoder (ii) with 2 input NANDs and 2 input NORs
In both circuits, the inverters at the input are minimum sized and each select output is
loaded with capacitance equivalent to 128 minimum sized inverters. All transistors use
minimum channel length.
a) Compute the logical effort and parasitic delay for all the types of gates involved in
the above circuits.
Soln.: The figure below shows the gates with transistor widths to be used for providing
the same output drive as a minimum inverter.
VDD VDD VDD VDD
2.5 4 5
4 2
1 1
1 4
2
In case of 4 input NAND, there are 4 n channel transistors in series. So each must
be sized to 4 times the width of the n channel transistor used in the minimum
inverter. 4 p channel transistors are in parallel, so each has the same size as the p
This study source was downloaded by 100000880904053 from CourseHero.com on 09-16-2024 23:48:30 GMT -05:00
https://www.coursehero.com/file/53098547/2017-MidSempdf/
channel transistor in the minimum inverter – that is, 2.5 times the width of the n
channel transistor in the minimum inverter.
Similarly, the 2 input NAND has two n channel transistors in series with a size of
2 and two p channel transistor with a size of 2.5 in parallel. The 2 input NOR
has two n channel transistors in parallel, so each is the same size as the n channel
transistor in the minimum inverter. The p channel transistors are in series, so each
must be sized to 5.
The logical effort of an inverter is 1 by definition and its parasitic delay has been
given to be 2. The logical effort for a gate is proportional to the input capacitance
(and hence, total transistor width) connected to a given input. Therefore
1
g= × sum of transistor widths connected to the input.
3.5
The parasitic delay can be estimated to be proportional to the total transistor
width connected to the output terminal. Therefore,
2
p= × sum of transistor widths connected to the output
3.5
This gives:
– [1]
b) Find the widths for n and p channel transistors in all the gates of both circuits to
minimize the total delay. (Specify the widths in units of the width of the n channel
transistor in a minimum inverter).
Soln.: Circuit (i) with NAND4 gates
The output of each input inverter goes to 8 NAND inputs. (There are 8 inverter
outputs and 64 NAND inputs and these are equally divided). the logical effort g
for 4-input-NAND gates is 13/7. Therefor the path effort for this circuit is given
by
13 128
F = GBH = (1 × × 1) × 8 × = 1901.714
7 1
Since the circuit has 3 stages, the optimum stage effort is
fˆ = 1901.7141/3 = 12.38935
This study source was downloaded by 100000880904053 from CourseHero.com on 09-16-2024 23:48:30 GMT -05:00
https://www.coursehero.com/file/53098547/2017-MidSempdf/
For NAND gates with 4 inputs,
13
gbh = × 1 × 10.33146/Cin = 12.38935, which gives Cin = 1.548668
7
For the input inverters,
The final inverter is 10.33146 times the size of the minimum inverter. Therefore
the n channel transistor width is 10.33146, while the p channel transistor width is
10.33146 × 2.5 = 25.829.
The input inverter is of course unit sized, and therefor n and p channel transistor
widths are 1 and 2.5 respectively.
The logical effort for 2-input-NAND gates is 9/7, while that for 2-input-NOR Gates
is 12/7. Therefor the path effort for this circuit is given by
9 12 128
F = GBH = (1 × × )×8× = 2256.98
7 7 1
Since the circuit has 3 stages, the optimum stage effort is
fˆ = 2256.981/3 = 13.11724
This study source was downloaded by 100000880904053 from CourseHero.com on 09-16-2024 23:48:30 GMT -05:00
https://www.coursehero.com/file/53098547/2017-MidSempdf/
Again, each capacitance unit represents 3.5 units of transistor width. Therefore
the total input transistor width for NOR gates is 16.72825 × 3.5 = 58.54889. This
is divided in the ratio 1 : 5 between n and p channel transistors. Therefore, n
channel transistor width is 58.54889/6 = 9.758149 and the p channel transistor
width is 58.54889 × 5/6 = 48.79074.
The total input transistor width for 2-input-NAND gates is 1.639655 × 3.5 =
5.738794. This is divided in the ratio 2 : 2.5 between the n and p channel transis-
tors. Therefore the n channel transistor width is 5.738794 × 2/4.5 = 2.550574 and
the p channel transistor width is 5.738794 × 2.5/4.5 = 3.188219.
The input inverters are of course unit sized and so the n and p channel transistors
have widths of 1 and 2.5 respectively.
The transistor sizes for all gates may be summarized as:
Circuit gate n width p width
With Input Inv. 1 2.5
NAND4 NAND 4 3.33 2.08
Final Inv. 10.33 25.83
With Input Inv. 1 2.5
NAND-NOR NAND2 2.55 3.19
NOR2 9.76 48.79
– [ 8]
c) Compute the total delay in units of τ for both circuits.
Soln.: In case of the first circuit, fˆ = 12.39. Therefore
So the total delay is about the same in the two cases. – [2]
d) The optimum stage ratio ρ is a solution to the equation ρ(1 − ln ρ) + pinv = 0.
Find the value of ρ and the optimum logic depth for the two decoders for the
specified loading. What is the total delay for the two circuits if the logic depth is
made optimum by adding inverters?
Soln.: pinv is given to be 2. So the equation to be solved is:
f ≡ ρ − ρ ln ρ + 2 = 0
We have
1
f ′ = 1 − ln ρ − ρ = − ln ρ
ρ
Therefore given a guess g, the next improved guess is
f (g) g − g ln g + 2 g+2
g− =g+ =
f (g)
′ ln g ln g
This study source was downloaded by 100000880904053 from CourseHero.com on 09-16-2024 23:48:30 GMT -05:00
https://www.coursehero.com/file/53098547/2017-MidSempdf/
Starting with a guess value of 4, the successive guesses for ρ are: 4.328085, 4.319143,
4.319137, 4.319137 . . . .
For the circuits with NAND2 and NOR2, the optimum number of stages is
ln 2256.98
= 5.28
ln 4.319137
Again, 5 stages should be optimum, though one should also evaluate the delay for
6 stages to see which is better. For a 5 stage design, two additional inverters will be
inserted, so the parasitic delay will be 3 × pinv + pNAND2 + pNOR2 = 6 + 4 + 4 = 14.
The stage effort in this case is 2256.981/5 = 4.684956 and so the total delay is
5 × 4.684956 + 14 = 37.42.
For a six stage design, three inverters will be inserted, so the parasitic delay will be
4×pinv +pNAND2 +pNOR2 = 8+4+4 = 16. The stage effort is 2256.981/6 = 3.621773,
so the total delay will be 6 × 3.621773 + 16 = 37.73.
In this case, the delay is about the same for a 5 stage or 6 stage design. However
5 stage design will be optimum because it has lower complexity (and marginally
lower delay). – [2]
– [Q3: 1 + 8 + 2 + 2 = 13 marks]
Paper Ends
This study source was downloaded by 100000880904053 from CourseHero.com on 09-16-2024 23:48:30 GMT -05:00
https://www.coursehero.com/file/53098547/2017-MidSempdf/
Powered by TCPDF (www.tcpdf.org)