ceng 4480 lecture 11: clockbyu/ceng4480/2018fall/slides/l11-clock.pdf · ceng4480 l11. clock...

20
CENG 4480 Lecture 11: Clock Reference: Chapter 11 Clock Distribution High speed digital design by Johnson and Graham 1 Bei Yu

Upload: others

Post on 13-Jun-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: CENG 4480 Lecture 11: Clockbyu/CENG4480/2018Fall/slides/L11-clock.pdf · CENG4480 L11. Clock Strategies to reduce clock skew • Drive them from the same source & balance the delays

CENG 4480Lecture 11: Clock

Reference:• Chapter 11 Clock Distribution• High speed digital design• by Johnson and Graham

1

Bei Yu

Page 2: CENG 4480 Lecture 11: Clockbyu/CENG4480/2018Fall/slides/L11-clock.pdf · CENG4480 L11. Clock Strategies to reduce clock skew • Drive them from the same source & balance the delays

L11. ClockCENG4480

A 2-bit ring counter example • 2-bit ring counter

• Initially A = B = 0; A = 0011001100

• What is B?

2

D1 Q1

CLK1

CLK

D2 Q2

CLK2

AB

Page 3: CENG 4480 Lecture 11: Clockbyu/CENG4480/2018Fall/slides/L11-clock.pdf · CENG4480 L11. Clock Strategies to reduce clock skew • Drive them from the same source & balance the delays

L11. ClockCENG4480

A 2-bit ring counter example • The result is Okay when clock is slow

• But, when clock is TOO fast, get some problem

3

D1 Q1

CLK1

CLK

D2 Q2

CLK2

output pattern:0011001100..

output pattern:0110011001..

Page 4: CENG 4480 Lecture 11: Clockbyu/CENG4480/2018Fall/slides/L11-clock.pdf · CENG4480 L11. Clock Strategies to reduce clock skew • Drive them from the same source & balance the delays

L11. ClockCENG4480

Setup Time and Time Margin

• Setup Time: The time that the input data must be stable before the clock transition of the system occurs

• Time Margin: measures the slack, or excess time, remaining in each clock cycle✦ Protects your circuit against signal cross-talk, miscalculation of logic

delays, and later minor changes in the layout✦ Depends on both time delay of logic paths and clock interval

4

Page 5: CENG 4480 Lecture 11: Clockbyu/CENG4480/2018Fall/slides/L11-clock.pdf · CENG4480 L11. Clock Strategies to reduce clock skew • Drive them from the same source & balance the delays

L11. ClockCENG4480

Notations in Clock Skew Calculation• Tff: delay of flip-flop (FF)

• TG: delay of gate G, including track delay

• Tsetup: worst-case setup time required by FF2, data at D2 must arrive at least Tsetup before CLK2

• TCLK: clock period; interval between clocks

5

D1 Q1

CLK1

D2 Q2

CLK2

Page 6: CENG 4480 Lecture 11: Clockbyu/CENG4480/2018Fall/slides/L11-clock.pdf · CENG4480 L11. Clock Strategies to reduce clock skew • Drive them from the same source & balance the delays

L11. ClockCENG4480 6

D1 Q1

CLK1

CLK

D2 Q2

CLK2 May cause problem ifTCLK is too small

Tff

TG

Tsetup

TCLK

Page 7: CENG 4480 Lecture 11: Clockbyu/CENG4480/2018Fall/slides/L11-clock.pdf · CENG4480 L11. Clock Strategies to reduce clock skew • Drive them from the same source & balance the delays

L11. ClockCENG4480

EX. B2-1• CLK1 = CLK2 = 20MHz; Tff = 8ns; Tsetup = 5ns; TG = 10ns.

• Questions:✦ Find time margin✦ How many delay G gates can you insert between A and B without

creating error?

7

D1 Q1

CLK1

CLK

D2 Q2

CLK2

A B

Page 8: CENG 4480 Lecture 11: Clockbyu/CENG4480/2018Fall/slides/L11-clock.pdf · CENG4480 L11. Clock Strategies to reduce clock skew • Drive them from the same source & balance the delays

L11. ClockCENG4480

Clock Skew• The clock does NOT reach FF1, FF2 at the same time

8

Tc1,max = latest Tc1 arrival time

Tc2,min = earliest Tc2 arrival time

a positive skew = Tc1,max - Tc2,min

Source CLK0

CLK0

CLK1

CLK2

delay 1

delay 2

Page 9: CENG 4480 Lecture 11: Clockbyu/CENG4480/2018Fall/slides/L11-clock.pdf · CENG4480 L11. Clock Strategies to reduce clock skew • Drive them from the same source & balance the delays

L11. ClockCENG4480

D1 Q1

CLK1

