Top Banner
DESIGNING OF COMBINATIONAL LOGIC GATES IN CMOS www.ppttopics.com
49

DESIGNING OF COMBINATIONAL LOGIC GATES IN CMOS - PPT …ppttopics.com/ppt/static-cmos-ppt.pdf · Combinational Logic Circuit In Out State ... This is in contrast to the dynamic circuit

Apr 03, 2018

Download

Documents

phamkhanh
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: DESIGNING OF COMBINATIONAL LOGIC GATES IN CMOS - PPT …ppttopics.com/ppt/static-cmos-ppt.pdf · Combinational Logic Circuit In Out State ... This is in contrast to the dynamic circuit

DESIGNING OF COMBINATIONAL

LOGIC GATES IN CMOS

www.ppttopics.com

Page 2: DESIGNING OF COMBINATIONAL LOGIC GATES IN CMOS - PPT …ppttopics.com/ppt/static-cmos-ppt.pdf · Combinational Logic Circuit In Out State ... This is in contrast to the dynamic circuit

COMBINATIONAL VS. SEQUENTIAL LOGIC

CombinationalLogicCircuit

OutInCombinational

LogicCircuit

OutIn

State

Combinational Sequential

Output = f (In) Output = F(In, Previous In)

www.ppttopics.com

Page 3: DESIGNING OF COMBINATIONAL LOGIC GATES IN CMOS - PPT …ppttopics.com/ppt/static-cmos-ppt.pdf · Combinational Logic Circuit In Out State ... This is in contrast to the dynamic circuit

STATIC CMOS CIRCUIT

At every point in time (except during the switching

transients) each gate output is connected to either

V DD or V ss via a low-resistive path.

The outputs of the gates assume at all times the value

of the Boolean function, implemented by the circuit

This is in contrast to the dynamic circuit class, which

relies on temporary storage of signal values on the

capacitance of high impedance circuit nodes.

www.ppttopics.com

Page 4: DESIGNING OF COMBINATIONAL LOGIC GATES IN CMOS - PPT …ppttopics.com/ppt/static-cmos-ppt.pdf · Combinational Logic Circuit In Out State ... This is in contrast to the dynamic circuit

STATIC COMPLEMENTARY CMOS

F(In1,In2,…InN)

In1

In2

InN

In1

In2

InN

PUN

PDN

PMOS only

NMOS only

PUN and PDN are dual logic networks

www.ppttopics.com

Page 5: DESIGNING OF COMBINATIONAL LOGIC GATES IN CMOS - PPT …ppttopics.com/ppt/static-cmos-ppt.pdf · Combinational Logic Circuit In Out State ... This is in contrast to the dynamic circuit

NMOS TRANSISTORS

IN SERIES/PARALLEL CONNECTION

Transistors can be thought as a switch controlled by its gate signal

NMOS switch closes when switch control input is high

X Y

A B

Y = X if A and B

XY

A

B Y = X if A OR B

NMOS Transistors pass a “strong” 0 but a “weak” 1

www.ppttopics.com

Page 6: DESIGNING OF COMBINATIONAL LOGIC GATES IN CMOS - PPT …ppttopics.com/ppt/static-cmos-ppt.pdf · Combinational Logic Circuit In Out State ... This is in contrast to the dynamic circuit

PMOS TRANSISTORS

IN SERIES/PARALLEL CONNECTION

X Y

A B

Y = X if A AND B = A + B

XY

A

B Y = X if A OR B = AB

PMOS Transistors pass a “strong” 1 but a “weak” 0

PMOS switch closes when switch control input is low

www.ppttopics.com

Page 7: DESIGNING OF COMBINATIONAL LOGIC GATES IN CMOS - PPT …ppttopics.com/ppt/static-cmos-ppt.pdf · Combinational Logic Circuit In Out State ... This is in contrast to the dynamic circuit

THRESHOLD DROPS

VDD 0 PDN

CL VDD CL

S

S D

D

VGS

0 VDD

PUN

0 VDD - VTn

VDD |VTp|

