+ All Categories
Home > Documents > Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design...

Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design...

Date post: 07-Sep-2018
Category:
Upload: trankhanh
View: 228 times
Download: 1 times
Share this document with a friend
98
VLSI Design Chih-Cheng Hsieh Combinational Circuit Design CHAPTER 5
Transcript
Page 1: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Combinational Circuit Design

CHAPTER 5

Page 2: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

2

1. Static CMOS

2. Ratioed Circuits

3. Cascode Voltage Switch Logic

4. Dynamic Circuits

5. Pass-Transistor Circuits

6. Circuit Pitfalls

Outline

Page 3: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Static CMOS

• Bubble Pushing

• Compound Gates

• Logical Effort Example

• Input Ordering

• Asymmetric Gates

• Skewed Gates

• Best P/N ratio

3

Page 4: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Example 1 module mux(input s, d0, d1,

output y);

assign y = s ? d1 : d0;

endmodule

1) Sketch a design using AND, OR, and NOT gates.

4

D0S

D1S

Y

Page 5: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Example 2

2) Sketch a design using NAND, NOR, and NOT gates. Assume ~S is available.

5

Y

D0S

D1S

Page 6: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Bubble Pushing

• Start with network of AND / OR gates

• Convert to NAND / NOR + inverters

• Push bubbles around to simplify logic

– Remember DeMorgan’s Law

6

A B A B A B A B

Page 7: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Bubble Pushing

• Y = AB + CD

7

Y Y

Y Y

(a) (b)

(c) (d)

A

B

C

D

A

B

C

D

A

B

C

D

A

B

C

D

Page 8: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Example 3

3) Sketch a design using one compound gate and one NOT gate. Assume ~S is available.

8

Y

D0SD1S

Page 9: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Compound Gates

• Logical Effort of compound gates

9

ABCD

Y

ABC

Y

A

BC

C

A B

A

B

C

D

A

C

B

D

2

21

4

44

2

2 2

2

4

4 4

4

gA = 6/3

gB = 6/3

gC = 5/3

p = 7/3

gA = 6/3

gB = 6/3

gC = 6/3

p = 12/3

gD = 6/3

YA

A Y

gA = 3/3

p = 3/3

2

1YY

unit inverter AOI21 AOI22

A

C

DE

Y

B

Y

B C

A

D

E

A

B

C

D E

gA = 5/3

gB = 8/3

gC = 8/3

gD = 8/3

2

2 2

22

6

6

6 6

3

p = 16/3

gE = 8/3

Complex AOI

Y A B C Y A B C D Y A B C D E Y A

Page 10: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Example 4

• The multiplexer has a maximum input capacitance of 16 units on each input. It must drive a load of 160 units. Estimate the delay of the NAND and compound gate designs.

10

Y

D0S

D1S

Y

D0SD1S

H = 160 / 16 = 10

B = 1

N = 2

Page 11: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

NAND Solution 11

Y

D0S

D1S

2 2 4

(4 / 3) (4 / 3) 16 / 9

160 / 9

ˆ 4.2

ˆ 12.4

N

P

G

F GBH

f F

D Nf P

Y

D0S

D1S

DeMorgan’s Law

Page 12: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Compound Solution 12

4 1 5

(6 / 3) (1) 2

20

ˆ 4.5

ˆ 14

N

P

G

F GBH

f F

D Nf P

Y

D0SD1S

AOI22 INV +

Page 13: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Example 5

• Annotate your designs with transistor sizes that achieve this delay.

13

6

6 6

6

10

10Y

24

12

10

10

8

8

88

8

8

88

25

25

2525Y

16 16160 * (4/3) / 4.2 = 50 160 * 1 / 4.5 = 36

YY

NAND solution Compound solution

Page 14: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Input Order

• Our parasitic delay model was too simple

– Calculate parasitic delay for Y falling

• If A arrives latest? 2

• If B arrives latest? 2.33

14

6C

2C2

2

22

B

A

x

Y

Page 15: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Inner & Outer Inputs

• Outer input is closest to rail (B)

• Inner input is closest to output (A)

• If input arrival time is known

– Connect latest input to inner terminal

15

2

2

22

B

A

Y

Page 16: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

VTC is Data-Dependent • The threshold voltage of M2 is higher than M1 due to body effect ()

since VSB of M2 is not zero (when VB = 0) due to the presence of Cint

VTn1 = VTn0

A

B

F= A • B

A B

M1

M2

M3 M4

Cint

VGS1 = VB

VGS2 = VA –VDS1

0.5/0.25 NMOS 0.75 /0.25 PMOS

