Modern VLSI Design 4e: Chapter 5 Copyright 2008 Wayne Wolf Topics n Performance analysis of...

40
Modern VLSI Design 4e: Chapter 5 Copyright 2008 Wayne Wolf Topics Performance analysis of sequential machines.

Transcript of Modern VLSI Design 4e: Chapter 5 Copyright 2008 Wayne Wolf Topics n Performance analysis of...

Page 1: Modern VLSI Design 4e: Chapter 5 Copyright  2008 Wayne Wolf Topics n Performance analysis of sequential machines.

Modern VLSI Design 4e: Chapter 5 Copyright 2008 Wayne Wolf

Topics

Performance analysis of sequential machines.

Page 2: Modern VLSI Design 4e: Chapter 5 Copyright  2008 Wayne Wolf Topics n Performance analysis of sequential machines.

Modern VLSI Design 4e: Chapter 5 Copyright 2008 Wayne Wolf

Unbalanced delays

Logic with unbalanced delays leads to inefficient use of logic:

long clock periodshort clock period

Page 3: Modern VLSI Design 4e: Chapter 5 Copyright  2008 Wayne Wolf Topics n Performance analysis of sequential machines.

Modern VLSI Design 4e: Chapter 5 Copyright 2008 Wayne Wolf

Signal skew

Machine data signals must obey setup and hold times—avoid signal skew.

Page 4: Modern VLSI Design 4e: Chapter 5 Copyright  2008 Wayne Wolf Topics n Performance analysis of sequential machines.

Modern VLSI Design 4e: Chapter 5 Copyright 2008 Wayne Wolf

Clock skew

Clock must arrive at all memory elements in time to load data.

Page 5: Modern VLSI Design 4e: Chapter 5 Copyright  2008 Wayne Wolf Topics n Performance analysis of sequential machines.

Modern VLSI Design 4e: Chapter 5 Copyright 2008 Wayne Wolf

Qualified clocks and skew

Logic in the clocking path introduces delay. Delay can cause clock to arrive at latches at

different times, violating clocking assumptions.

When designing qualification logic:– minimize and check skew;– sharpen clock edge.

Page 6: Modern VLSI Design 4e: Chapter 5 Copyright  2008 Wayne Wolf Topics n Performance analysis of sequential machines.

Modern VLSI Design 4e: Chapter 5 Copyright 2008 Wayne Wolf

Qualification skew example

Page 7: Modern VLSI Design 4e: Chapter 5 Copyright  2008 Wayne Wolf Topics n Performance analysis of sequential machines.

Modern VLSI Design 4e: Chapter 5 Copyright 2008 Wayne Wolf

Clock period

For each phase, phase period must be longer than sum of:– combinational delay;– latch propagation delay.

Phase period depends on longest path.

Page 8: Modern VLSI Design 4e: Chapter 5 Copyright  2008 Wayne Wolf Topics n Performance analysis of sequential machines.

Modern VLSI Design 4e: Chapter 5 Copyright 2008 Wayne Wolf

Unbalanced delays

Logic with unbalanced delays leads to inefficient use of logic:

long clock periodshort clock period

Page 9: Modern VLSI Design 4e: Chapter 5 Copyright  2008 Wayne Wolf Topics n Performance analysis of sequential machines.

Modern VLSI Design 4e: Chapter 5 Copyright 2008 Wayne Wolf

Flip-flop-based system performance analysis

Page 10: Modern VLSI Design 4e: Chapter 5 Copyright  2008 Wayne Wolf Topics n Performance analysis of sequential machines.

Modern VLSI Design 4e: Chapter 5 Copyright 2008 Wayne Wolf

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.

Page 11: Modern VLSI Design 4e: Chapter 5 Copyright  2008 Wayne Wolf Topics n Performance analysis of sequential machines.

Modern VLSI Design 4e: Chapter 5 Copyright 2008 Wayne Wolf

Clock parameters

Page 12: Modern VLSI Design 4e: Chapter 5 Copyright  2008 Wayne Wolf Topics n Performance analysis of sequential machines.

Modern VLSI Design 4e: Chapter 5 Copyright 2008 Wayne Wolf

Clock period constraint

P >= C + s + p. s p C

Page 13: Modern VLSI Design 4e: Chapter 5 Copyright  2008 Wayne Wolf Topics n Performance analysis of sequential machines.