VDD

0 VDD

CL

S

D

CL

VDD

VDD

S

D

VGS

www.ppttopics.com

Page 8: DESIGNING OF COMBINATIONAL LOGIC GATES IN CMOS - PPT …ppttopics.com/ppt/static-cmos-ppt.pdf · Combinational Logic Circuit In Out State ... This is in contrast to the dynamic circuit

COMPLEMENTARY CMOS LOGIC STYLE

www.ppttopics.com

Page 9: DESIGNING OF COMBINATIONAL LOGIC GATES IN CMOS - PPT …ppttopics.com/ppt/static-cmos-ppt.pdf · Combinational Logic Circuit In Out State ... This is in contrast to the dynamic circuit

www.ppttopics.com

Page 10: DESIGNING OF COMBINATIONAL LOGIC GATES IN CMOS - PPT …ppttopics.com/ppt/static-cmos-ppt.pdf · Combinational Logic Circuit In Out State ... This is in contrast to the dynamic circuit

COMPLEX CMOS GATE

D

A

B C

D

A

B

C

OUT = D + A • (B + C)

www.ppttopics.com

Page 11: DESIGNING OF COMBINATIONAL LOGIC GATES IN CMOS - PPT …ppttopics.com/ppt/static-cmos-ppt.pdf · Combinational Logic Circuit In Out State ... This is in contrast to the dynamic circuit

CONSTRUCTING A COMPLEX GATE

C

(a) pull-down network

SN1 SN4

SN2

SN3D

FF

A

DB

C

D

F

A

B

C

(b) Deriving the pull-up networkhierarchically by identifyingsub-nets

D

A

A

B

C

VDD VDD

B

(c) complete gate

www.ppttopics.com

Page 12: DESIGNING OF COMBINATIONAL LOGIC GATES IN CMOS - PPT …ppttopics.com/ppt/static-cmos-ppt.pdf · Combinational Logic Circuit In Out State ... This is in contrast to the dynamic circuit

C

A B

X = C • (A + B)

B

A

C

i

j

A B C

Logic Graph

j

VDD X

X

i

GND

A B

C

PUN

PDN

www.ppttopics.com

Page 13: DESIGNING OF COMBINATIONAL LOGIC GATES IN CMOS - PPT …ppttopics.com/ppt/static-cmos-ppt.pdf · Combinational Logic Circuit In Out State ... This is in contrast to the dynamic circuit

C

A B

X = (A+B)•(C+D)

B

A

D

VDD X

X

GND

A B

C

PUN

PDN

C

D

D

A B C D

www.ppttopics.com

Page 14: DESIGNING OF COMBINATIONAL LOGIC GATES IN CMOS - PPT …ppttopics.com/ppt/static-cmos-ppt.pdf · Combinational Logic Circuit In Out State ... This is in contrast to the dynamic circuit

EXAMPLE: X = AB+CD

GND

x

a

b c

d

VDDx

GND

x

a

b c

d

VDDx

(a) Logic graphs for (ab+cd) (b) Euler Paths {a b c d}

a c d

x

VDD

GND

(c) stick diagram for ordering {a b c d}

b

www.ppttopics.com

Page 15: DESIGNING OF COMBINATIONAL LOGIC GATES IN CMOS - PPT …ppttopics.com/ppt/static-cmos-ppt.pdf · Combinational Logic Circuit In Out State ... This is in contrast to the dynamic circuit

PROPERTIES OF COMPLEMENTARY CMOS

GATES:

High noise margins :

V OH and V OL are at V DD and GND , respectively.

No static power consumption :

There never exists a direct path between V DD and

V SS ( GND ) in steady-state mode .

Comparable rise and fall times:

(under appropriate sizing conditions)

www.ppttopics.com

Page 16: DESIGNING OF COMBINATIONAL LOGIC GATES IN CMOS - PPT …ppttopics.com/ppt/static-cmos-ppt.pdf · Combinational Logic Circuit In Out State ... This is in contrast to the dynamic circuit

SWITCH DELAY MODEL

