B2. Digital System Clock - cse.cuhk.edu.hk
Transcript of B2. Digital System Clock - cse.cuhk.edu.hk
![Page 1: B2. Digital System Clock - cse.cuhk.edu.hk](https://reader030.fdocuments.in/reader030/viewer/2022032519/623614aec5672f0af25890be/html5/thumbnails/1.jpg)
B2. Digital System Clock
Reference:• Chapter 11 Clock Distribution• High speed digital design• by Johnson and Graham
1
Bei Yu
![Page 2: B2. Digital System Clock - cse.cuhk.edu.hk](https://reader030.fdocuments.in/reader030/viewer/2022032519/623614aec5672f0af25890be/html5/thumbnails/2.jpg)
B2. ClockCEG4480
• Contact me: [email protected]
• Project Demo (Nov. 12)
• Final (Dec. 9)✦ What to Cover: key concept; example questions✦ What not to cover: I don’t require to recite too much
• This Lecture: Simplified slides
2
![Page 3: B2. Digital System Clock - cse.cuhk.edu.hk](https://reader030.fdocuments.in/reader030/viewer/2022032519/623614aec5672f0af25890be/html5/thumbnails/3.jpg)
B2. ClockCEG4480
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
3
![Page 4: B2. Digital System Clock - cse.cuhk.edu.hk](https://reader030.fdocuments.in/reader030/viewer/2022032519/623614aec5672f0af25890be/html5/thumbnails/4.jpg)
B2. ClockCEG4480
A 2-bit ring counter example • 2-bit ring counter
• Initially A = B = 0; A = 0011001100
• What is B?
4
D1 Q1
CLK1
CLK
D2 Q2
CLK2
AB
![Page 5: B2. Digital System Clock - cse.cuhk.edu.hk](https://reader030.fdocuments.in/reader030/viewer/2022032519/623614aec5672f0af25890be/html5/thumbnails/5.jpg)
B2. ClockCEG4480
A 2-bit ring counter example • The result is Okay when clock is slow
• But, when clock is TOO fast, get some problem
5
D1 Q1
CLK1
CLK
D2 Q2
CLK2
output pattern:0011001100..
output pattern:0110011001..
![Page 6: B2. Digital System Clock - cse.cuhk.edu.hk](https://reader030.fdocuments.in/reader030/viewer/2022032519/623614aec5672f0af25890be/html5/thumbnails/6.jpg)
B2. ClockCEG4480
Notations in Clock Skew Calculation• Tff,max: max delay of flip-flop (FF)
• TG,max: max 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
6
D1 Q1
CLK1
D2 Q2
CLK2
![Page 7: B2. Digital System Clock - cse.cuhk.edu.hk](https://reader030.fdocuments.in/reader030/viewer/2022032519/623614aec5672f0af25890be/html5/thumbnails/7.jpg)
B2. ClockCEG4480 7
D1 Q1
CLK1
CLK
D2 Q2
CLK2 May cause problem ifTCLK is too small
Tff,max
TG,max
Tsetup
TCLK
![Page 8: B2. Digital System Clock - cse.cuhk.edu.hk](https://reader030.fdocuments.in/reader030/viewer/2022032519/623614aec5672f0af25890be/html5/thumbnails/8.jpg)
B2. ClockCEG4480
EX. B2-1• CLK1 = CLK2 = 20MHz; Tff,max = 8ns; Tsetup = 5ns;
TG,max = 10ns.
• Questions:✦ Find time margin✦ How many delay G gates can you insert between A and B
without creating error?
8
D1 Q1
CLK1
CLK
D2 Q2
CLK2
A B
![Page 9: B2. Digital System Clock - cse.cuhk.edu.hk](https://reader030.fdocuments.in/reader030/viewer/2022032519/623614aec5672f0af25890be/html5/thumbnails/9.jpg)
B2. ClockCEG4480
Clock Skew• The clock does NOT reach FF1, FF2 at the same time
9
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 10: B2. Digital System Clock - cse.cuhk.edu.hk](https://reader030.fdocuments.in/reader030/viewer/2022032519/623614aec5672f0af25890be/html5/thumbnails/10.jpg)
B2. ClockCEG4480
D1 Q1
CLK1
D2 Q2
CLK2
Why Care Clock Skew?
10
Signal arrives here no later than Tc1,max + Tff,max + TG,max
Clock Source
Latest arrival Tc1,max
Earliest arrival Tc2,min
Signal arrives must be valid before next clock TCLK + Tc2,min - Tsetup
![Page 11: B2. Digital System Clock - cse.cuhk.edu.hk](https://reader030.fdocuments.in/reader030/viewer/2022032519/623614aec5672f0af25890be/html5/thumbnails/11.jpg)
B2. ClockCEG4480
Why Care Clock Skew?
• Tslow = Tc1,max + Tff,max + TG,max
• Trequired = TCLK + Tc2,min - Tsetup
• Since Tslow < Trequired =>
11
TCL > Tff,max + Tsetup + TG,max + Tc1,max- Tc2,min{ {Constant
DelaySkew
ImpactLogicDelay
![Page 12: B2. Digital System Clock - cse.cuhk.edu.hk](https://reader030.fdocuments.in/reader030/viewer/2022032519/623614aec5672f0af25890be/html5/thumbnails/12.jpg)
B2. ClockCEG4480
EX. B2-2Question: Given
• Tff,max = 7ns;
• TG,max = 5ns;
• Tsetup = 4ns;
• TCL = 40MHZ;
What’s the biggest time skew allowed?
Answer:
12
![Page 13: B2. Digital System Clock - cse.cuhk.edu.hk](https://reader030.fdocuments.in/reader030/viewer/2022032519/623614aec5672f0af25890be/html5/thumbnails/13.jpg)
B2. ClockCEG4480
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
13
![Page 14: B2. Digital System Clock - cse.cuhk.edu.hk](https://reader030.fdocuments.in/reader030/viewer/2022032519/623614aec5672f0af25890be/html5/thumbnails/14.jpg)
B2. ClockCEG4480
Style 1: Spider-leg Clock
14
![Page 15: B2. Digital System Clock - cse.cuhk.edu.hk](https://reader030.fdocuments.in/reader030/viewer/2022032519/623614aec5672f0af25890be/html5/thumbnails/15.jpg)
B2. ClockCEG4480
Style 2: Clock Tree
15
![Page 16: B2. Digital System Clock - cse.cuhk.edu.hk](https://reader030.fdocuments.in/reader030/viewer/2022032519/623614aec5672f0af25890be/html5/thumbnails/16.jpg)
B2. ClockCEG4480
Modern Clock Design — 1
16
[Ho et al, ISPD’2009]
![Page 17: B2. Digital System Clock - cse.cuhk.edu.hk](https://reader030.fdocuments.in/reader030/viewer/2022032519/623614aec5672f0af25890be/html5/thumbnails/17.jpg)
B2. ClockCEG4480
Modern Clock Design — 2
17
[Yeh et al, ISQED’2006]
![Page 18: B2. Digital System Clock - cse.cuhk.edu.hk](https://reader030.fdocuments.in/reader030/viewer/2022032519/623614aec5672f0af25890be/html5/thumbnails/18.jpg)
B2. ClockCEG4480
Modern Clock Design — 3
18
[Seok et al, ISLPED’2010]
![Page 19: B2. Digital System Clock - cse.cuhk.edu.hk](https://reader030.fdocuments.in/reader030/viewer/2022032519/623614aec5672f0af25890be/html5/thumbnails/19.jpg)
B2. ClockCEG4480
Clock Skew Distribution
19
[Pham et al, JSSC’2006]
![Page 20: B2. Digital System Clock - cse.cuhk.edu.hk](https://reader030.fdocuments.in/reader030/viewer/2022032519/623614aec5672f0af25890be/html5/thumbnails/20.jpg)
B2. ClockCEG4480
EX. Skew Optimization• Instead of Zero-Skew, take advantage of Skew.
• Question: Given TG,max=6ns, Tff,max=10ns, Tsetup=2ns, what’s the minimal TCLK? Assume Tc3 = 0.
20
FF FF FF
Tc1 Tc2 Tc3
![Page 21: B2. Digital System Clock - cse.cuhk.edu.hk](https://reader030.fdocuments.in/reader030/viewer/2022032519/623614aec5672f0af25890be/html5/thumbnails/21.jpg)
B2. ClockCEG4480
Thank You :-)
21