CENG 4480 Lecture 10: Clock Bei Yu Reference : Chapter 11 Clock - - PowerPoint PPT Presentation

ceng 4480 lecture 10 clock
SMART_READER_LITE
LIVE PREVIEW

CENG 4480 Lecture 10: Clock Bei Yu Reference : Chapter 11 Clock - - PowerPoint PPT Presentation

CENG 4480 Lecture 10: Clock Bei Yu Reference : Chapter 11 Clock Distribution High speed digital design by Johnson and Graham 1 A 2-bit ring counter example 2-bit ring counter Initially A = B = 0; A = 0011001100 What is B?


slide-1
SLIDE 1

CENG 4480 Lecture 10: Clock

Reference:

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

1

Bei Yu

slide-2
SLIDE 2
  • L10. Clock

CENG4480

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

A B

slide-3
SLIDE 3
  • L10. Clock

CENG4480

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

  • utput pattern:

0011001100..

  • utput pattern:

0110011001.. Arduino uno: 16 MHz

slide-4
SLIDE 4
  • L10. Clock

CENG4480

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

slide-5
SLIDE 5
  • L10. Clock

CENG4480

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

slide-6
SLIDE 6
  • L10. Clock

CENG4480

6

D1 Q1 CLK1 CLK D2 Q2 CLK2

May cause problem if TCLK is too small Tff TG Tsetup TCLK

slide-7
SLIDE 7
  • L10. Clock

CENG4480

  • 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 20MHz = 50 ns

slide-8
SLIDE 8
  • L10. Clock

CENG4480

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

slide-9
SLIDE 9
  • L10. Clock

CENG4480 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

slide-10
SLIDE 10
  • L10. Clock

CENG4480

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 Delay Skew Impact Logic Delay

slide-11
SLIDE 11
  • L10. Clock

CENG4480

  • EX. B2-2

Question: Given

  • Tff = 7ns;
  • TG = 5ns;
  • Tsetup = 4ns;
  • TCLK = 40MHZ;

What’s the biggest time skew allowed? Answer:

11

40MHz = 4 x 10^7 cycles per second = 25 ns

slide-12
SLIDE 12
  • L10. Clock

CENG4480

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

slide-13
SLIDE 13
  • L10. Clock

CENG4480

Style 1: Spider-leg Clock

13

Distributes clocks from a single source to N remote destinations. Reflections are damped by resistive terminations R at the end of each spider leg. The drive circuit experiences a total load of R/N. We need a more powerful clock driver.

slide-14
SLIDE 14
  • L10. Clock

CENG4480

Style 2: Clock Tree

14

slide-15
SLIDE 15
  • L10. Clock

CENG4480

Modern Clock Design — 1

15

[Ho et al, ISPD’2009]

slide-16
SLIDE 16
  • L10. Clock

CENG4480

Modern Clock Design — 2

16

[Yeh et al, ISQED’2006]

slide-17
SLIDE 17
  • L10. Clock

CENG4480

Modern Clock Design — 3

17

[Seok et al, ISLPED’2010]

slide-18
SLIDE 18
  • L10. Clock

CENG4480

Clock Skew Distribution

18

[Pham et al, JSSC’2006]

slide-19
SLIDE 19
  • L10. Clock

CENG4480

  • 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

slide-20
SLIDE 20
  • L10. Clock

CENG4480

Thank You

20