D

D

S

S

weaker PUN

VTn2 = VTn0 + ((|2F| + Vint) - |2F|)

16

Page 17: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Symmetric Gates

• Inputs can be made perfectly symmetric

17

A

B

Y2

1

1

2

1

1

Page 18: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Asymmetric Gates

• Asymmetric gates favor one input over another

• Ex: suppose input A of a NAND gate is most critical

– Use smaller transistor on A (less capacitance)

– Boost size of noncritical input

– So total resistance is same

– gA = 10/9

– gB = 2

– gtotal = gA + gB = 28/9

• Asymmetric gate approaches g = 1 on critical input

• But total logical effort goes up

18

A

resetY

4/3

2

reset

A

Y

A

resetY

4

4/3

22

reset

A

Y

Page 19: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Skewed Gates

• Skewed gates favor one edge over another • Ex: suppose rising output of inverter is most critical

– Downsize noncritical nMOS transistor

• Calculate logical effort by comparing to unskewed inverter with same effective R on that edge. – gu = 2.5 / 3 = 5/6 – gd = 2.5 / 1.5 = 5/3

19

1/2

2A Y

1

2A Y

1/2

1A Y

HI-skew

inverter

unskewed inverter

(equal rise resistance)

unskewed inverter

(equal fall resistance)

Page 20: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

HI- and LO-Skew

• Def: Logical effort of a skewed gate for a particular transition is the ratio of the input capacitance of that gate to the input capacitance of an unskewed inverter delivering the same output current for the same transition.

• Skewed gates reduce size of noncritical transistors

– HI-skew gates favor rising output (small nMOS)

– LO-skew gates favor falling output (small pMOS)

• Logical effort is smaller for favored direction

• But larger for the other direction

20

Page 21: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Catalog of Skewed Gates 21

1/2

2A Y

Inverter

1

1

22

B

AY

B

A

NAND2 NOR2

1/21/2

4

4

HI-skew

LO-skew1

1A Y

2

2

11

B

AY

B

A

11

2

2

gu = 5/6

gd = 5/3

gavg = 5/4

gu = 4/3

gd = 2/3

gavg = 1

gu = 1

gd = 2

gavg = 3/2

gu = 2

gd = 1

gavg = 3/2

gu = 3/2

gd = 3

gavg = 9/4

gu = 2

gd = 1

gavg = 3/2

Y

Y

1

2A Y

2

2

22

B

AY

B

A

11

4

4

unskewedgu = 1

gd = 1

gavg = 1

gu = 4/3

gd = 4/3

gavg = 4/3

gu = 5/3

gd = 5/3

gavg = 5/3

Y

1/2

2A Y

Inverter

1

1

22

B

AY

B

A

NAND2 NOR2

1/21/2

4

4

HI-skew

LO-skew1

1A Y

2

2

11

B

AY

B

A

11

2

2

gu = 5/6

gd = 5/3

gavg = 5/4

gu = 4/3

gd = 2/3

gavg = 1

gu =

gd =

gavg =

gu =

gd =

gavg =

gu =

gd =

gavg =

gu =

gd =

gavg =

Y

Y

1

2A Y

2

2

22

B

AY

B

A

11

4

4

unskewedgu = 1

gd = 1

gavg = 1

gu = 4/3

gd = 4/3

gavg = 4/3

gu = 5/3

gd = 5/3

gavg = 5/3

Y

1/2

2A Y

Inverter

B

AY

B

A

NAND2 NOR2

HI-skew

LO-skew1

1A Y

B

AY

B

A

gu = 5/6

gd = 5/3

gavg = 5/4

gu = 4/3

gd = 2/3

gavg = 1

gu =

gd =

gavg =

gu =

gd =

gavg =

gu =

gd =

gavg =

gu =

gd =

gavg =

Y

Y

1

2A Y

2

2

22

B

AY

B

A

11

4

4

unskewedgu = 1

gd = 1

gavg = 1

gu = 4/3

gd = 4/3

gavg = 4/3

gu = 5/3

gd = 5/3

gavg = 5/3

Y

Page 22: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Asymmetric Skew

• Combine asymmetric and skewed gates

– Downsize noncritical transistor on unimportant input

– Reduces parasitic delay for critical input

22

A

resetY

4

4/3

21

reset

A

Y

10/9 100/99 ~1

10 100 ∞

Page 23: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Best P/N Ratio

• We have selected P/N ratio for unit rise and fall resistance ( = 2-3 for an inverter).

• Alternative: choose ratio for least average delay

• Ex: inverter

