Longest Path Matrix Algorithm
Longest Path Matrix Algorithm
Longest Path Matrix Algorithm
2 Tsung-Han Tsai 1
Chapter 2 Iteration Bound
NCU EE -- DSP VLSI Design. Chap. 2 Tsung-Han Tsai 2
Iteration Bound
&Introduction
&Critical path
&Loop Bound
t Important Definitions and Examples
&Iteration Bound
t Important Definitions and Examples
t Techniques to Compute Iteration Bound
NCU EE -- DSP VLSI Design. Chap. 2 Tsung-Han Tsai 3
Critical Path
&The path with longest computation time and zero delay.
&the minimal computation time required for one iteration of
DFG
&Speed of the DSP system:
t depends on the critical path comp. time
&The loop with the maximum loop bound
NCU EE -- DSP VLSI Design. Chap. 2 Tsung-Han Tsai 4
Loop Bound
&The lower bound on the loop computation time
loop) of delays of number (
n time) computatio loop (
Bound Loop
=
=
=
l
l
w
t
NCU EE -- DSP VLSI Design. Chap. 2 Tsung-Han Tsai 5
Loop Bound (contd)
&If no delay element in the loop, then
t Delay-free loops are non-computable, see the example
NCU EE -- DSP VLSI Design. Chap. 2 Tsung-Han Tsai 6
Iteration Bound
&The critical loop is the loop with maximum loop bound which
is the bound for the DSP program
&Iteration bound= Max { 6/2 , 11/1 }=11
NCU EE -- DSP VLSI Design. Chap. 2 Tsung-Han Tsai 7
Recursive
&A non-recursive DFG contains no loops
&A recursive DFG at least one loop T
=
=
T
L L
d
NCU EE -- DSP VLSI Design. Chap. 2 Tsung-Han Tsai 12
Algorithms to Compute Iteration Bound
&Minimum Cycle Mean Method (MCM)
1. Construct the new graph G
d
and G
d
=
0
) 0 (
f
NCU EE -- DSP VLSI Design. Chap. 2 Tsung-Han Tsai 18
Example to MCM(contd)
&
& I ={ i : path from node i to j exists }
=
0
) 0 (
f
=
0
) 1 (
f
=
0
4
) 2 (
f
=
0
4
5
) 3 (
f
=
4
5
8
) 4 (
f
NCU EE -- DSP VLSI Design. Chap. 2 Tsung-Han Tsai 19
Example to MCM(contd)
&The iteration bound is given by:
NCU EE -- DSP VLSI Design. Chap. 2 Tsung-Han Tsai 20
Example to MCM(contd)
NCU EE -- DSP VLSI Design. Chap. 2 Tsung-Han Tsai 21
Multirate DFGs
&Iteration bound of Multirate Data-flow Graphs
t Construct a SRDFG that is equivalent to the MRDFG
t Compute the iteration Bound of the equivalent SRDFG using the LPM
algorithm
O
UV
,I
UV
: # of samples I/O of the node per invocation
i
UV
: delay
k
U
,k
V
: # of invocation per iteration
v UV U UV
k l k O =
NCU EE -- DSP VLSI Design. Chap. 2 Tsung-Han Tsai 22
Transformation of Multi Rate DFG
NCU EE -- DSP VLSI Design. Chap. 2 Tsung-Han Tsai 23
Multi Rate DFG to Single Rate DFG
NCU EE -- DSP VLSI Design. Chap. 2 Tsung-Han Tsai 24
Conclusion
&When the DFG is recursive, the iteration bound is the
fundamental limit on the minimum sample period of a
hardware implementation of the DSP program.
&Two algorithms to compute iteration bound, LPM and MCM,
were introduced.
&The iteration bound of a multirate DFG can also be determined.