CMOS Static & Dynamic Logic Gates: NMOS Transistors in Series/Parallel Connection
CMOS Static & Dynamic Logic Gates: NMOS Transistors in Series/Parallel Connection
X B Y = X if A OR B
Y
URL: www.ee.ic.ac.uk/pcheung/
E-mail: [email protected] NMOS Transistors pass a “strong” 0 but a “weak” 1
PYKC 25-Jan-05 E4.20 Digital IC Design Lecture 6 - 1 PYKC 25-Jan-05 E4.20 Digital IC Design Lecture 6 - 2
A B
X Y Y = X if A AND B = A + B
X B Y = X if A OR B = AB
Y
PYKC 25-Jan-05 E4.20 Digital IC Design Lecture 6 - 5 PYKC 25-Jan-05 E4.20 Digital IC Design Lecture 6 - 6
PYKC 25-Jan-05 E4.20 Digital IC Design Lecture 6 - 7 PYKC 25-Jan-05 E4.20 Digital IC Design Lecture 6 - 8
Example Gate: COMPLEX CMOS GATE Properties of Complementary CMOS Gates
V DD
1) High noise margins
:
B
V OH and V OL are at V DD and GND , respectively.
A
C 2) No static power consumption
:
There never exists a direct path betweenVDD and
D V SS (GND ) in steady-state mode.
OUT = D + A • (B+C)
3) Comparable rise and fall times:
A
D
(under the appropriate scaling conditions)
B C
PYKC 25-Jan-05 E4.20 Digital IC Design Lecture 6 - 9 PYKC 25-Jan-05 E4.20 Digital IC Design Lecture 6 - 10
• for performance
V DD VDD V DD
V DD
Input Dependent Rp
Rp Rp Rp
B 8
A B B
A 4 Focus on worst- case A F Rp
Rn
C 8 F CL
B A
Rn
CL F
D 4 • assume µn=2* µp (i.e. n-channel A
Rn Rn Rn
CL
A
F transistors has 2 times the A B
A 2 transconductance as that of p-
D 1 channel.) (a) Inverter (b) 2-input NAND (c) 2-input NOR
B 2 C 2 t p = 0.69 Ron C L
PYKC 25-Jan-05 E4.20 Digital IC Design Lecture 6 - 13 PYKC 25-Jan-05 E4.20 Digital IC Design Lecture 6 - 14
V DD V DD • Transistor Sizing:
V DD
As long as Fan-out Capacitance dominates
1 1 B 4 B 8
A
A 2 A 4 • Progressive Sizing:
B
C 4 C 8
F Out
2 In N MN
CL D 2 D 4 CL
B
F M1 > M2 > M3 > MN
F
A 2
A 2 In 3 C3
2 D 1 M3
D 1 Distributed RC-line
A B 2 C 2
B 2 C 2 In 2 M2 C2
In 1 M1 C1
Can Reduce Delay with more than 30%!
Here it is assumed that Rp = Rn
PYKC 25-Jan-05 E4.20 Digital IC Design Lecture 6 - 15 PYKC 25-Jan-05 E4.20 Digital IC Design Lecture 6 - 16
Fast Complex Gate - Design Techniques (2) Fast Complex Gate - Design Techniques (3)
CL CL
In 3 M3 In 1 M1
In 2 M2 C2 C2
In 2 M2
In 1 M1 C1 C3
In 3 M3
(a) (b)
PYKC 25-Jan-05 E4.20 Digital IC Design Lecture 6 - 17 PYKC 25-Jan-05 E4.20 Digital IC Design Lecture 6 - 18
CL CL Co B
C o = AB + C i(A+B)
28 transistors
PYKC 25-Jan-05 E4.20 Digital IC Design Lecture 6 - 19 PYKC 25-Jan-05 E4.20 Digital IC Design Lecture 6 - 20
A Revised Adder Circuit Ratioed Logic
V DD
VD D VDD A
V DD V DD VD D
VD D
VD D V DD
• N transistors + Load
Resistive
• V OH = V D D Depletion PMOS
Load RL VT < 0
Load Load
R PN V SS
• V OL =
F F
F R PN + R L
In 1 In 1
In 1 In 2 PDN In 2 PDN
• Assymetrical response In 3 In 3
In 2 PDN
In 3 • Static power consumption V SS V SS
GND
V DD V DD
Out
M1 M2
Out
Out Out
B B B B
A
A
B PDN1 PDN2
B A A
V SS V SS
There is another class of logic gates which relies on the use of a clock signal. This class of Problem with cascading such as a circuit:-
circuit is known as dynamic circuits. The clock signal is used to divide the gate operation into • Inputs can only be changed when Ø is low and must be stable when Ø is high.
two halves. In the first half, the output node is pre-charged to a high or low logic state. In the
• When Ø is low, both P1 and P2 are precharged to a high voltage. However when Ø is
second half of a clock cycle, the circuit evaluates the correct output state.
high, delay through on the output P1 may erroneously discharge P2.
When Ø is low, Z is charged to high. When Ø is high, n logic block evaluates input, and
conditionally discharges Z. This circuit adds series resistance to the pull-down n-channel
transistor, therefore the fall time is increased slightly.
This circuit is dynamic because during evaluation, the output high level at Z is maintained by
the stray capacitance at the output node. If Ø stays high (i.e. evaluation period) for a long
time, Z may eventually discharge to a low logic level.
PYKC 25-Jan-05 E4.20 Digital IC Design Lecture 6 - 29 PYKC 25-Jan-05 E4.20 Digital IC Design Lecture 6 - 30
Solution to the above problem:- Another possible scheme is to use alternate n and p logic blocks as shown below.
• Add an inverter to ensure that the output is low In this scheme, each alternate stage is pre-charged high and low. Each stage uses
during precharge, and prevent the next stage alternate n and p transistors to implement the gate function. Stage 1 makes at most one
from evaluating, until the current stage has high to low transition, while stage 2 makes at most one low to high transition for each
finished evaluation. evaluation. Since the p logic block will only change state if input is a low, this circuit
• This ensures that each stage (at the output of behaves like the domino logic.
the inverter) will make at most a single
transition from 0 -> 1.
• When many stages are cascaded, evaluation
proceeds from one stage to the next - similar
to dominos falling one after another.
Disadvantages of domino logic:-
• Only non-inverting logic is possible, i.e. output
also high active
• Each gate needs an inverter; hence more
transistors
• Suffer from charge sharing effect (considered
later)
PYKC 25-Jan-05 E4.20 Digital IC Design Lecture 6 - 31 PYKC 25-Jan-05 E4.20 Digital IC Design Lecture 6 - 32
Alternating dynamic logic (2) Making a Dynamic Gate static
A slight variation of this circuit is show below, where an inverter is added per stage to Finally, by adding a feedback pullup, we can make the circuit static.
increase flexibility. Here each stage can drive either n or p blocks and both low active and This circuit turns the originally dynamic gate into a static gate because the feedback
high active logic can be implemented. transistor can maintain a logic high level at the node Z for an indefinite length of time.
Without this feedback transistor, the charge stored at the node Z will eventually leak away.
PYKC 25-Jan-05 E4.20 Digital IC Design Lecture 6 - 33 PYKC 25-Jan-05 E4.20 Digital IC Design Lecture 6 - 34
PYKC 25-Jan-05 E4.20 Digital IC Design Lecture 6 - 35 PYKC 25-Jan-05 E4.20 Digital IC Design Lecture 6 - 36
Pass Transistor XOR gate 4-input NAND Gate
Pass transistor logic can sometimes be very economical in implementing logic
functions. For example, an XOR gate can be implemented with just two
transmission gates:- Vdd
VD D
In 1 In 2 In 3 In 4
Out
In 1
In 2
Out
In 3
In 4
GND
PYKC 25-Jan-05 E4.20 Digital IC Design Lecture 6 - 37 PYKC 25-Jan-05 E4.20 Digital IC Design Lecture 6 - 38
VD D V DD
metal1 VD D
x
x
Well
GND GND
V SS a c b a b c
Routing Channel
signals (a) Input order {a c b} (b) Input order {a b c}
polysilicon
PYKC 25-Jan-05 E4.20 Digital IC Design Lecture 6 - 39 PYKC 25-Jan-05 E4.20 Digital IC Design Lecture 6 - 40
Logic Graph Consistent Euler Path
x
VD D
x
b PUN c
j c c x i
V DD
a x i VD D
x b a
b a j
j
c
i PDN
GND GND
a b
{ a b c}
PYKC 25-Jan-05 E4.20 Digital IC Design Lecture 6 - 41 PYKC 25-Jan-05 E4.20 Digital IC Design Lecture 6 - 42
Example: x = ab+cd
x x
b c b c
x V DD x VD D
a d a d
GND GND
VD D
GND
a b c d
(c) stick diagram for ordering {a b c d}