You are on page 1of 83

Chapter 7

Complementary MOS (CMOS) Logic


Design

Microelectronic Circuit Design


Richard C. Jaeger
Travis N. Blalock

Microelectronic Circuit Design Chap 7 - 1


McGraw-Hill
Chapter Goals
• Introduce CMOS logic concepts
• Explore the voltage transfer characteristics CMOS inverters
• Learn to design basic and complex logic gates
• Discuss static and dynamic power in CMOS logic
• Present expressions for dynamic performance of CMOS logic
devices
• Present noise margins for CMOS logic
• Introduce dynamic logic and domino CMOS logic techniques
• Introduce design techniques for “cascade buffers”
• Explore layout of CMOS logic gates
• Discuss the concept of “latchup”
Microelectronic Circuit Design Chap 7 - 2
McGraw-Hill
CMOS Inverter Technology

• Complementary MOS, or CMOS, needs both


PMOS and NMOS devices for their logic gates to
be realized
• The concept of CMOS was introduced in 1963 by
Wanlass and Sah, but it did not become common
until the 1980’s as NMOS microprocessors were
dissipating as much as 50 W and alternative
design technique was needed
• CMOS still dominates digital IC design today

Microelectronic Circuit Design Chap 7 - 3


McGraw-Hill
CMOS Inverter Technology

• The CMOS inverter consists of a PMOS stacked on top on


a NMOS, but they need to be fabricated on the same wafer
• To accomplish this, the technique of “n-well” implantation
is needed as shown in the figure which shows the cross-
section of a CMOS inverter

Microelectronic Circuit Design Chap 7 - 4


McGraw-Hill
CMOS Inverter

(a) Circuit schematic for a CMOS inverter


(b) Simplified operation model with a high input applied
(c) Simplified operation model with a low input applied

Microelectronic Circuit Design Chap 7 - 5


McGraw-Hill
CMOS Inverter Operation

• When vI is pulled high (VDD), the PMOS inverter


is turned off, while the NMOS is turned on pulling
the output down to VSS

• When vI is pulled low (VSS), the NMOS inverter is


turned off, while the PMOS is turned on pulling
the output up to VDD

Microelectronic Circuit Design Chap 7 - 6


McGraw-Hill
CMOS Inverter Layout

• Two methods of laying


out a CMOS inverter
are shown
• The PMOS transistors
lie within the n-well,
whereas the NMOS
transistors lie in the p-
substrate
• Polysilicon is used to
form common gate
connections, and metal
is used to tie the two
drains together

Microelectronic Circuit Design Chap 7 - 7


McGraw-Hill
Static Characteristics of the CMOS
Inverter
• The figure shows the
two modes of static
operation with the
circuit and simplified
models
• Notice that VH = 5V
and VL = 0V, and that ID
= 0A which means that
there is no static power
dissipation

Microelectronic Circuit Design Chap 7 - 8


McGraw-Hill
CMOS Voltage Transfer Characteristics
• The VTC shown is for a
CMOS inverter that is
symmetrical (KP = KN)
• Region 1: vO = VH
vI < VTN
• Region 2: |vDS| ≥ |vGS – VTP|
• Region 4: vDS ≥ vGS – VTN
• Region 5: vO = VL
vI > VDD – |VTP|

Microelectronic Circuit Design Chap 7 - 9


McGraw-Hill
CMOS Voltage Transfer Characteristics

• The simulation
result shows the
varying VTC of
the inverter as
VDD is changed
• The minimum
voltage supply
for a certain MOS
technology is
2VT∙ln(2)

Microelectronic Circuit Design Chap 7 - 10


McGraw-Hill
CMOS Voltage Transfer Characteristics
• The simulation
result shows the
varying VTC of the
inverter as KN/KP =
KR is changed
• For KR > 1 the
NMOS current
drive is greater and
it forces vI < VDD/2
• For KR < 1 the
PMOS current
drive is greater and
it forces vI > VDD/2

Microelectronic Circuit Design Chap 7 - 11


McGraw-Hill
Noise Margins for the CMOS Inverter

• Noise margins
are defined by
the regions
shown in the
given figure

