Beruflich Dokumente
Kultur Dokumente
Timing Analysis
Maciej Ciesielski
Department of Electrical and Computer Engineering
11/16/2012
Todays lecture
Timing in digital logic
Combinational logic
Sequential logic
11/16/2012
11/16/2012
Gate Output
Falling edge on inverter:
How does output behave?
Consider the actual voltage
coming out of the gate
Several scenarios:
Vdd
Vdd
0V
Vdd
0V
t
Vdd
0V
t
Vdd
0V
t
0V
t
Why?
Output can be seen as RC circuit
Capacitance (wires, transistors inside gates, etc.)
Resistance (wires, inside gates, etc.)
11/16/2012
Vdd
Logic 1
Logic 0
0V
tp
tc
Y
t cd
t pd
A
B
B
C
t cd
t pd
Circuit X
Tpd = 3ns
Tcd = 1ns
A
B
Circuit X
Tpd = 5ns
Tcd = 1ns
B
Propagation delays are additive
11/16/2012
2c,3p
OR gate
tc = 1.5ns
tp = 2.5ns
1c
2p
2c,3p
1.5c
2.5p
Inverter
tc = 1ns
tp = 2ns
11/16/2012
AEG, BEG
AEH, BEH
CFH, DFH
CF, DF
2c,3p
1c
2p
2c,3p
1.5c
2.5p
Contamination delay
tc(AEG) = tc(BEG)=3ns
tc(AEH) = tc(BEH)=4ns
tc(CFH) = tc(CFH)=3.5ns
tc(CF) = tc(DF)=1.5ns
10
2c,3p
1c
2p
2c,3p
1.5c
2.5p
11/16/2012
11
Sequential Circuits
Sequential circuits can contain both combinational logic
and edge-triggered flip flops
A clock signal determines when data is stored in flip flops
Goal: How fast can the circuit operate?
Minimum clock period: Tmin
Maximum clock frequency: fmax
Clock
Period
Clock
11/16/2012
12
D
Clk
Q
tcd
tClk-Q
13
ts
th
D
Clk
Q
11/16/2012
14
Data stable
CLK
ts =
setup time
th =
hold time
The logic driving the flip flop must ensure that setup and hold
are met
Timing values (tcd ,tpd ,tClk-Q ,ts, th)
11/16/2012
15
TClk-Q = 5 ns
Tpd = 5ns
TClk-Q = 5ns
X
Comb.
Logic G
FF A
Ts = 2 ns
FF B
CLK
Fmax = _______
16
Tpd = 4ns
Tpd = 5ns
Comb.
Logic H
FF B
FF A
CLK
TClk-Q = 4 ns
TClk-Q = 5ns
Ts = 2 ns
17
Tpd = 4ns
Comb.
Logic F
Tpd = 5ns
Comb.
Logic H
TClk-Q = 5ns
FF B
FF A
CLK
TClk-Q = 4 ns
Ts = 2 ns
11/16/2012
18
Tcd = 1ns
D
D Q
Comb.
Logic G
Th = 2 ns
Y
FF A
FF B
CLK
make sure that input to D remains stable for hold time (Th) after rising
clock edge
Remember:
2ns
> 2ns
11/16/2012
19
Tcd = 1ns
Comb.
Logic F
Tcd = 2ns
FF A
CLK
Tcd = 1ns
2ns
Comb.
Logic H
FF B
Tcd = 1 ns
Th = 2 ns
> 2ns
11/16/2012
1ns + 2ns
> 2ns
20
10
Summary
Maximum clock frequency is a fundamental parameter in
sequential computer systems
It is possible to determined clock frequency from
propagation delays (t p ) and setup time (t s )
The longest propagation path determines clock frequency
All flip-flop to flip-flop paths must be checked
Hold time are satisfied by examining contamination delays
The shortest contamination delay path determines if hold
times are met
Check handout (pdf file) for more details and examples.
11/16/2012
21
11