A

Req

A

Rp

A

Rp

A

Rn CL

A

CL

B

Rn

A

Rp

B

Rp

A

Rn Cint

B

Rp

A

Rp

A

Rn

B

Rn CL

Cint

INV

www.ppttopics.com

Page 17: DESIGNING OF COMBINATIONAL LOGIC GATES IN CMOS - PPT …ppttopics.com/ppt/static-cmos-ppt.pdf · Combinational Logic Circuit In Out State ... This is in contrast to the dynamic circuit

INPUT PATTERN EFFECTS ON DELAY

• Delay is dependent on the pattern of inputs

• Low to high transition

– both inputs go low

• delay is 0.69 Rp/2 CL

– one input goes low

• delay is 0.69 Rp CL

• High to low transition

– both inputs go high

• delay is 0.69 2Rn CL

CL

B

Rn

A

Rp

B

Rp

A

Rn Cint

www.ppttopics.com

Page 18: DESIGNING OF COMBINATIONAL LOGIC GATES IN CMOS - PPT …ppttopics.com/ppt/static-cmos-ppt.pdf · Combinational Logic Circuit In Out State ... This is in contrast to the dynamic circuit

TRANSISTOR SIZING

CL

B

Rn

A

Rp

B

Rp

A

Rn Cint

B

Rp

A

Rp

A

Rn

B

Rn CL

Cint

2

2

2 2

1 1

4

4

www.ppttopics.com

Page 19: DESIGNING OF COMBINATIONAL LOGIC GATES IN CMOS - PPT …ppttopics.com/ppt/static-cmos-ppt.pdf · Combinational Logic Circuit In Out State ... This is in contrast to the dynamic circuit

FAN-IN CONSIDERATIONS

D C B A

D

C

B

A CL

C3

C2

C1

Distributed RC model

(Elmore delay)

tpHL = 0.69 Reqn(C1+2C2+3C3+4CL)

Propagation delay deteriorates rapidly as a

function of fan-in – quadratically in the worst

case.

www.ppttopics.com

Page 20: DESIGNING OF COMBINATIONAL LOGIC GATES IN CMOS - PPT …ppttopics.com/ppt/static-cmos-ppt.pdf · Combinational Logic Circuit In Out State ... This is in contrast to the dynamic circuit

Fast Complex Gates:

Design Technique 1

• Transistor sizing

– as long as fan-out capacitance dominates

• Progressive sizing

InN CL

C3

C2

C1 In1

In2

In3

M1

M2

M3

MN

Distributed RC line

M1 > M2 > M3 > … > MN

(the fet closest to the

output is the smallest)

www.ppttopics.com

Page 21: DESIGNING OF COMBINATIONAL LOGIC GATES IN CMOS - PPT …ppttopics.com/ppt/static-cmos-ppt.pdf · Combinational Logic Circuit In Out State ... This is in contrast to the dynamic circuit

FAST COMPLEX GATES:

DESIGN TECHNIQUE 2

Transistor ordering

C2

C1 In1

In2

In3

M1

M2

M3 CL

C2

C1 In3

In2

In1

M1

M2

M3 CL

critical path critical path

charged 1

01 charged

charged 1

delay determined by time to

discharge CL, C1 and C2

delay determined by time to

discharge CL

1

1

01

www.ppttopics.com

Page 22: DESIGNING OF COMBINATIONAL LOGIC GATES IN CMOS - PPT …ppttopics.com/ppt/static-cmos-ppt.pdf · Combinational Logic Circuit In Out State ... This is in contrast to the dynamic circuit

FAST COMPLEX GATES:

DESIGN TECHNIQUE 3

F = ABCDEFGH

www.ppttopics.com

Page 23: DESIGNING OF COMBINATIONAL LOGIC GATES IN CMOS - PPT …ppttopics.com/ppt/static-cmos-ppt.pdf · Combinational Logic Circuit In Out State ... This is in contrast to the dynamic circuit

Delay in a Logic Gate

Gate delay:

d = h + p

