You are on page 1of 24

Lecture 4-2 Timing

VLSI Signal Processing Lab.

N C T U . E E , Hsinchu, Taiwan
Outlines
• Timing definition
• How to read a timing report
VLSI Signal Processing Lab.

N C T U . E E , Hsinchu, Taiwan
SOME DEFINTIONS
VLSI Signal Processing Lab.

N C T U . E E , Hsinchu, Taiwan
Edge-Triggered D Flip Flop

Setup time Hold time


VLSI Signal Processing Lab.

Setup time: inputs become stable before rising clock;


Hold time: inputs remain stable after rising clock;

N C T U . E E , Hsinchu, Taiwan
How Fast My Design Can Run?
• Up to 100MHz? 200MHz?
• Slower at 10KHz, 20KHz? Any speed?
Data
Cache
Mux Regs

Regs ALU
VLSI Signal Processing Lab.

Inst

IRW
IRM
IRR

IRA
PC

Cache

A FIFO B
10 cycles 5 or 15 cycles

N C T U . E E , Hsinchu, Taiwan
How Fast My Design Can Run?
• Fastest clock cycle time: Tc

Tc

clk
Flip-Flops
VLSI Signal Processing Lab.

clk clk
Flop

Flop
Combinational Logic
2-Pha

11: Sequential Circuits 6


1 N C T U . E E , Hsinchu, Taiwan
Max Delay
clk clk Tc >= tpcq + tpd + tsetup
Q1 D2
Combinational Logic
F1

F2
tpd <=Tc – (tpcq + tsetup )
Tc

tsetup Register overhead


clk
tpcq
If delay of comb. Logic is too
Q1 tpd long)
Þ Setup time violation
VLSI Signal Processing Lab.

D2 DFF will catch the wrong value


1. clock run slower
Tc become larger
2. comb. Logic faster
Tpd smaller by
N C pipeline or Taiwan
T U . E E , Hsinchu,
Platform Based Design Group

Min-Delay: Flip-Flops
clk
F1
Q1
CL
𝑡 𝑐𝑑 +𝑡 𝑐𝑐𝑞 ≥ 𝑡 h𝑜𝑙𝑑
clk
tcd  thold  tccq
D2
F2

clk

Q1 tccq tcd
If not hold,
D2 thold (comb. Logic delay is too short)
VLSI Signal Processing Lab.

Þ hold time violation


Þ DFF will catch the wrong value
1. Decreasing clock rate does not work
2. Increase tcd (e.g. add delay, buffer)
11: Sequential Circuits 8
N C T U . E E , Hsinchu, Taiwan
Timing Paths
• Input to register, register to register, register to output
– Start from or end to DFFs
• Input to output
Input to register register to register register to output
VLSI Signal Processing Lab.

Input to output

http://www.vlsi-expert.com/2011/03/static-timing-analysis-sta-basic-timing.html N C T U . E E , Hsinchu, Taiwan


Example

tdCQ = tcCQ = ts = 150ps


th = 250ps
tdMax = 850ps
tcMin = 100ps

Is hold time constraint met?



250ps <= 100+ 150ps
VLSI Signal Processing Lab.

What is the minimum cycle time?



tcy >= 1150ps

N C T U . E E , Hsinchu, Taiwan
Add Clock Skew tk
Cycle get larger

Hold time tigher

Skew always reduces slack (margin)


VLSI Signal Processing Lab.

Clock skew: arrival time of clock signal difference

check timing path as in timing report


N C T U . E E , Hsinchu, Taiwan
Summary
• Delays in digital systems
– Propagation delay
– Contamination delay
• Flip-flop timing constraints
– Setup time (ts)
– Hold time (th)
• Cycle time determined by maximum delay
VLSI Signal Processing Lab.

• Correct operation depends on minimum delay

• Clock skew affects both


(c) 2005-2012 W. J. Dally
N C T U . E E , Hsinchu, Taiwan
HOW TO READ YOUR TIMING REPORT
VLSI Signal Processing Lab.

N C T U . E E , Hsinchu, Taiwan
How to Read and Interpret Timing Report
VLSI Signal Processing Lab.

N C T U . E E , Hsinchu, Taiwan
Platform Based Design Group

Constraint File (note. These numbers may not


match the following slides)
// 設定 clock, I/O 限制
create_clock "clk" -name clk -period 2 -waveform {0 1.7}
set_clock_uncertainty 0.2 clk
set_fix_hold all_clocks()
set_input_delay 0.5 -clock clk {in}
set_output_delay -max 0.8 -clock clk {isprime}
// 設定 loading
set_load -pin_load 5 {isprime}
VLSI Signal Processing Lab.

//Note: these commands are for practical applications to include


// clock jitter, input/output loading capacitances

N C T U . E E , Hsinchu, Taiwan
Clock Network and Clock Skew
VLSI Signal Processing Lab.

N C T U . E E , Hsinchu, Taiwan
Specify Timing Assertions
VLSI Signal Processing Lab.

N C T U . E E , Hsinchu, Taiwan
Timing Verification of Synchronous Designs
VLSI Signal Processing Lab.

N C T U . E E , Hsinchu, Taiwan
VLSI Signal Processing Lab.

Clock skew

N C T U . E E , Hsinchu, Taiwan
VLSI Signal Processing Lab.

N C T U . E E , Hsinchu, Taiwan
Four Sections in a Timing Report
VLSI Signal Processing Lab.

N C T U . E E , Hsinchu, Taiwan
Data Arrival Section
VLSI Signal Processing Lab.

N C T U . E E , Hsinchu, Taiwan
Data Required Section
VLSI Signal Processing Lab.

N C T U . E E , Hsinchu, Taiwan
Summary - Slack
VLSI Signal Processing Lab.

N C T U . E E , Hsinchu, Taiwan

You might also like