Docsity

Clocking Methodologies - Digital Systems - Lecture Slides, Slides of Digital Systems Design

Partial preview of the text

Download Clocking Methodologies - Digital Systems - Lecture Slides and more Slides Digital Systems Design in PDF only on Docsity!

Clocking Methodologies

Docsity.com

Memory

Timing Methodologies

  • Synchronous Sequential Circuits

Comb. Logic

Clk

External I/P (^) External O/P

  • Features Required for Correct

Operation

    1. All State Transitions take place only with respect to a particular event in the clock (e.g., positive or negative edge, etc. )
A
C
B

Transition occurs only on positive edge of Clk

TOP P,Logic

TNS P,Logic

(critical path delay In the o/p logic part)

(critical path delay In the NS logic part)

Docsity.com

Clock Routing

  • A path from the clock source to clock sinks (FFs)
  • Different FFs are at different distances from the clock source

Clock Source

FF FF FF FF FF FF FF FF FF FF

From: David Pan, UT Austin

  • This leads to the clock ariving at different FFs at slightly different time. This difference in clock arrival times is called clock skew

Docsity.com

Timing Methodologies: Clock Skew Problem

  • Real-world problems that can cause the three requirements to be violated
    • A) Clock Skew: Max(arrival time difference of the “same” clock edge betw all FF pairs).
D 1 FF

D Q Logic FF

D Q
IN
Q 1

01 D 2 Q^2

Clk Clk1^ Clk

Current state Correct transition 11

Incorrect transition

New value of D overwrites old value before Q2 changes

This causes an incorrect Q2 change when +ve edge arrives at Clk

Clk

Clk

D
D
Q
Q

T skew

Safe: If blue horse wins race & wins it by a margin of at least T (^) h (^2 ) Unsafe: If brown horse wins race

2

1

Values before the clock +ve edge

Docsity.com

Determining Clock Period: Edge Triggered System

Comb. Logic

FF
FF

Clk

Clk

Clk

Clk

Level sens. latch

Positive edge trigg.

Clk

negative edge trigg.

Memory of FF bank with delay T P,FF

TOP P,Logic

Clk

Clk

T P,FF

T su T P,Logic T skew

T Clk

T Clk -T skew > max(T P,FF )+ max( TNS P,Logic )+T setup = T P,FF + T NS P,Logic +T setup i.e., we will use the normal convention of using

  • T P,FF to mean max(T P,FF )
  • T NS P,Logic to mean max(T NS P,Logic ) Also, T Clk -T skew > T P,FF + T OP P,Logic , where TOP P,Logic is the output logic portion of combinational logic.

Max(typical T PHL and typical T PLH

TNS P,Logic

Docsity.com

Determining the Clock Period (Contd.)

  • If with skew
    • T Clk > T skew + T P,FF + TNS P,Logic +T setup AND
    • T Clk > T skew + T P,FF + TOP P,Logic
    • Thus T Clk > max(T skew + T P,FF + TNS P,Logic +T setup , T skew + T P,FF + TOP P,Logic)
  • Use 10% buffer for safety
    • T Clk =1.1max(T skew + T P,FF + TNS P,Logic +T setup , T skew + T P,FF + TOP P,Logic)
  • T skew = max (|difference between clock pulses (rising edges) of clock inputs of any two FFs in the system|)

Clk

≥ T P,FF + T NS P,Logic + T setup, AND ≥ T P,FF + T OP P,Logic

T Clk

Docsity.com

Clock Design Problem

• What are the main concerns for clock design?

• Skew

  • No. 1 concern for clock networks
  • For increased clock frequency, skew may contribute

over 10% of the system cycle time

• Power

  • very important, as clock is a major power consumer!
  • It switches at every clock cycle!

• Noise

  • Clock is often a very strong aggressor
  • May need shielding

• Delay

  • Not really important
  • But slew rate is important (sharp transition)

From: David Pan, UT Austin Docsity.com

The Clock Routing Problem

  • Given a source and n sinks (FFs).
  • Connect all sinks to the source by an

interconnect tree so as to minimize:

  • Clock Skew = max i , j | t (^) i - tj |
  • Delay = max i ti
  • Total wirelength
  • Noise and coupling effect

From: David Pan, UT Austin Docsity.com

Method of Means and Medians (MMM)

  • Applicable when the clock terminals are arbitrarily

arranged.

  • Follows a strategy very similar to H-Tree.
  • Recursively partition the terminals into two sets of

equal size (median). Then, connect the center of mass of the whole circuit to the centers of mass of the two sub-circuits (mean).

  • Clock skew is only minimized heuristically. The resulting

tree may not have zero-skew.

From: David Pan, UT Austin Docsity.com

An Example of MMM

centers of mass

From: David Pan, UT Austin Docsity.com

Race Condition: Reason 1 (contd)

  • Race condition is generally a problem with level sensitive latches.
  • Can be solved using:
    • a) Edge-triggered FFs. Clk
D
Q
D FF

Comb. Logic

Other I/Ps

Clk

Q D
  • b) Narrow-width clocking.

Only 1 O/P change per cc.

T Clk

T w

T Clk > T skew + T P,FF + T P,Logic +T setup Tw<min (T P,FF )+min(T P,Logic )

min (min T PLH , min

D latch

Comb. Logic

Other I/Ps

Q D

Narrow Width Clk Docsity.com

Correct State Transition Using Level-Sensitive

Latches

Comb. Logic

Transition for the darkened arrow:

Clk

Comb. Logic

Clk

Comb. Logic

Clk

2 level sens. latches

CS NS

Docsity.com

No Race Condition Using Edge-Triggered FFs

  • Correct transition for the darkened
arrow irrespective of the relative speed
of different excitation (next state) outputs

Comb. Logic

Clk

Comb. Logic

Clk

Comb. Logic

Clk

Comb. Logic

Clk Comb. Logic

Clk

2 M-S or edge- triggered FFs

fast

slow

Period Between State Transitions (also clock period) Docsity.com

Comb. Logic

Clk2 Clk

No Race Condition Using 2-phase clocking and MS level sensitive latches

  • Generally, Cost(master-slave (MS) LS latches)
< Cost(edge-trigg. FF)
  • Correct transition for the darkened arrow
irrespective of the relative speed of different
excitation (next state) outputs

Comb. Logic

Clk2 Clk

fast

slow

Comb. Logic

Clk2 Clk

Comb. Logic

Clk2 Clk Clk

Clk

fast

slow

T2-

Tgap T1- Docsity.com