Lecture 10: Sequential Networks: Timing and Retiming
CSE 140: Components and Design Techniques for Digital Systems
Diba Mirza
- Dept. of Computer Science and Engineering
University of California, San Diego
1
Lecture 10: Sequential Networks: Timing and Retiming CSE 140: - - PowerPoint PPT Presentation
Lecture 10: Sequential Networks: Timing and Retiming CSE 140: Components and Design Techniques for Digital Systems Diba Mirza Dept. of Computer Science and Engineering University of California, San Diego 1 So far . Combinational CLK
Diba Mirza
University of California, San Diego
1
4
5
CLK tsetup D thold ta
6
7
I. Min delay of flip flop, also called Contamination delay or min CLK to Q delay: tccq Time after clock edge that Q might be unstable (i.e., start changing) II. Max delay of flip flop, also called Propagation delay or maximum CLK to Q delay: tpcq Time after clock edge that the output Q is guaranteed to be stable (i.e., to stop changing)
CLK tccq tpcq Q
8
9
10
Minimum time from when an input changes until the output starts to change
Maximum time from when an input changes until the output is guaranteed to reach its final value (i.e., stop changing)
11
A B C D Y PI Q: Which path in the above circuit determines the contamination delay of the circuit (assuming the delay of all the gates is the same)?
12
A B C D Y PI Q: Which path in the above circuit determines the propagation delay of the circuit (assuming the delay of all the gates is the same)?
13
14
C L CLK CLK R1 R2 Q1 D2 (a) CLK Q1 D2 (b) Tc
15
16
C L CLK CLK R1 R2 Q1 D2 (a) CLK Q1 D2 (b) Tc
17
C L CLK CLK R1 R2 Q1 D2 (a) CLK Q1 D2 (b) Tc
18
To meet the hold time constraint: C L CLK CLK R1 R2 Q1 D2 (a) CLK Q1 D2 (b) Tc
thold < min delay(flipflop) + min delay(combinational)
19
C L CLK CLK R1 R2 Q1 D2 (a) CLK Q1 D2 (b) Tc
Which of the following violations would
max delay of the combinational circuit was equal to the clock period
20
To meet the setup time constraint: C L CLK CLK R1 R2 Q1 D2 (a) CLK Q1 D2 (b) Tc
Tc ≥ max delay(flipflop) + max delay(combinational)+ tsetup
21
To meet the hold time constraint:
thold < min delay(flipflop) + min delay(combinational) thold < tccq + tcd CLK Q1 D2 tccq tcd thold C L CLK CLK Q1 D2 R1 R2
22
To meet the setup time constraint:
Tc ≥ max delay(flipflop) + max delay(combinational)+ tsetup Tc ≥ tpcq + tpd + tsetup CLK Q1 D2 Tc tpcq tpd tsetup C L CLK CLK Q1 D2 R1 R2
CLK CLK A B C D X' Y' X Y
tccq = 30 ps tpcq = 50 ps tsetup = 60 ps thold = 70 ps tpd = 35 ps tcd = 25 ps
tpd (CL)= tcd (CL)= Setup time constraint: Tc ≥ fc = 1/Tc = Hold time constraint: tccq + tcd (CL)> thold ?
23
CLK CLK A B C D X' Y' X Y
tccq = 30 ps tpcq = 50 ps tsetup = 60 ps thold = 70 ps tpd = 35 ps tcd = 25 ps
tpd = 3 x 35 ps = 105 ps tcd = 25 ps Setup time constraint: Tc ≥ (50 + 105 + 60) ps = 215 ps fc = 1/Tc = 4.65 GHz Hold time constraint: tccq + tcd > thold ? (30 + 25) ps > 70 ps ? No!
24
tccq = 30 ps tpcq = 50 ps tsetup = 60 ps thold = 70 ps tpd = 35 ps tcd = 25 ps
tpd = tcd = Setup time constraint: Tc ≥ fc = Hold time constraint: tccq + tcd > thold ?
CLK CLK A B C D X' Y' X Y
Add buffers to the short paths:
25
tccq = 30 ps tpcq = 50 ps tsetup = 60 ps thold = 70 ps tpd = 35 ps tcd = 25 ps
tpd = 3 x 35 ps = 105 ps tcd = 2 x 25 ps = 50 ps Setup time constraint: Tc ≥ (50 + 105 + 60) ps = 215 ps fc = 1/Tc = 4.65 GHz Hold time constraint: tccq + tcd > thold ? (30 + 50) ps > 70 ps ? Yes!
CLK CLK A B C D X' Y' X Y
Add buffers to the short paths:
26