NML = VIL – VOL


NMH = VOH – VIH

Microelectronic Circuit Design Chap 7 - 12


McGraw-Hill
Noise Margins for the CMOS Inverter
4.0

3.5

3.0
NM
H
Noise Margin (Volts)

2.5

2.0

1.5

NM
1.0 L

0.5
0 1 2 3 4 5 6 7 8 9 10 11
K
R

F igu re 8.8 - Nois e m a rgin s vers u s KR for t h e CMO S in vert er wit h


VDD = 5 V a n d VTN = -VTP = 1 V.

Microelectronic Circuit Design Chap 7 - 13


McGraw-Hill
Propagation Delay Estimate

• The two modes of capacitive charging that contribute to


propagation delay

Microelectronic Circuit Design Chap 7 - 14


McGraw-Hill
Propagation Delay Estimate

   VH  VTN   2VTN 
 PHL  RonN C ln 4   1  
   VH  VL   VH  VTN 
1
RonN 
K n VH  VTN 
 PHL   PLH
p    PHL
2

• If it is assumed the inverter in “symmetrical”,


(W/L)P = 2.5(W/L)N, then τPLH = τPHL
Microelectronic Circuit Design Chap 7 - 15
McGraw-Hill
Rise and Fall Times

• The rise and fall times are given by the following


expressions:

t f  2 PHL
t r  2 PLH

Microelectronic Circuit Design Chap 7 - 16


McGraw-Hill
Reference Inverter Example

• Design a reference inverter to achieve a delay of


250ps with a 0.1pF load given the following
information:
VDD  3.3V
C  0.1 pF
 p  250 ps
VTN  VTP  0.75V

Microelectronic Circuit Design Chap 7 - 17


McGraw-Hill
Reference Inverter Example

• Assuming the inverter is symmetrical and using


the values given in Table 7.1:
A
K  25 2
'
n
V
A
K p  10 2
'

V
 p   PHL   PLH  250 ps

Microelectronic Circuit Design Chap 7 - 18


McGraw-Hill
Reference Inverter Example

• Solving for RonN:


 PHL
RonN   2020
   VDD  VTN   1 
C ln 4   1  
   VDD  VL   2 

• Then solve for the transistor ratios:


W  1 7.77
   
 n K n RonN VDD  VTN 
'
L 1
W   W  19.4
   2 .5   
L p  L n 1

Microelectronic Circuit Design Chap 7 - 19


McGraw-Hill
Delay of Cascaded Inverters

• An ideal step was used to derive the previous


delay equations, but this is not possible to
implement
• By putting the following circuit in SPICE, it is
possible to produce more accurate equations

Microelectronic Circuit Design Chap 7 - 20


McGraw-Hill
Delay of Cascaded Inverters
• The output of the previous circuit looks like the following
an it can be seen that the delay for the nonideal step input
is approximately twice than the ideal case:

   VDD  VTN   1 
 PHL  2 RonN C ln 4   1  
   VDD  VL   2 
   VDD  VTP   1 
 PLH  2 RonP C ln 4   1  
   V H   2 

Microelectronic Circuit Design Chap 7 - 21


McGraw-Hill
Static Power Dissipation

• CMOS logic is considered to have no static power


dissipation

• Since the ROFF of the two transistors is very large,


the DC current driving a capacitive load is zero

• This is not completely accurate since MOS


transistors have leakage currents associated with
the reverse-biased drain-to-substrate connections
Microelectronic Circuit Design Chap 7 - 22
McGraw-Hill
Dynamic Power Dissipation
• There are two
components that add
to dynamic power
dissipation:
1) Capacitive load
charging at a
frequency f given
by: PD = CVDDf
2) The current that
occurs during
switching which can
be seen in the figure

Microelectronic Circuit Design Chap 7 - 23


McGraw-Hill
Power-Delay Product

• The power-delay product is given as:


PDP  Pav P 1
f 
Pav  CVDD
2
f T
The figure shows a symmetrical
inverter switching waveform
2t r 2 2 P 
T  t r  t a  t f  tb    5 P
0.8 0.8
2 2
CVDD CVDD
PDP  P 
5 P 5
Microelectronic Circuit Design Chap 7 - 24
McGraw-Hill
CMOS NOR Gate