effort delay intrinsic delay

Effort delay:

h = g f

logical effort effective fanout = Cout/Cin

Logical effort is a function of topology, independent of sizing

Effective fanout (electrical effort) is a function of load/gate size

www.ppttopics.com

Page 24: DESIGNING OF COMBINATIONAL LOGIC GATES IN CMOS - PPT …ppttopics.com/ppt/static-cmos-ppt.pdf · Combinational Logic Circuit In Out State ... This is in contrast to the dynamic circuit

LOGICAL EFFORT

fgp

C

CCRkDelay

in

Lunitunit

1

g – logical effort ,which is defined as how much more

input capacitance a gate presents to deliver the same

output current as inverter.

P-intrincsic delay:ratio of intrinsic delays of gate and

inverter

F-effective fanout

www.ppttopics.com

Page 25: DESIGNING OF COMBINATIONAL LOGIC GATES IN CMOS - PPT …ppttopics.com/ppt/static-cmos-ppt.pdf · Combinational Logic Circuit In Out State ... This is in contrast to the dynamic circuit

EXAMPLES OF LOGICAL EFFORT

B

A

A B

F

VDDVDD

A B

A

B

F

VDD

A

A

F

1

2 2 2

2

2

1 1

4

4

Inverter 2-input NAND 2-input NOR

g = 1 g = 4/3 g = 5/3

www.ppttopics.com

Page 26: DESIGNING OF COMBINATIONAL LOGIC GATES IN CMOS - PPT …ppttopics.com/ppt/static-cmos-ppt.pdf · Combinational Logic Circuit In Out State ... This is in contrast to the dynamic circuit

LOGICAL EFFORT OF GATES

Intrinsic�Delay

EffortDelay

1 2 3 4 5

Fanout f

1

2

3

4

5

Inverte

r:g =

1; p = 1

2-input N

AND: g = 4

/3; p =

2N

orm

aliz

ed D

elay

www.ppttopics.com

Page 27: DESIGNING OF COMBINATIONAL LOGIC GATES IN CMOS - PPT …ppttopics.com/ppt/static-cmos-ppt.pdf · Combinational Logic Circuit In Out State ... This is in contrast to the dynamic circuit

LOGICAL EFFORT OF COMMON LOGIC GATES

www.ppttopics.com

Page 28: DESIGNING OF COMBINATIONAL LOGIC GATES IN CMOS - PPT …ppttopics.com/ppt/static-cmos-ppt.pdf · Combinational Logic Circuit In Out State ... This is in contrast to the dynamic circuit

MULTISTAGE NETWORKS

N

i

iii fgpDelay1

Stage effort: hi = gifi

Path electrical effort: F = Cout/Cin

Path logical effort: G = g1g2…gN

Branching effort: B = b1b2…bN

Path effort: H = GFB

Path delay D = Sdi = Spi + Shi

www.ppttopics.com

Page 29: DESIGNING OF COMBINATIONAL LOGIC GATES IN CMOS - PPT …ppttopics.com/ppt/static-cmos-ppt.pdf · Combinational Logic Circuit In Out State ... This is in contrast to the dynamic circuit

BRANCHING EFFORT

Branching effort:

pathon

pathoffpathon

C

CCb

www.ppttopics.com

Page 30: DESIGNING OF COMBINATIONAL LOGIC GATES IN CMOS - PPT …ppttopics.com/ppt/static-cmos-ppt.pdf · Combinational Logic Circuit In Out State ... This is in contrast to the dynamic circuit

OPTIMUM EFFORT PER STAGE

HhN

When each stage bears the same effort:

N Hh

PNHpfgD N

iii /1ˆ

Minimum path delay

Effective fanout of each stage: ii ghf

Stage efforts: g1f1 = g2f2 = … = gNfN

www.ppttopics.com

Page 31: DESIGNING OF COMBINATIONAL LOGIC GATES IN CMOS - PPT …ppttopics.com/ppt/static-cmos-ppt.pdf · Combinational Logic Circuit In Out State ... This is in contrast to the dynamic circuit

