340 likes | 359 Views
This article explores the performance analysis of logic circuits with unbalanced delays, focusing on the impact of clock periods and skew on overall system performance. The use of flip-flop-based and latch-based models is discussed, along with advanced techniques for improving performance in systems with unbalanced phases. Additionally, the article covers topics such as signal skew, timing and glitches in FSMs, clock distribution challenges, and the concept of retiming.
E N D
Topics • Performance analysis.
Unbalanced delays Logic with unbalanced delays leads to inefficient use of logic: short clock period long clock period
Flip-flop-based system model • Clock signal is perfect (no rise/fall), period P. • Clock event on rising edge. • Setup time s. • Time from arrival of combinational logic event to clock event. • Propagation time p. • Time for value to go from flip-flop input to output. • Worst-case combinational delay C. • Time from output of flip-flop to input.
Clock period constraint p • P >= C + s + p. s C
Rise/fall clock period constraint p • P >= C + s + p + tr. s tr C
Min-max delays • Delays may vary: • Manufacturing variations. • Temperature variations. • Min/max delays compound over paths. • Delays within a chip are correlated. t
Latch system clock period • For each phase, phase period must be longer than sum of: • combinational delay; • latch propagation delay. • Phase period depends on longest path.
Clock period constraint • Total clock period (both phases): • P >= C1 + C2 + 2s + 2p. • Each phase must meet timing for its own latch.
Advanced performance analysis • Latch-based systems always have some idle logic. • Can increase performance by blurring phase boundaries. Results in cycle time closer to average of phases.
Example with unbalanced phases One phase is much longer than the other:
Spreading out a phase Compute only part of long paths in one phase:
Spreading out a phase, cont’d. Use other phase for end of long logic block and all of short logic block:
Problems • Hard to debug—can’t stop the system. • Hard to initialize system state. • More sensitive to process variations.
D Q Timing and glitches in FSMs • If inputs don’t change, can outputs glitch? logic input output
Skew • Skew: relative delay between events. • Signal skew: most important for asynchronous, timing-dependent logic. • Clock skew: can harm any sequential system.
Signal skew Machine data signals must obey setup and hold times—avoid signal skew.
Clock skew Clock must arrive at all memory elements in time to load data.
D D Q Q d Clock skew in system logic
s12 = d1 – d2 s21 = d2 – d1 Clock skew analysis model
Skew and clock period • Assume that each flip-flop operates instantaneously: • T >= D2 + d12 • If clock arrives at FF2 after FF1, then we have more time to compute. • Given clock period, determine allowable skew: • s12 >= T + D2
Timing through logic • As skew increases, we have less time to get the signal through the logic.
Clock distribution • Often one of the hardest problems in clock design. • Fast edges. • Minimum skew.
D D D D Q Q Q Q Clock skew example 10 ps 10 ps 20 ps 20 ps 30 ps 30 ps
Retiming Retiming moves registers through combinational logic:
Retiming properties • Retiming changes encoding of values in registers, but proper values can be reconstructed with combinational logic. • Retiming may increase number of registers required. • Retiming must preserve number of registers around a cycle—may not be possible with reconvergent fanout.