CMOS NOR gate Reference Inverter


implementation
Microelectronic Circuit Design Chap 7 - 25
McGraw-Hill
CMOS NOR Gate Sizing

• When sizing the transistors, it is ideal to keep the


delay times the same as the reference inverter

• To accomplish this, the on-resistance on the


PMOS branch of the NOR gate must be the same
as the reference inverter

• For a two-input NOR gate, the (W/L)p must be


made twice as large
Microelectronic Circuit Design Chap 7 - 26
McGraw-Hill
CMOS NOR Gate Body Effect

• Since the bottom PMOS body contact is not


connected to its source, its threshold voltage
changes as VSB changes during switching

• Once vO = VH is reached, the bottom PMOS is not affected


by body effect, thus the total on-resistance of the PMOS
branch is the same

• However, the rise time is slowed down due to |VTP| being a


function of time

Microelectronic Circuit Design Chap 7 - 27


McGraw-Hill
Two-Input NOR Gate Layout

Microelectronic Circuit Design Chap 7 - 28


McGraw-Hill
Three-Input NOR Gate Layout

• It is possible to extend this same design technique to create


multiple input NOR gates

Microelectronic Circuit Design Chap 7 - 29


McGraw-Hill
Shorthand Notation for NMOS and
PMOS Transistors

Microelectronic Circuit Design Chap 7 - 30


McGraw-Hill
CMOS NAND Gates

CMOS NAND gate Reference Inverter


implementation
Microelectronic Circuit Design Chap 7 - 31
McGraw-Hill
CMOS NAND Gates Sizing

• The same rules apply for sizing the NAND gate as


the did for the NOR gate, except for now the
NMOS transistors are in series

• The (W/L)N will be twice the size of the reference


inverter’s NMOS

Microelectronic Circuit Design Chap 7 - 32


McGraw-Hill
Multi-Input CMOS NAND Gates

Microelectronic Circuit Design Chap 7 - 33


McGraw-Hill
Complex CMOS Logic Gate Design
Example
• Design a CMOS logic gate for (W/L)p,ref=5/1 and for (W/L)n,ref=2/1 that
exhibits the function: Y = A + BC +BD
• By inspection (knowing Y), the NMOS branch of the gate can drawn
as the following with the corresponding graph, while considering the
longest path for sizing purposes:

Microelectronic Circuit Design Chap 7 - 34


McGraw-Hill
Complex CMOS Logic Gate Design
Example
• By placing nodes in the interior of each arc, plus two more outside the
graph for VDD (3) and the complementary output (2’), the PMOS
branch can be realized as shown on the left figure
• Connect all of the nodes in the manner shown in the right figure, and
the NMOS arc that PMOS arc intersects have the same inputs

Microelectronic Circuit Design Chap 7 - 35


McGraw-Hill
Complex CMOS Logic Gate Design
Example
• From the PMOS
graph, the PMOS
branch can now be
drawn for the final
CMOS logic gate
while once again
considering the
longest PMOS path
for sizing

Microelectronic Circuit Design Chap 7 - 36


McGraw-Hill
Complex CMOS Gate with a Bridging
Transistor Design Example
• Design a CMOS gate that implements the following logic function
using the same reference inverter sizes as the previous example:
Y = AB +CE + ADE + CDB
• The NMOS branch can be realized in the following manner using
bridging NMOS D to implement Y. The corresponding NMOS graph
is shown to the right.

Microelectronic Circuit Design Chap 7 - 37


McGraw-Hill
Complex CMOS Gate with a Bridging
Transistor Design Example
• By using the same technique as before, the PMOS
graph can now be drawn

Microelectronic Circuit Design Chap 7 - 38


McGraw-Hill
Complex CMOS Gate with a Bridging
Transistor Design Example
• By using the PMOS
graph the PMOS
branch can now be
realized as the
following (considering
the longest path for
sizing)

Microelectronic Circuit Design Chap 7 - 39


McGraw-Hill
Minimum Size Gate Design and
Performance
• With CMOS technology, there is a area/delay
tradeoff that needs to be considered