Example: Optimize Path

g = 1

f = a g = 5/3

f = b/a

g = 5/3

f = c/b

g = 1

f = 5/c

1a

b c

5

www.ppttopics.com

Page 32: DESIGNING OF COMBINATIONAL LOGIC GATES IN CMOS - PPT …ppttopics.com/ppt/static-cmos-ppt.pdf · Combinational Logic Circuit In Out State ... This is in contrast to the dynamic circuit

EXAMPLE – 8-INPUT AND

www.ppttopics.com

Page 33: DESIGNING OF COMBINATIONAL LOGIC GATES IN CMOS - PPT …ppttopics.com/ppt/static-cmos-ppt.pdf · Combinational Logic Circuit In Out State ... This is in contrast to the dynamic circuit

RATIOED LOGIC

www.ppttopics.com

Page 34: DESIGNING OF COMBINATIONAL LOGIC GATES IN CMOS - PPT …ppttopics.com/ppt/static-cmos-ppt.pdf · Combinational Logic Circuit In Out State ... This is in contrast to the dynamic circuit

IMPROVED LOADS

V DD

V SS

PDN1

Out

V DD

V SS

PDN2

Out

A A B B

M1 M2

Differential Cascode Voltage Switch Logic (DCVSL)

www.ppttopics.com

Page 35: DESIGNING OF COMBINATIONAL LOGIC GATES IN CMOS - PPT …ppttopics.com/ppt/static-cmos-ppt.pdf · Combinational Logic Circuit In Out State ... This is in contrast to the dynamic circuit

DCVSL EXAMPLE

B

A A

B B B

Out

Out

XOR-NXOR gate

www.ppttopics.com

Page 36: DESIGNING OF COMBINATIONAL LOGIC GATES IN CMOS - PPT …ppttopics.com/ppt/static-cmos-ppt.pdf · Combinational Logic Circuit In Out State ... This is in contrast to the dynamic circuit

PASS-TRANSISTOR LOGIC In

puts

Switch

Network

OutOut

A

B

B

B

• N transistors

• No static consumption

Pass transistors require low switching energy to charge up a node

due to the reduced voltage swing

www.ppttopics.com

Page 37: DESIGNING OF COMBINATIONAL LOGIC GATES IN CMOS - PPT …ppttopics.com/ppt/static-cmos-ppt.pdf · Combinational Logic Circuit In Out State ... This is in contrast to the dynamic circuit

EXAMPLE: AND GATE

B

B

A

F = AB

0

www.ppttopics.com

Page 38: DESIGNING OF COMBINATIONAL LOGIC GATES IN CMOS - PPT …ppttopics.com/ppt/static-cmos-ppt.pdf · Combinational Logic Circuit In Out State ... This is in contrast to the dynamic circuit

DIFFERENTIAL PASS TRANSISTOR LOGIC

A

B

A

B

B B B B

A

B

A

B

F=AB

F=AB

F=A+B

F=A+B

B B

A

A

A

A

F=AÝ

F=AÝ

OR/NOR EXOR/NEXORAND/NAND

F

F

Pass-Transistor

Network

Pass-Transistor

Network

A

ABB

A

ABB

Inverse

(a)

(b)

Page 39: DESIGNING OF COMBINATIONAL LOGIC GATES IN CMOS - PPT …ppttopics.com/ppt/static-cmos-ppt.pdf · Combinational Logic Circuit In Out State ... This is in contrast to the dynamic circuit

NMOS ONLY LOGIC:

LEVEL RESTORING TRANSISTOR

M 2

M 1

M n

M r

Out A

B

V DD

V DD Level Restorer

X

• Advantage: Full Swing

• Ratio problem

www.ppttopics.com

Page 40: DESIGNING OF COMBINATIONAL LOGIC GATES IN CMOS - PPT …ppttopics.com/ppt/static-cmos-ppt.pdf · Combinational Logic Circuit In Out State ... This is in contrast to the dynamic circuit

TRANSMISSION GATE

A B