– Delay driving identical inverter

– tpdf = (P+1)

– tpdr = (P+1)(/P)

– tpd = (P+1)(1+/P)/2 = (P + 1 + + /P)/2

– Differentiate tpd w.r.t. P

– Least delay for P =

23

1

PA

Page 24: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

P/N Ratios

• In general, best P/N ratio is sqrt of that giving equal delay.

– Only improves average delay slightly for inverters

– But significantly decreases area and power

24

Inverter NAND2 NOR2

1

1.414A Y

2

2

22

B

AY

B

A

11

2

2

fastest

P/N ratio gu = 1.15

gd = 0.81

gavg = 0.98

gu = 4/3

gd = 4/3

gavg = 4/3

gu = 2

gd = 1

gavg = 3/2

Y

? ?

Page 25: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Observations

• For speed:

– NAND vs. NOR

– Many simple stages vs. fewer high fan-in stages

– Latest-arriving input

• For area and power:

– Many simple stages vs. fewer high fan-in stages

25

Page 26: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

26

1. Static CMOS

2. Ratioed Circuits

3. Cascode Voltage Switch Logic

4. Dynamic Circuits

5. Pass-Transistor Circuits

6. Circuit Pitfalls

Outline

Page 27: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Introduction

• What makes a circuit fast?

– I = C dV/dt -> tpd (C/I) DV

– low capacitance

– high current

– small swing

• Logical effort is proportional to C/I

• pMOS are the enemy!

– High capacitance for a given current

• Can we take the pMOS capacitance off the input?

• Various circuit families try to do this…

27

B

A

11

4

4

Y

Page 28: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Pseudo-nMOS

• In the old days, nMOS processes had no pMOS

– Instead, use pull-up transistor that is always ON

• In CMOS, use a pMOS that is always ON

– Ratio issue, Make pMOS about ¼ effective strength

(⅟₂ effective width) of pulldown network

28

Vout

Vin

16/2

P/2

Ids

load

0 0.3 0.6 0.9 1.2 1.5 1.8

0

0.3

0.6

0.9

1.2

1.5

1.8

P = 24

P = 4

P = 14

Vin

Vout

Page 29: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Pseudo-nMOS Gates

• Design for unit current on output to compare with unit inverter.

• Choose pMOS size between 1/3 ~ 1/6 the effective width (pick 1/3)

29

Inverter NAND2 NOR2

4/3

2/3

AY

8/3

8/3

2/3

B

AY

A B 4/34/3

2/3

gu = 4/3

gd = 4/9

gavg = 8/9

pu = 6/3

pd = 6/9

pavg = 12/9

Y

gu = 8/3

gd = 8/9

gavg = 16/9

pu = 10/3

pd = 10/9

pavg = 20/9

gu = 4/3

gd = 4/9

gavg = 8/9

pu = 10/3

pd = 10/9

pavg = 20/9

f

inputs

Y

Inverter NAND2 NOR2

4/3

2/3

AY

8/3

8/3

2/3

B

AY

A B 4/34/3

2/3

gu = 4/3

gd = 4/9

gavg = 8/9

pu =

pd =

pavg =

Y

gu = 8/3

gd = 8/9

gavg = 16/9

pu =

pd =

pavg =

gu = 4/3

gd = 4/9

gavg = 8/9

pu =

pd =

pavg =

Inverter NAND2 NOR2

4/3

2/3

AY

8/3

8/3

2/3

B

AY

A B 4/34/3

2/3

gu =

gd =

gavg =

pu =

pd =

pavg =

Y

gu =

gd =

gavg =

pu =

pd =

pavg =

gu =

gd =

gavg =

pu =

pd =

pavg =

Inverter : Iu = (1/3)I, Cinv-u = 1, gu = (4/3)/1, pu = (2/3+4/3)/1

Id = I, Cinv-d = 3, gd = (4/3)/3, pd = (2/3+4/3)/3

Page 30: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Pseudo-nMOS Design

• Ex: Design a k-input AND gate using INV+ seudo-nMOS NOR. Find the delay driving a fanout of H

• G =

• F =

• P =

• N =

• D =

30

In1

Ink

Y

Pseudo-nMOS

1

1H

4 2 8 13

3 9

H k

1 * 8/9 = 8/9

GBH = 8H/9

1 + (4+8k)/9 = (8k+13)/9

2

NF1/N + P =

Page 31: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Pseudo-nMOS Power

• Pseudo-nMOS draws power whenever Y = 0

– Called static power P = I•VDD

– A few mA / gate * 1M gates would be a problem

