ECE465 Lecture Notes # 11 Clocking Methodologies: Shantanu Dutt UIC
ECE465 Lecture Notes # 11 Clocking Methodologies: Shantanu Dutt UIC
ECE465 Lecture Notes # 11 Clocking Methodologies: Shantanu Dutt UIC
Acknowledgement: (1) Most slides prepared by Huan Ren from Prof. Dutts Lecture Notes (some modifications made by Prof. Dutt); (2) Some slides extracted from Prof. David Pans (UT Austin) slides as indicated
Timing Methodologies
Synchronous Sequential Circuits
External I/P Comb. Logic Memory Clk External O/P TOPP,Logic
(critical path delay In the o/p logic part)
00,11/0 A
01/1
TNSP,Logic
(critical path delay In the NS logic part)
00,01,10/0 B 01/0 11/0 11/0 C 10,00/1 Transition occurs only on positive edge of Clk
Input Clock Tperiod =TClk ith state transition (i+1)th state (i+2)th state transition transition [could be to the same state] (i+3)th state transition
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
This leads to the clock ariving at different FFs at slightly different time. This difference in clock arrival times is called clock skew
From: David Pan, UT Austin
Tskew
IN
1 D1
D Q FF1 Q1 Clk1
0 1
Logic
0 D2
0 D Q FF2 Q2 Clk2
Clk1
Clk
Clk2
New value of D2 D1 Current overwrites old value state 00 10 before Q2 changes D2 Correct Incorrect transition transition This causes an incorrect Q1 11 Q2 change when +ve Q2 edge arrives at Clk2
IN 1 Tskew= max (|difference between clock pulses (rising edges) of clock D1 inputs of any two FFs in the system|)
Tsu Clk1 D1 Typical or min TPLH Th Clk
Logic
0
D2
0 D Q FF2 Q2
Clk2
Safe if: min (TPLH of FF)+min (TP,Logic between Q1 & Q2)>Tskew+Th i.e. if: Tskew < min (TPLH)+min (TP,Logic)-Th Similarly for 1 to 0 transition of Q1: TPHL comes into play, then safe if: Tskew < min (TPHL)+min (TP,Logic)-Th
Q1
D2 Clk2 Tskew
min TP,Logic
Th
Thus we need: Tskew < min (min TPLH, min TPHL)+min (TNSP,Logic) Th = min(TP,FF) + min(TNS P,Logic) Th, where TNSP,Logic is the prop. delay of the next state (NS) logic portion of the entire comb. logic in the system. Thus, the safe Tskew limit is based on minimum propagation delay of FFs and the NS logic
Clk1
If with skew
TClk
TClk> Tskew+ TP,FF+ TNSP,Logic +Tsetup AND TClk> Tskew+ TP,FF+ TOPP,Logic Thus TClk> max(Tskew+ TP,FF+ TNSP,Logic +Tsetup, Tskew+ TP,FF+ TOPP,Logic)
Clock Skew
Clock skew is the maximum difference in the arrival time of a clock signal at two different components. Clock skew forces designers to use a large time period between clock pulses. This makes the system slower. So, in addition to other objectives, clock skew should be minimized during clock routing.
Power
Noise
Delay
An Example of MMM
centers of mass
Clk
D
Other I/Ps
P,FF+
Comb. Logic
Q D latch D
Narrow Width Clk
Tw
0/0 00
1
NS
0
Clk
1/1 0/1
01
1/0
1/1 0/1 01
1/0
11
0/0
Comb. Logic 1 0 1 0
Clk
0 2 level-sens. latches
Correct transition for the darkened arrow irrespective of the relative speed of different excitation (next state) outputs
1 Comb. Logic 1 1 slow 0 Clk 1 Comb. Logic 1 1 0 Clk 0 1 fast 0 1 Comb. Logic 1 1 0 Clk 1 0 1
0/0 00
1/0
01
Clk
Comb. Logic 0 0 1
0 2 M-S or edge- Period Between State 1 triggered FFs Transitions (also clock period) Clk
1/0
1 slow 1 fast
Clk2 Clk1
0 slow 1 fast
Clk2 Clk1
Clk1 T2-1
Tgap T1-2
CS
NS
TClk
Clk2
(1-a)T1-2 aT1-2
Clk2 Clk1 Tgap1>Tskew (to avoid overlap and thus a race condition) T2-1+aT1-2(assuming 0 Tgap1, 0< a <1) > TP,FF+TP,Logic+Tsu
(Note: Introducing a Tgap1 of at least Tskew also takes care of the reqmt to allow for Tskew in the above sum of the 3 delay components)
(1- a)T1-2 + Tgap2 > TP,FF + Tsu + Tskew Tgap1 = Tgap2 (for symmetry requirements) Tclk = 1.1(T2-1 + T1-2 + Tgap1 + Tgap2 ) = 1.1(2TP,FF+TP,Logic+2Tsu+2Tskew) [w/ 10% safety gap]