• If minimum feature sized are used for both


devices, then the τPLH will be decreased compared
to the symmetrical reference inverter

Microelectronic Circuit Design Chap 7 - 40


McGraw-Hill
Minimum Size Complex Gate and
Layout
• The following shows the layout of a complex minimum size
logic gate

Microelectronic Circuit Design Chap 7 - 41


McGraw-Hill
Cascade Buffers

• In some circuit, the logic must be able to drive


large capacitances (10 to 50pF)
• By cascading an even number of increasing larger
inverters, it is possible to drive the loads

Microelectronic Circuit Design Chap 7 - 46


McGraw-Hill
Cascade Buffers
• The taper factor β determines the increase of the cascaded inverter’s size in manner shown of the previous image.

where Co is the unit inverter’s load capacitance

• The delay of the cascaded buffer is given by the following:

CL
  N

Co

1/ N
 CL 
 B  N   o Where τo is the unit inverter’s
 Co  propagation delay

Microelectronic Circuit Design Chap 7 - 47


McGraw-Hill
Optimum Design of Cascaded Stages

• The following expressions can aid in the design of


an optimum cascaded buffer
 CL 
N opt  ln 
 Co 
1
 CL   C
ln  L

 opt     
 Co
 Co 
 CL 
 Bopt  ln  o
 Co 
Microelectronic Circuit Design Chap 7 - 48
McGraw-Hill
The CMOS Transmission Gate

• The CMOS
transmission gate
(T-gate) is one of the
most useful circuits for
both analog and digital
applications
• It acts as a switch that
can operate up to VDD
and down to VSS

Microelectronic Circuit Design Chap 7 - 49


McGraw-Hill
The CMOS Transmission Gate

• The main consideration that needs to be


considered is the equivalent on-resistance which is
given by the following expression:

Ronp Ronn
REQ 
Ronp  Ronn

Microelectronic Circuit Design Chap 7 - 50


McGraw-Hill
CMOS Latchup

• There is one major downfall to the CMOS logic


gate – Latchup

• There are many safeguards that are done during


fabrication to suppress this, but it can still occur
under certain transient or fault conditions

Microelectronic Circuit Design Chap 7 - 51


McGraw-Hill
CMOS Latchup

• Latchup occurs due parasitic bipolar transistors


that exist in the basic inverter as shown below

Microelectronic Circuit Design Chap 7 - 52


McGraw-Hill
CMOS Latchup
• The configuration of
these bipolar
transistors create a
positive feedback
loop, and will cause
the logic gate to
latchup as shown to
the left
• By using heavily
doped material where
Rn and Rp exist, there
resistance will be
lowered thereby
reducing the chance
of latchup occurring

Microelectronic Circuit Design Chap 7 - 53


McGraw-Hill
CMOS Latchup

• Suppose a base current iBN begins to flow in the base of


the npn transistor. This base current is amplified by the
npn current gain N an must be supplied from the base
of the pnp transistor. The pnp base current is then
amplified further by the current gain P of the pnp
transistor, yielding a collector current equal to
• iCP = PiBP = P(NiBN) (8.26)

Microelectronic Circuit Design Chap 7 - 54


McGraw-Hill
CMOS Latchup
• Once the circuit has entered the latchup state, both
transistors saturate, and the voltage across the structure
collapses to one diode drop plus one saturation voltage.
• V = VEB+VCESAT = VBE + VECSAT (8.27)
• After latch up happened, the current increases to (VDD-
0.8)/RC. The current level is only limited by the external
circuit components.
• Large currents and power dissipation can rapidly destroy
most CMOS structures. e.g. electro-migration will damage
the metal lines.

Microelectronic Circuit Design Chap 7 - 55


McGraw-Hill
200mA
External Circuit
Limited Current

100mA

i
CC
0A

Latchup Trigger Point


(a)
-100mA

2.0V

V(2)

0V

(b)
0V 1.0V 2.0V 3.0V 4.0V 5.0V 6.0V
VDD
Figu re 8 .3 2 - PS PICE s im u la t ion of la tch u p in t h e circu it of Fig. 8 .3 1 (a )
(a ) Cu rr en t fr om VDD (b ) Volt a ge a t n od e 2 .