– This is why nMOS went extinct!

• Use pseudo-nMOS sparingly for wide NORs

• Turn off pMOS when not in use

31

A B

Y

C

en

Page 32: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

32

1. Static CMOS

2. Ratioed Circuits

3. Cascode Voltage Switch Logic

4. Dynamic Circuits

5. Pass-Transistor Circuits

6. Circuit Pitfalls

Outline

Page 33: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Cascode Voltage Switch Logic

• Differential Cascode Voltage Switching Logic (DCVS, DCVSL)

– Seeks the performance of ratioed circuits without the static power consumption

– Use both true and complementary input signals and compute both true and complementary outputs

33

OFF

OFF ON

ON 1 0 0 1 OFF ON

ON OFF

Page 34: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Cascode Voltage Switch Logic 34

4-input XOR/XNOR gate 2-input AND/NAND gate

Page 35: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

35

1. Static CMOS

2. Ratioed Circuits

3. Cascode Voltage Switch Logic

4. Dynamic Circuits

5. Pass-Transistor Circuits

6. Circuit Pitfalls

Outline

Page 36: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Dynamic CMOS

• In static circuits at every point in time (except when switching) the output is connected to either GND or VDD via a low resistance path.

– fan-in of N requires 2N devices

• Dynamic circuits rely on the temporary storage of signal values on the capacitance of high impedance nodes.

– requires only N + 2 transistors

– takes a sequence of precharge and conditional evaluation phases to realize logic functions

36

Page 37: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Dynamic Logic

• Dynamic gates uses a clocked pMOS pullup

• Two modes: precharge and evaluate

37

1

2A Y

4/3

2/3

AY

1

1

AY

Static Pseudo-nMOS Dynamic

Precharge Evaluate

Y

Precharge

Page 38: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

The Foot

• What if pulldown network is ON during precharge?

• Use series evaluation transistor to prevent fight.

38

AY

foot

precharge transistor Y

inputs

Y

inputs

footed unfooted

f f

Page 39: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Logical Effort 39

gd = 1/3

pd = 2/3

gd = 2/3

pd = 3/3

gd = 1/3

pd = 3/3

gd = 2/3

pd = 3/3

gd = 3/3

pd = 4/3

gd = 2/3

pd = 5/3

Inverter NAND2 NOR2

1

1

AY

2

2

1

B

AY

A B 11

1

gd =

pd =

gd =

pd =

gd =

pd =

Y

2

1

AY

3

3

1

B

AY

A B 22

1

gd =

pd =

gd =

pd =

gd =

pd =

Y

footed

unfooted

32 2

Page 40: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Conditions on Output

• Once the output of a dynamic gate is discharged, it cannot be charged again until the next precharge operation.

• Inputs to the gate can make at most one transition during evaluation.

• Output can be in the high impedance state during and after evaluation (PDN off), state is stored on CL

40

Page 41: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Properties of Dynamic Gates

• Logic function is implemented by the PDN only – number of transistors is N + 2 (versus 2N for static complementary CMOS)

– should be smaller in area than static complementary CMOS

• Full swing outputs (VOL = GND and VOH = VDD)

• Nonratioed - sizing of the devices is not important for proper functioning (only for performance)

• Faster switching speeds – reduced load capacitance due to lower number of transistors per gate (Cint)

so a reduced logical effort

– reduced load capacitance due to smaller fan-out (Cext)

– no Isc, so all the current provided by PDN goes into discharging CL

– Ignoring the influence of precharge time on the switching speed of the gate, tpLH = 0 but the presence of the evaluation transistor slows down the tpHL

41

Page 42: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Properties of Dynamic Gates, con’t

• Power dissipation should be better – consumes only dynamic power – no short circuit power consumption since

the pull-up path is not on when evaluating

– lower CL- both Cint (since there are fewer transistors connected to the drain output) and Cext (since there the output load is one per connected gate, not two)

– by construction can have at most one transition per cycle – no glitching

• But power dissipation can be significantly higher due to – higher transition probabilities

– extra load on CLK

• PDN starts to work as soon as the input signals exceed VTn, so set VM, VIH and VIL all equal to VTn – low noise margin (NML)

• Needs a precharge clock

42

Page 43: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Dynamic Behavior

#Trns VOH VOL VM NMH NML tpHL tpLH tp

6 2.5V 0V VTn 2.5-VTn VTn 110ps 0ns 83ps

CLK

CLK

In1

In2

In3

In4

Out

In &

CLK Out

Time, ns

Evaluate

Precharge

43

Page 44: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Gate Parameters are Time Independent • The amount by which the output voltage drops is a strong