Modern VLSI Design 4e: Chapter 5 Copyright 2008 Wayne Wolf

Clock with rise/fall

Page 14: Modern VLSI Design 4e: Chapter 5 Copyright  2008 Wayne Wolf Topics n Performance analysis of sequential machines.

Modern VLSI Design 4e: Chapter 5 Copyright 2008 Wayne Wolf

Rise/fall clock period constraint

P >= C + s + p + tr. s p Ctr

Page 15: Modern VLSI Design 4e: Chapter 5 Copyright  2008 Wayne Wolf Topics n Performance analysis of sequential machines.

Modern VLSI Design 4e: Chapter 5 Copyright 2008 Wayne Wolf

Min-max delays

Delays may vary:– Manufacturing

variations.– Temperature variations.

Min/max delays compound over paths.– Delays within a chip

are correlated.

t

Page 16: Modern VLSI Design 4e: Chapter 5 Copyright  2008 Wayne Wolf Topics n Performance analysis of sequential machines.

Modern VLSI Design 4e: Chapter 5 Copyright 2008 Wayne Wolf

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.

Page 17: Modern VLSI Design 4e: Chapter 5 Copyright  2008 Wayne Wolf Topics n Performance analysis of sequential machines.

Modern VLSI Design 4e: Chapter 5 Copyright 2008 Wayne Wolf

Latch-based system model

Page 18: Modern VLSI Design 4e: Chapter 5 Copyright  2008 Wayne Wolf Topics n Performance analysis of sequential machines.

Modern VLSI Design 4e: Chapter 5 Copyright 2008 Wayne Wolf

Two-phase timing parameters

Page 19: Modern VLSI Design 4e: Chapter 5 Copyright  2008 Wayne Wolf Topics n Performance analysis of sequential machines.

Modern VLSI Design 4e: Chapter 5 Copyright 2008 Wayne Wolf

Clock period constraint

Total clock period (both phases):– P >= C1 + C2 + 2s + 2p.

Each phase must meet timing for its own latch.

Page 20: Modern VLSI Design 4e: Chapter 5 Copyright  2008 Wayne Wolf Topics n Performance analysis of sequential machines.

Modern VLSI Design 4e: Chapter 5 Copyright 2008 Wayne Wolf

Latch-based system model

Page 21: Modern VLSI Design 4e: Chapter 5 Copyright  2008 Wayne Wolf Topics n Performance analysis of sequential machines.

Modern VLSI Design 4e: Chapter 5 Copyright 2008 Wayne Wolf

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.

Page 22: Modern VLSI Design 4e: Chapter 5 Copyright  2008 Wayne Wolf Topics n Performance analysis of sequential machines.

Modern VLSI Design 4e: Chapter 5 Copyright 2008 Wayne Wolf

Example with unbalanced phases

One phase is much longer than the other:

Page 23: Modern VLSI Design 4e: Chapter 5 Copyright  2008 Wayne Wolf Topics n Performance analysis of sequential machines.

Modern VLSI Design 4e: Chapter 5 Copyright 2008 Wayne Wolf

Spreading out a phase

Compute only part of long paths in one phase:

Page 24: Modern VLSI Design 4e: Chapter 5 Copyright  2008 Wayne Wolf Topics n Performance analysis of sequential machines.

Modern VLSI Design 4e: Chapter 5 Copyright 2008 Wayne Wolf

Spreading out a phase, cont’d.

Use other phase for end of long logic block and all of short logic block:

Page 25: Modern VLSI Design 4e: Chapter 5 Copyright  2008 Wayne Wolf Topics n Performance analysis of sequential machines.

Modern VLSI Design 4e: Chapter 5 Copyright 2008 Wayne Wolf

Problems

Hard to debug—can’t stop the system. Hard to initialize system state. More sensitive to process variations.

Page 26: Modern VLSI Design 4e: Chapter 5 Copyright  2008 Wayne Wolf Topics n Performance analysis of sequential machines.

Modern VLSI Design 4e: Chapter 5 Copyright 2008 Wayne Wolf

Timing and glitches in FSMs

If inputs don’t change, can outputs glitch?

DQ

logicinput output

Page 27: Modern VLSI Design 4e: Chapter 5 Copyright  2008 Wayne Wolf Topics n Performance analysis of sequential machines.