Microelectronic Circuit Design Chap 7 - 56


McGraw-Hill
CMOS Latchup

• Latchup would not occur in an ideal structure for which


Rn = 0 = Rp – modern CMOS technology uses special
substrates and processing to minimize the values of
these two resistors.
• A fault or transient occurs that causes one of the source
or drain diffusions to momentarily exceed the power
supply voltage levels, the latchup can be triggered.
• Ionizing radiation or intense optical illumination are
two other possible sources of latchup initiation.

Microelectronic Circuit Design Chap 7 - 57


McGraw-Hill
Latch-up Prevention

Latchup resistant CMOS processes – reduce the


gain the the parasitic transistors.
Layout techniques - Use substrate contact to
reduce Rn & Rp.

Microelectronic Circuit Design Chap 7 - 58


McGraw-Hill
Homework

7.32
7.61
7.71

Microelectronic Circuit Design Chap 7 - 59


McGraw-Hill
Additional CMOS Design Issues

Power Economy
Sizing Routing Conductors
Design Margining
Yield
Reliability

Microelectronic Circuit Design Chap 7 - 60


McGraw-Hill
Power Economy

In large projects, each module is usually given a


power budget. It is then the designer’s job to meet
this constraint (in addition to all the other normal
constrains).
DC Power dissipation is reduced to leakage by
using CMOS logic gates.
Leakage is proportional to the area of diffusion, so
use minimum-sized device if possible.

Microelectronic Circuit Design Chap 7 - 61


McGraw-Hill
Power Economy (cont.)

Dynamic Power Dissipation may be limited by


reducing supply voltage, switched capacitance,
and the clock frequency.
Capacitance can be minimized by optimal
placement and routing.
Only operate minimum amount of logic at high
speed.
Having a variable clock depending on how much
computation has to be completed.

Microelectronic Circuit Design Chap 7 - 62


McGraw-Hill
Sizing Routing Conductors
 Electromigration – determine the minimum width of
conductors
 Power supply noise and integrity – need to maintain VDD
and VSS levels
 RC delay – for speed reason
 Power and Ground Bounce : due to current draw change.
Happens in clock transition, or I/O pads. Often large on-
chip “bypass” capacitors are added to minimize its effect.
 Contact Replication

Microelectronic Circuit Design Chap 7 - 63


McGraw-Hill
Wire Sizing Example

Q : A 50 MHz clock buffer drives 100fF load. JAl =


0.5mA/um. Sheet resistance of Al is 0.5Ω/square. The
buffer is 500um from power supply pads. Supply voltage
is 5volts. What would be the conductor width for power
and ground wires? What is the ground bounce with this
size?
A : P=CV2f = 100fFx25x50MHz = 125mW. I = 25mA. So the
width should be at least 50 um. A good choice is 100 um.
For ground bounce, R=500/100x0.5 = 2.5 Ω. IR =
2.5x25mA=62.5mV.

Microelectronic Circuit Design Chap 7 - 64


McGraw-Hill
Design Margining

Operating temperature : ambient temperature


range : 0 to 70 °C. Commercial parts: -40°C to
85°C. Military parts: -55 °C to 125 °C.
Supply Voltage: +/-10% of the supply voltage.
Process Variation

Microelectronic Circuit Design Chap 7 - 65


McGraw-Hill
Process Variation

The fabrication process is a long sequence of


chemical reactions that result in device
characteristics that follow a normal or Gaussian
distribution.
Retaining parts with a 3σdistribution will result
in .26% rejection rate. 2σresults in 4.56%, while
1σresults in 31.74%.
Boundary cases of transistors are described by :
nominal, fast and slow.

Microelectronic Circuit Design Chap 7 - 66


McGraw-Hill
Design Corners
 High-Speed/Worst-Power Corner: fast-n/fast-p, high
supply voltage and lowest temperature. Determines the
package. Also check for setup and hold time constraints.
 Worst-Speed Corner: slow-n/slow-p, low supply voltage