function of the input voltage and the available evaluation time.

– Noise needed to corrupt the signal has to be larger if the evaluation time is short – i.e., the switching threshold is truly time independent.

VG

CLK

Vout (VG=0.55) Vout (VG=0.5)

Vout (VG=0.45)

44

Page 45: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Power Consumption of Dynamic Gate

In1

In2 PDN

In3

Me

Mp

CLK

CLK

Out

CL

Power only dissipated when previous Out = 0

45

Page 46: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Dynamic Power is Data Dependent

A B Out

0 0 1

0 1 0

1 0 0

1 1 0

Dynamic 2-input NOR Gate

Assume signal probabilities PA=1 = 1/2 PB=1 = 1/2

Then transition probability P01 = Pout=0 x Pout=1

= 3/4 x 1 = 3/4

Switching activity can be higher in dynamic gates! P01 = Pout=0

46

Page 47: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Issues 1: Charge Leakage

Minimum clock rate of a few kHz

CL

CLK

CLK

Out

A=0

Mp

Me

Leakage sources

CLK

VOut

Precharge

Evaluate

1

2

3

4

47

Page 48: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Impact of Charge Leakage • Output settles to an intermediate voltage determined by a

resistive divider of the pull-up and pull-down networks

– Once the output drops below the switching threshold of the fan-out logic gate, the output is interpreted as a low voltage.

CLK

Out

48

Page 49: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

A Solution to Charge Leakage

Same approach as level restorer for pass transistor logic

CL

CLK

CLK

Me

Mp

A

B

!Out

Mkp

Keeper

• Keeper compensates for the charge lost due to the pull-down leakage paths.

49

Page 50: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Summary: Leakage

• Dynamic node floats high during evaluation

– Transistors are leaky (IOFF 0)

– Dynamic value will leak away over time

– Formerly miliseconds, now nanoseconds!

• Use keeper to hold dynamic node

– Must be weak enough not to fight evaluation

50

A

H

2

2

1 kX

Y

weak keeper

Page 51: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Issues 2: Charge Sharing • Charge stored originally on CL is redistributed (shared) over CL and

CA leading to static power consumption by downstream gates and possible circuit malfunction.

CL

CLK

CLK

Ca

Cb

B=0

A

Out

Mp

Me

• When DVout = - VDD (Ca / (Ca + CL )) the drop in Vout is large enough to be below the switching threshold of the gate it drives causing a malfunction.

51

Page 52: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Charge Sharing

• Dynamic gates suffer from charge sharing

52

B = 0

A

Y

x

Cx

CY A

x

Y

Charge sharing noise

Yx Y DD

x Y

CV V V

C C

Page 53: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Charge Sharing Example

Cy=50fF

CLK

CLK

A !A

B !B B !B

C !C

y = A B C

Ca=15fF

Cc=15fF

Cb=15fF

Cd=10fF

What is the worst case voltage drop on y? (Assume all inputs are low during precharge and that all internal nodes are initially at 0V.)

Load

inverter

a

b

d c

53

Page 54: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Charge Sharing Example What is the worst case voltage drop on y? (Assume all inputs are low during precharge and that all internal nodes are initially at 0V.)

Cy=50fF

CLK

CLK

A !A

B !B B !B

C !C

y = A B C

Ca=15fF

Cc=15fF

Cb=15fF

Cd=10fF

Load

inverter

a

b

d c

DVout = - VDD ((Ca + Cc)/((Ca + Cc) + Cy)) = - 2.5V*(30/(30+50)) = -0.94V

54

Page 55: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Solution to Charge Redistribution

CLK

CLK

Me

Mp

A

B

Out

Mkp CLK

Precharge internal nodes using a clock-driven transistor (at the cost of increased area and power)

55

Page 56: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Secondary Precharge

• Solution: add secondary precharge transistors

– Typically need to precharge every other node

• Big load capacitance CY helps as well

56

B

A

Y

x

secondary

precharge

transistor

Page 57: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Issues 3: Backgate Coupling

Dynamic NAND Static NAND

• Susceptible to crosstalk due to 1) high impedance of the output node and 2) backgate capacitive coupling ‒ Out2 capacitively couples with Out1 through the gate-source

and gate-drain capacitances of M4

CL1

CLK

CLK

B=0

A=0

Out1

Mp

Me

Out2

CL2

In

=1 =0

M1

M2 M3

M4

M5 M6

57

Page 58: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Backgate Coupling Effect

• Capacitive coupling means Out1 drops significantly so Out2 doesn’t go all the way to ground