Modern VLSI Design 4e: Chapter 5 Copyright 2008 Wayne Wolf

Skew

Skew: relative delay between events. Signal skew: most important for

asynchronous, timing-dependent logic. Clock skew: can harm any sequential

system.

Page 28: Modern VLSI Design 4e: Chapter 5 Copyright  2008 Wayne Wolf Topics n Performance analysis of sequential machines.

Modern VLSI Design 4e: Chapter 5 Copyright 2008 Wayne Wolf

Signal skew

Machine data signals must obey setup and hold times—avoid signal skew.

Page 29: Modern VLSI Design 4e: Chapter 5 Copyright  2008 Wayne Wolf Topics n Performance analysis of sequential machines.

Modern VLSI Design 4e: Chapter 5 Copyright 2008 Wayne Wolf

Signal skew example

Page 30: Modern VLSI Design 4e: Chapter 5 Copyright  2008 Wayne Wolf Topics n Performance analysis of sequential machines.

Modern VLSI Design 4e: Chapter 5 Copyright 2008 Wayne Wolf

Clock skew

Clock must arrive at all memory elements in time to load data.

Page 31: Modern VLSI Design 4e: Chapter 5 Copyright  2008 Wayne Wolf Topics n Performance analysis of sequential machines.

Modern VLSI Design 4e: Chapter 5 Copyright 2008 Wayne Wolf

Clock skew example

Page 32: Modern VLSI Design 4e: Chapter 5 Copyright  2008 Wayne Wolf Topics n Performance analysis of sequential machines.

Modern VLSI Design 4e: Chapter 5 Copyright 2008 Wayne Wolf

Clock skew in system

D Q

D Q

logic

Page 33: Modern VLSI Design 4e: Chapter 5 Copyright  2008 Wayne Wolf Topics n Performance analysis of sequential machines.

Modern VLSI Design 4e: Chapter 5 Copyright 2008 Wayne Wolf

Clock skew and qualified clocks

Page 34: Modern VLSI Design 4e: Chapter 5 Copyright  2008 Wayne Wolf Topics n Performance analysis of sequential machines.

Modern VLSI Design 4e: Chapter 5 Copyright 2008 Wayne Wolf

Clock skew analysis model

s12 = 1 – 2s21 = 2 – 1

Page 35: Modern VLSI Design 4e: Chapter 5 Copyright  2008 Wayne Wolf Topics n Performance analysis of sequential machines.

Modern VLSI Design 4e: Chapter 5 Copyright 2008 Wayne Wolf

Skew and clock period

Assume that each flip-flop operates instantaneously:– T >= 2 + 12

If clock arrives at FF2 after FF1, then we have more time to compute.

Given clock period, determine allowable skew:– s12 >= T + 2

Page 36: Modern VLSI Design 4e: Chapter 5 Copyright  2008 Wayne Wolf Topics n Performance analysis of sequential machines.

Modern VLSI Design 4e: Chapter 5 Copyright 2008 Wayne Wolf

Timing through logic

As skew increases, we have less time to get the signal through the logic.

Page 37: Modern VLSI Design 4e: Chapter 5 Copyright  2008 Wayne Wolf Topics n Performance analysis of sequential machines.

Modern VLSI Design 4e: Chapter 5 Copyright 2008 Wayne Wolf

Clock distribution

Often one of the hardest problems in clock design.– Fast edges.

– Minimum skew.

Page 38: Modern VLSI Design 4e: Chapter 5 Copyright  2008 Wayne Wolf Topics n Performance analysis of sequential machines.

Modern VLSI Design 4e: Chapter 5 Copyright 2008 Wayne Wolf

Clock skew example

10 ps 10 ps

20 ps 20 ps

30 ps 30 ps

D Q D QD Q

D Q

Page 39: Modern VLSI Design 4e: Chapter 5 Copyright  2008 Wayne Wolf Topics n Performance analysis of sequential machines.

Modern VLSI Design 4e: Chapter 5 Copyright 2008 Wayne Wolf

Retiming

Retiming moves registers through combinational logic:

Page 40: Modern VLSI Design 4e: Chapter 5 Copyright  2008 Wayne Wolf Topics n Performance analysis of sequential machines.

Modern VLSI Design 4e: Chapter 5 Copyright 2008 Wayne Wolf

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.