D2 Q2

CLK2

Why Care Clock Skew?

9

Signal arrives here no later than Tc1,max + Tff + TG

Clock Source

Latest arrival Tc1,max

Earliest arrival Tc2,min

Signal arrives must be valid before next clock TCLK + Tc2,min - Tsetup

Page 10: CENG 4480 Lecture 11: Clockbyu/CENG4480/2018Fall/slides/L11-clock.pdf · CENG4480 L11. Clock Strategies to reduce clock skew • Drive them from the same source & balance the delays

L11. ClockCENG4480

Why Care Clock Skew?

• Tdelay = Tc1,max + Tff + TG

• Tclk’ = TCLK + Tc2,min - Tsetup

• Since Tdelay < Tclk’ =>

10

TCLk > Tff + Tsetup + TG + Tc1,max- Tc2,min{ {Constant

DelaySkew

ImpactLogicDelay

Page 11: CENG 4480 Lecture 11: Clockbyu/CENG4480/2018Fall/slides/L11-clock.pdf · CENG4480 L11. Clock Strategies to reduce clock skew • Drive them from the same source & balance the delays

L11. ClockCENG4480

EX. B2-2Question: Given

• Tff = 7ns;

• TG = 5ns;

• Tsetup = 4ns;

• TCL = 40MHZ;

What’s the biggest time skew allowed?

Answer:

11

Page 12: CENG 4480 Lecture 11: Clockbyu/CENG4480/2018Fall/slides/L11-clock.pdf · CENG4480 L11. Clock Strategies to reduce clock skew • Drive them from the same source & balance the delays

L11. ClockCENG4480

Strategies to reduce clock skew

• Drive them from the same source & balance the delays

• Style 1: Spider-leg distribution network✦ use a power driver to drive N outputs. ✦ Use load (R) termination to reduce reflection if the traces are long

(distributed circuit). Total load =R/N.✦ Two or more driver outputs in parallel may be needed.

• Style 2: Clock distribution tree

12

Page 13: CENG 4480 Lecture 11: Clockbyu/CENG4480/2018Fall/slides/L11-clock.pdf · CENG4480 L11. Clock Strategies to reduce clock skew • Drive them from the same source & balance the delays

L11. ClockCENG4480

Style 1: Spider-leg Clock

13

Page 14: CENG 4480 Lecture 11: Clockbyu/CENG4480/2018Fall/slides/L11-clock.pdf · CENG4480 L11. Clock Strategies to reduce clock skew • Drive them from the same source & balance the delays

L11. ClockCENG4480

Style 2: Clock Tree

14

Page 15: CENG 4480 Lecture 11: Clockbyu/CENG4480/2018Fall/slides/L11-clock.pdf · CENG4480 L11. Clock Strategies to reduce clock skew • Drive them from the same source & balance the delays

L11. ClockCENG4480

Modern Clock Design — 1

15

[Ho et al, ISPD’2009]

Page 16: CENG 4480 Lecture 11: Clockbyu/CENG4480/2018Fall/slides/L11-clock.pdf · CENG4480 L11. Clock Strategies to reduce clock skew • Drive them from the same source & balance the delays

L11. ClockCENG4480

Modern Clock Design — 2

16

[Yeh et al, ISQED’2006]

Page 17: CENG 4480 Lecture 11: Clockbyu/CENG4480/2018Fall/slides/L11-clock.pdf · CENG4480 L11. Clock Strategies to reduce clock skew • Drive them from the same source & balance the delays

L11. ClockCENG4480

Modern Clock Design — 3

17

[Seok et al, ISLPED’2010]

Page 18: CENG 4480 Lecture 11: Clockbyu/CENG4480/2018Fall/slides/L11-clock.pdf · CENG4480 L11. Clock Strategies to reduce clock skew • Drive them from the same source & balance the delays

L11. ClockCENG4480

Clock Skew Distribution

18

[Pham et al, JSSC’2006]

Page 19: CENG 4480 Lecture 11: Clockbyu/CENG4480/2018Fall/slides/L11-clock.pdf · CENG4480 L11. Clock Strategies to reduce clock skew • Drive them from the same source & balance the delays

L11. ClockCENG4480

EX. Skew Optimization• Instead of Zero-Skew, take advantage of Skew.

• Question: Given TG=6ns, Tff=10ns, Tsetup=2ns, what’s the minimal TCLK? Assume Tc3 = 0.

19

FF FF FF

Tc1 Tc2 Tc3

Page 20: CENG 4480 Lecture 11: Clockbyu/CENG4480/2018Fall/slides/L11-clock.pdf · CENG4480 L11. Clock Strategies to reduce clock skew • Drive them from the same source & balance the delays

L11. ClockCENG4480

Thank You

20