-1

0

1

2

3

0 2 4 6Time, ns

CLK

In

Out1

Out2

Clock Feedthrough

58

Page 59: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Issues 4: Clock Feedthrough

CL

CLK

CLK

B

A

Out

Mp

Me

Coupling between Out and CLK input of the precharge device due to the gate-drain capacitance. So voltage of Out can rise above VDD. The fast rising (and falling edges) of the clock couple to Out.

• A special case of backgate capacitive coupling between the clock input of the precharge transistor and the dynamic output node

59

Page 60: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Clock Feedthrough

CLK

CLK

In1

In2

In3

In4

Out

In &

CLK Out

Time, ns

Clock feedthrough

Clock feedthrough

60

Page 61: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Issues 5: Cascading Gates

CLK

CLK

Out1

In

Mp

Me

Mp

Me

CLK

CLK

Out2

V

t

CLK

In

Out1

Out2

DV

VTn

Only a single 0 1 transition allowed at the inputs during the evaluation period!

61

Page 62: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Monotonicity

• Dynamic gates require monotonically rising inputs during evaluation

– 0 -> 0

– 0 -> 1

– 1 -> 1

– But not 1 -> 0

62

Precharge Evaluate

Y

Precharge

A

Output should rise but does not

violates monotonicity

during evaluation

A

Page 63: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Monotonicity Woes

• But dynamic gates produce monotonically falling outputs during evaluation

• Illegal for one dynamic gate to drive another!

63

AX

Y

Precharge Evaluate

X

Precharge

A = 1

Y

Page 64: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Monotonicity Woes

• But dynamic gates produce monotonically falling outputs during evaluation

• Illegal for one dynamic gate to drive another!

64

AX

Y

Precharge Evaluate

X

Precharge

A = 1

Y should rise but cannot

Y

X monotonically falls during evaluation

Page 65: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Domino Gates

• Follow dynamic stage with inverting static gate

– Dynamic / static pair is called domino gate

– Produces monotonic outputs

65

Precharge Evaluate

W

Precharge

X

Y

Z

A

BC

C

AB

W XY

Z =X

ZH

H

A

W

B C

X Y Z

domino AND

dynamic

NAND

static

inverter

Page 66: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Domino Optimizations

• Each domino gate triggers next one, like a string of dominos toppling over

• Gates evaluate sequentially, precharge in parallel • Thus evaluation is more critical than precharge • HI-skewed static stages can perform logic

66

S0

D0

S1

D1

S2

D2

S3

D3

S4

D4

S5

D5

S6

D6

S7

D7

YH

Page 67: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Dual-Rail Domino

• Domino only performs noninverting functions:

– AND, OR but not NAND, NOR, or XOR

• Dual-rail domino solves this problem

– Takes true and complementary inputs

– Produces true and complementary outputs

67

sig_h sig_l Meaning

0 0 Precharged

0 1 ‘0’

1 0 ‘1’

1 1 invalid

Y_h

f

inputs

Y_l

f

Page 68: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Example: AND/NAND

• Given A_h, A_l, B_h, B_l

• Compute Y_h = A * B, Y_l = ~(A * B)

• Pulldown networks are conduction complements

68

Y_h

Y_l

A_h

B_hB_lA_l

= A*B= A*B

Page 69: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Example: XOR/XNOR

• Sometimes possible to share transistors

69

Y_h

Y_l

A_l

B_h

= A xor B

B_l

A_hA_lA_h= A xnor B

Page 70: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Noise Sensitivity

• Dynamic gates are very sensitive to noise

– Inputs: VIH Vtn

– Outputs: floating output susceptible noise

• Noise sources

– Capacitive crosstalk

– Charge sharing

– Power supply noise

– Feedthrough noise

– And more!

70

Page 71: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Domino Summary

• Domino logic is attractive for high-speed circuits

– 1.5 – 2x faster than static CMOS

– But many challenges:

• Monotonicity

• Leakage

• Charge sharing

• Noise

• Widely used in high-performance microprocessors

71

Page 72: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

72

1. Static CMOS

2. Ratioed Circuits

3. Cascode Voltage Switch Logic

4. Dynamic Circuits

5. Pass-Transistor Circuits

6. Circuit Pitfalls

Outline

Page 73: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Pass Transistor Circuits

• Use pass transistors like switches to do logic

• Inputs drive diffusion terminals as well as gates

• CMOS + Transmission Gates:

– 2-input multiplexer

– Gates should be restoring

73

A

B

S

S

S

Y

A

B

S

S

S

Y

Page 74: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