and highest temperature. Determines the chip operational
frequency. Good safe design gives 10 to 20% speed for
margin.
 Other corners must also be checked to ensure memory,
analog circuit, ratioed logic works properly.

Microelectronic Circuit Design Chap 7 - 67


McGraw-Hill
Packaging Issues

When choose package need to consider pin count,


power dissipation, cost.
Heat sink can be added to relief power dissipation
requirements, at the cost of additional cost and
space requirement.
Need to consider lead inductance for speed reason.

Microelectronic Circuit Design Chap 7 - 68


McGraw-Hill
Package Types Examples 1

Microelectronic Circuit Design Chap 7 - 69


McGraw-Hill
Package Types Examples 2

Microelectronic Circuit Design Chap 7 - 70


McGraw-Hill
Package Types Examples 3

Microelectronic Circuit Design Chap 7 - 71


McGraw-Hill
Yield

Yield is defined as the ratio between known good


chip on wafer and total number of chips on wafer.
Yield is a function of chip area and defect density.

Microelectronic Circuit Design Chap 7 - 72


McGraw-Hill
Reliability

Hot Electron effects


Electromigration
Oxide failure
Bipolar transistor degradation
Package/Chip power dissipation (die temperature)
ESD(electrostatic discharge) protection

Microelectronic Circuit Design Chap 7 - 73


McGraw-Hill
What are the jobs in a IC design company?

 CEO
 CTO
 Marketing
 Architect
 Chip Lead
 Front-end (Digital Logic Designer)
 Synthesis Engineer
 Verification Engineer
 Analog Designer
 Back-end (Physical Design)
 CAD Tool Support
 System Engineer
 Software Engineer
 Test Engineer

Microelectronic Circuit Design Chap 7 - 74


McGraw-Hill
IC Market Space (3C’s)

Computer – Intel, IBM, ATI, nVidia, Via


• CPU (PC, Server, Workstation, Mainframe)
• Graphic Accelerator
• Chip Set (for PC,Server, …)
Communication – Motorola, Broadcom
• Wireless (Cellular phone, WLAN)
• Wired (LAN, Fiber backbone)
Consumer – Many
TV, Car, MP3, Toys, Game, …..

Microelectronic Circuit Design Chap 7 - 75


McGraw-Hill
Software Compilation

Microelectronic Circuit Design Chap 7 - 76


McGraw-Hill
Hardware Synthesis

Microelectronic Circuit Design Chap 7 - 77


McGraw-Hill
Modern SoC Design Flow

Market Definition / Customer Specification


System Design
Hardware Architecture Design
RTL Development
Verification
Synthesis
Physical Layout
System Qualification

Microelectronic Circuit Design Chap 7 - 78


McGraw-Hill
Digital Sub-Systems

Datapath operators
Memory elements
Control Structures

Microelectronic Circuit Design Chap 7 - 79


McGraw-Hill
Datapath operators

Datapath operators form a important subclass of


VLSI circuit design. N-bit data is generally
processed, which naturally leads to the ability to
use n identical circuits to implement the function.
Generally, data may be arranged to flow in one
direction, while any control signals are introduced
in an orthogonal direction to the dataflow.

Microelectronic Circuit Design Chap 7 - 80


McGraw-Hill
Datapath Operator Examples

Addition/Subtraction
Comparators
Binary Counters
Boolean Operations – ALUs
Multiplication
Shifter

Microelectronic Circuit Design Chap 7 - 81


McGraw-Hill
Microelectronic Circuit Design Chap 7 - 82
McGraw-Hill
Memory Elements

RAM
ROM
Registers
FIFO / LIFO / SIPO (serial-in parallel out)

Microelectronic Circuit Design Chap 7 - 83


McGraw-Hill
Microelectronic Circuit Design Chap 7 - 84
McGraw-Hill
Control

Hard-coded Finite State Machine


On-chip Micro-processor/micro-controller
Micro interface

Microelectronic Circuit Design Chap 7 - 85


McGraw-Hill
Microelectronic Circuit Design Chap 7 - 86
McGraw-Hill
End of Chapter 7

Microelectronic Circuit Design Chap 7 - 87


McGraw-Hill

You might also like