C

C

A B

C

C

B

C L

C = 0 V

A = 2.5 V

C = 2.5 V

www.ppttopics.com

Page 41: DESIGNING OF COMBINATIONAL LOGIC GATES IN CMOS - PPT …ppttopics.com/ppt/static-cmos-ppt.pdf · Combinational Logic Circuit In Out State ... This is in contrast to the dynamic circuit

TRANSMISSION GATE BASED

MULTIPLEXER

AM2

M1

B

S

S

S F

VDD

www.ppttopics.com

Page 42: DESIGNING OF COMBINATIONAL LOGIC GATES IN CMOS - PPT …ppttopics.com/ppt/static-cmos-ppt.pdf · Combinational Logic Circuit In Out State ... This is in contrast to the dynamic circuit

TRANSMISSION GATE XOR

A

B

F

B

A

B

B

M1

M2

M3/M4

www.ppttopics.com

Page 43: DESIGNING OF COMBINATIONAL LOGIC GATES IN CMOS - PPT …ppttopics.com/ppt/static-cmos-ppt.pdf · Combinational Logic Circuit In Out State ... This is in contrast to the dynamic circuit

Vout

0 V

2.5 V

2.5 VRn

Rp

0.0 1.0 2.00

10

20

30

Vout, V

Resis

tance

, oh

ms

Rn

Rp

Rn || Rp

www.ppttopics.com

Page 44: DESIGNING OF COMBINATIONAL LOGIC GATES IN CMOS - PPT …ppttopics.com/ppt/static-cmos-ppt.pdf · Combinational Logic Circuit In Out State ... This is in contrast to the dynamic circuit

DELAY IN TRANSMISSION GATE NETWORKS

V 1 V i-1

C

2.5 2.5

0 0

V i V i+1

C C

2.5

0

V n-1 V n

C C

2.5

0

In

V 1 V i V i+1

C

V n-1 V n

C C

In

R eq R eq R eq R eq

C C

(a)

(b)

C

R eq R eq

C C

R eq

C C

R eq R eq

C C

R eq

C

In

m

(c)

www.ppttopics.com

Page 45: DESIGNING OF COMBINATIONAL LOGIC GATES IN CMOS - PPT …ppttopics.com/ppt/static-cmos-ppt.pdf · Combinational Logic Circuit In Out State ... This is in contrast to the dynamic circuit

www.ppttopics.com

Page 46: DESIGNING OF COMBINATIONAL LOGIC GATES IN CMOS - PPT …ppttopics.com/ppt/static-cmos-ppt.pdf · Combinational Logic Circuit In Out State ... This is in contrast to the dynamic circuit

PROS AND CONS:

Pros:

Robustness

good performance

No Static Power Dissipation

Cons:

Requires 2N transistors with a fan in of N

www.ppttopics.com

Page 47: DESIGNING OF COMBINATIONAL LOGIC GATES IN CMOS - PPT …ppttopics.com/ppt/static-cmos-ppt.pdf · Combinational Logic Circuit In Out State ... This is in contrast to the dynamic circuit

CONCLUSION:

Static CMOS circuits can be used for devices

that have no extreme area,complexity or speed

constraints

www.ppttopics.com

Page 48: DESIGNING OF COMBINATIONAL LOGIC GATES IN CMOS - PPT …ppttopics.com/ppt/static-cmos-ppt.pdf · Combinational Logic Circuit In Out State ... This is in contrast to the dynamic circuit

REFERENCES:

1.DIGITAL INTEGRATED CIRCUTS BY

JAN RABAEY,

ANANTHA CHANDRAKASAN,

BORIVOJE NIKOLIC

2.http://bwrc.eecs.berkeley.edu/ICbook

www.ppttopics.com

Page 49: DESIGNING OF COMBINATIONAL LOGIC GATES IN CMOS - PPT …ppttopics.com/ppt/static-cmos-ppt.pdf · Combinational Logic Circuit In Out State ... This is in contrast to the dynamic circuit

THANK U

www.ppttopics.com