NMOS Transistors in Series/Parallel

• Primary inputs drive both gate and source/drain terminals

• NMOS switch closes when the gate input is high

• Remember - NMOS transistors pass a strong 0 but a weak 1

A B

X Y X = Y if A and B

X Y

A

B X = Y if A or B

74

Page 75: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

PMOS Transistors in Series/Parallel

• Primary inputs drive both gate and source/drain terminals

• PMOS switch closes when the gate input is low

• Remember - PMOS transistors pass a strong 1 but a weak 0

A B

X Y X = Y if A and B = A + B

X Y

A

B X = Y if A or B = A B

75

Page 76: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Pass Transistor (PT) Logic

A

B

F B

0

• Gate is static – a low-impedance path exists to both supply rails under all circumstances

• N transistors instead of 2N

• No static power consumption

• Ratioless

• Bidirectional (versus undirectional)

A

0

B

B F

= A B

= A B

76

Page 77: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

VTC of PT AND Gate

A

0

B

B F = AB

0.5/0.25

0.5/0.25

0.5/0.25

1.5/0.25

B=VDD, A=0VDD

A=VDD, B=0VDD

A=B=0VDD V

out,

V

• Pure PT logic is not regenerative - the signal gradually degrades after passing through a number of PTs (can fix with static CMOS inverter insertion)

77

Page 78: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

NMOS Only PT Driving an Inverter

• Vx does not pull up to VDD, but VDD – VTn

In = VDD

A = VDD

Vx = VDD-VTn

M1

M2

B

S D

• Threshold voltage drop causes static power consumption (M2 may be weakly conducting forming a path from VDD to GND)

• Notice VTn increases for pass transistor due to body effect (VSB)

VGS

78

Page 79: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Voltage Swing of PT Driving an Inverter

• Body effect – large VSB at x - when pulling high (B is tied to GND and S charged up close to VDD)

• So the voltage drop is even worse

Vx = VDD - (VTn0 + ((|2f| + Vx) - |2f|))

In = 0 VDD =2.5V

VDD

x Out 0.5/0.25

0.5/0.25

1.5/0.25

D

S

B

Time, ns

Vo

ltag

e, V

In

Out

x = 1.8V

79

Page 80: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Cascaded NMOS Only PTs

B = VDD

Out

M1

y M2

Swing on y = VDD - VTn1 - VTn2

x M1

B = VDD

Out y M2

Swing on y = VDD - VTn1

C = VDD

A = VDD

C = VDD

A = VDD

• Pass transistor gates should never be cascaded as on the left

• Logic on the right suffers from static power dissipation and reduced noise margins

x = VDD - VTn1

G

S

G

S

80

Page 81: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Solution 1: Level Restorer

• Full swing on x (due to Level Restorer) so no static power consumption by inverter

• No static backward current path through Level Restorer and PT since Restorer is only active when A is high

• For correct operation Mr must be sized correctly (ratioed)

Level Restorer

M1

M2

A=0 Mn

Mr

x

B

Out =1

off

= 0 A=1 Out=0

on

1 A

81

Page 82: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Restorer Circuit Transient Response • Restorer has speed and power impacts: increases the capacitance

at x, slowing down the gate; increases tr (but decreases tf)

W/L2=1.50/0.25

W/L1=0.50/0.25

Voltage, V

Time, ps

W/Lr=1.75/0.25

W/Lr=1.50/0.25

W/Lr=1.25/0.25

W/Lr=1.0/0.25

node x never goes below VM

of inverter so output never

switches M1

M2

Mn

Mr

x

W/Ln=0.50/0.25

82

Page 83: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Solution 2: Multiple VT Transistors • Technology solution: Use (near) zero VT devices for the NMOS PTs to eliminate

most of the threshold drop (body effect still in force preventing full swing to VDD)

• Impacts static power consumption due to subthreshold currents flowing through the PTs (even if VGS is below VT)

Out

In2 = 0V

In1 = 2.5V

A = 2.5V

B = 0V

low VT transistors

sneak path

on

off but

leaking

83

Page 84: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

• Most widely used solution

• Full swing bidirectional switch controlled by the gate signal C, A = B if C = 1

Solution 3: Transmission Gates (TGs)

A B

C

C

A B

C

C

B

C = VDD

C = GND

A = VDD B

C = VDD

C = GND

A = GND

84

Page 85: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Solution 4: CPL

• Complementary Pass-transistor Logic

– Dual-rail form of pass transistor logic

– Avoids need for ratioed feedback

– Optional cross-coupling for rail-to-rail swing

85

B

