Professional Documents
Culture Documents
Elec 326 13.1 Sequential Circuit Timing Elec 326 13.2 Sequential Circuit Timing
Elec 326 13.3 Sequential Circuit Timing Elec 326 13.4 Sequential Circuit Timing
1
o Example o Example
0
Q0 D Q
Q1
D Q MUX
D Q Q 1
Q Q
CK
CK
Elec 326 13.5 Sequential Circuit Timing Elec 326 13.6 Sequential Circuit Timing
o Example
o Clock Skew
n If a clock edge does not arrive at different flip-flops at
exactly the same time, then the clock is said to be skewed
between these flip-flops. The difference between the times
of arrival at the flip-flops is said to be the amount of clock
skew.
n Clock skew is due to different delays on different paths
Paths from Q1 to Q1: None
from the clock generator to the various flip-flops.
u Different length wires (wires have delay)
Paths from Q1 to Q2: TW ≥ max tPDFF +tJKsu = 20 +10 = 30 ns
u Gates (buffers) on the paths
TW ≥ max t PDFF + max t AND + tJKsu = 20 + 12 + 10 = 42 ns
u Flip-Flops that clock on different edges (need to invert clock for
Paths from Q2 to Q1: TW ≥ max tPJKFF + tOR + TDsu = 25 + 10 + 5 = 40 ns some flip-flops)
Paths from Q2 to Q2: TW ≥ max tPJKFF + max tAND + t JKsu = 25 + 12 + 10 = 47 ns u Gating the clock to control loading of registers (a very bad idea)
TW ≥ 47 ns
Elec 326 13.7 Sequential Circuit Timing Elec 326 13.8 Sequential Circuit Timing
2
o Example (Effect of clock skew on clock rate) n Clock C1 skewed after C2
n Clock C2 skewed after C1
D2 Q2
D Q
Q1 D Q
D2 Q2
D Q
Q1 D Q C2
C1 Q
Q
C2
C1 Q
Q CK
CK
TW ≥ max T PFF + max t OR + tsu TW ≥ max T PFF + max t OR + tsu - min tINV
(if clock not skewed, i.e., tINV = 0) (if clock skewed, i.e., tINV > 0)
Elec 326 13.9 Sequential Circuit Timing Elec 326 13.10 Sequential Circuit Timing
Elec 326 13.11 Sequential Circuit Timing Elec 326 13.12 Sequential Circuit Timing
3
n Circuit 2:
n Circuit 1:
n≥2 n≥2
Elec 326 13.13 Sequential Circuit Timing Elec 326 13.14 Sequential Circuit Timing
Q Q
D Q
Q1 D2 D Q
C1 C2
Q Q
C1 C2
Elec 326 13.15 Sequential Circuit Timing Elec 326 13.16 Sequential Circuit Timing
4
o How does additional delay between the flip-flops o Summary of allowable clock skew calculations
affect the skew calculations?
Elec 326 13.17 Sequential Circuit Timing Elec 326 13.18 Sequential Circuit Timing
D1
following circuit under the assumption that the clock D Q
Q1
N1
D2 D Q
Q2
C1 C2
Elec 326 13.19 Sequential Circuit Timing Elec 326 13.20 Sequential Circuit Timing
5
13.3. Global Setup Time, Hold Time and o Global setup & hold time (clock delayed)
Propagation Delay
D D Q
o Global setup and hold times (data delayed) CK
CLK Q
X NET D D Q
CK
CLK Q
Elec 326 13.21 Sequential Circuit Timing Elec 326 13.22 Sequential Circuit Timing
o Global setup & hold time (data & clock delayed) o Global propagation delay
X Q
NET D
D Q
D Q NET Y
CK
CLK Q
CK
CLK Q
TSU = tsu + max tNET - min tC TH = th - min tNET + max tC TP = tC + tFF + tNET
Elec 326 13.23 Sequential Circuit Timing Elec 326 13.24 Sequential Circuit Timing
6
o Summary of global timing parameters o Example
LD Q
D Q
D CK
CLK Q
Elec 326 13.25 Sequential Circuit Timing Elec 326 13.26 Sequential Circuit Timing
13.4. Register load control (gating the clock) o If LD was constrained to only change when the clock was low,
o A very bad way to add a load control signal LD to a then the only problem would be the clock skew.
register that does not have one is shown below
D D Q
LD CK
Q
CLK
7
o If gating the clock is the only way to control the o The best way to add a LD control signal is as follows:
loading of registers, then use the following approach:
D D Q LD
D Q
CLK Q D
CLK Q
LD
Elec 326 13.29 Sequential Circuit Timing Elec 326 13.30 Sequential Circuit Timing
13.5. Synchronous System Structure and Timing 13.6. Tips & Tricks
o Use timing diagrams to determine the timing properties of
sequential circuits
13.7. Pitfalls
o Using typical timing values from the data sheet (use
only max and/or min values)
o Gating the clock
Elec 326 13.31 Sequential Circuit Timing Elec 326 13.32 Sequential Circuit Timing
8
13.8 Review
o How the flip-flop and gate timing parameters affect
the maximum possible clock frequency.
n How clock skew affect maximum possible clock frequency.
o How the delay of logic between flip-flops affects the
maximum allowable clock skew.
o How flip-flop setup and hold times are translated by
the combinational logic delays to get global setup and
hold times.
o The detrimental effect of gating the clock signal.