S

S

S

S

A

B

AY

YL

L

Page 86: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

86

1. Static CMOS

2. Ratioed Circuits

3. Cascode Voltage Switch Logic

4. Dynamic Circuits

5. Pass-Transistor Circuits

6. Circuit Pitfalls

Outline

Page 87: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Introduction

• Circuit Pitfalls

– Detective puzzle

– Given circuit and symptom, diagnose cause and recommend solution

– All these pitfalls have caused failures in real chips

• Noise Budgets

• Reliability

87

Page 88: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Threshold Drop

• Circuit

– 2:1 multiplexer

88

• Symptom

– Mux works when selected D is 0 but not 1.

– Or fails at low VDD.

– Or fails in SF corner.

XD0Y

D1

S

S

Principle: Threshold drop

– X never rises above VDD-Vt

– Vt is raised by the body effect

– The threshold drop is most serious as Vt becomes a greater fraction of VDD.

Solution: Use transmission gates, not pass transistors

Page 89: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Leakage

• Circuit

– Latch

89

• Symptom

– Load a 0 into Q

– Set = 0

– Eventually Q spontaneously flips to 1

Principle: Leakage

– X is a dynamic node holding value as charge on the node

– Eventually subthreshold leakage may disturb charge

Solution: Stabilize node with feedback

– Or periodically refresh node (requires fast clock,

not practical processes with big leakage)

D Q

X

Q

DX

Page 90: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Leakage

• Circuit

– Domino AND

gate

90

• Symptom

– Precharge gate (Y=0)

– Then evaluate

– Eventually Y spontaneously flips to 1

Principle: Leakage

– X is a dynamic node holding value as charge on the node

– Eventually subthreshold leakage may disturb charge

Solution: Keeper

1

0Y

X

1

0Y

X

Page 91: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Ratio Failure

• Circuit

– Pseudo-nMOS OR

91

• Symptom

– When only one input is true, Y = 0.

– Perhaps only happens in SF corner.

Principle: Ratio Failure

– nMOS and pMOS fight each other.

– If the pMOS is too strong, nMOS cannot pull X low enough.

Solution: Check that ratio is satisfied in all corners

A B

YX

Page 92: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Ratio Failure

• Circuit

– Latch

92

• Symptom

– Q stuck at 1.

– May only happen for certain latches where input is driven by a small gate located far away.

Principle: Ratio Failure (again) – Series resistance of D driver, wire resistance, and tgate must be much less than weak feedback inverter.

Solutions: Check relative strengths – Avoid unbuffered diffusion inputs

where driver is unknown

QD

weak

X

QD

weak

stronger

Page 93: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Charge Sharing

• Circuit

– Domino AND

gate

93

• Symptom

– Precharge gate while

A = B = 0, so Z = 0

– Set = 1

– A rises

– Z is observed to sometimes rise Principle: Charge Sharing

– If X was low, it shares charge with Y

Solutions: Limit charge sharing

– Safe if CY >> CX

– Or precharge node X too

B

A

Y

X

Z

B

A

Y

X

Cx

CY

Z

Yx Y DD

x Y

CV V V

C C

Page 94: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Charge Sharing

• Circuit

– Dynamic gate

+ latch

94

• Symptom

– Precharge gate while transmission gate latch is opaque

– Evaluate

– When latch becomes transparent, X falls

Principle: Charge Sharing

– If Y was low, it shares charge with X

Solution: Buffer dynamic nodes before driving transmission gate

0

X

Y

Page 95: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Diffusion Input Noise

• Circuit

– Latch

95

• Symptom

– Q changes while latch is opaque

– Especially if D comes from a far-away driver

Principle: Diffusion Input Noise Sensitivity

– If D < -Vt, transmission gate turns on

– Most likely because of power

supply noise or coupling on D

Solution: Buffer D locally

QD

0

weakVDD

VDD

Page 96: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Hot Spot

• Nonuniform power dissipation (even within overall power budget)

96

Page 97: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Minority Carrier Injection

• Minority injection caused by forward biased p-n junction

• Solution: Use guard ring to collect the excess minority

97

Page 98: Combinational Circuit Design - ee.nthu.edu.t · Combinational Circuit Design CHAPTER 5. VLSI Design 5- Chih-Cheng Hsieh 2 1. Static CMOS 2. Ratioed Circuits ... –Remember DeMorgan’s

VLSI Design

5-

Chih-Cheng Hsieh

Back-Gate Coupling

• Dynamic gates drive multiple-input static CMOS gates

• Solution : Drive input closer to the rail

98


Recommended