Theoremcore
Iteration bound
Also called Renfors-Neuvo iteration bound, maximum loop bound.
The sample period of a recursive data flow graph can be no less than the largest ratio of loop delay to loop register count, a bound met by retiming and unfolding.
The iteration bound is a lower bound on how fast a recursive computation, such as a digital filter with feedback, can run, however much hardware it gets. The computation is a data flow graph whose nodes take time and whose loops carry delays, the registers that hold past values. Every loop must finish its whole chain of operations within the iterations that its delays allow, so its total time divided by its number of delays is a least time per iteration. The iteration bound is the largest of these ratios over all loops. Renfors and Neuvo stated it for digital filters in 1981. This page proves that no schedule beats it and that a periodic schedule on unlimited processors reaches it exactly.
Statement
A data flow graph (DFG) is a directed graph with a computation time on each node and a number of delays on each edge, such that every directed cycle has at least one delay. Node runs once in each iteration . An edge with delays means that iteration of uses the result of iteration of ; for it uses an initial value instead. For a directed cycle , write for the sum of the times of its nodes and for the sum of the delays of its edges. The iteration bound is
the maximum over the directed simple cycles, and if has no cycle.
A schedule on unlimited processors gives each run a real start time such that for every edge and every ,
Any number of runs may overlap. The iteration period of the schedule is
Theorem. Every schedule satisfies . There is a schedule of the form with constants , so the bound is attained.
The cycle that reaches the maximum is called a critical loop. Computing is a maximum cycle ratio problem: it is the minimum ratio problem with the signs of the times reversed.
In plain words
Think of a loop in a filter as a relay race that must hand the baton back to its own start. Each delay on the loop gives the race one more sample period to finish. If the steps around a loop take 3 nanoseconds in total and the loop holds 2 delays, the loop can produce a new value no faster than once every 1.5 nanoseconds on average, however many adders and multipliers are bought, because each step must wait for the one before it. The slowest loop, measured this way, sets the speed limit for the whole filter. Parts of the graph with no loop never limit the speed, since they can be pipelined as deeply as one likes.
Proof
The bound. Let be a directed simple cycle through the nodes in order, with edges and , and let . Start at iteration of and follow the edges of backward. The edge gives , and the edge before it bounds that start in turn. After going once around, the iteration index has dropped by exactly , and every index on the way lies between and , so every inequality applies. Adding them gives
Applying this times, for with , gives . Dividing by and letting ,
So for every cycle , and hence .
The maximum is over simple cycles. A closed walk splits into simple cycles , and its ratio is , a mediant of the ratios , which is at most the largest of them. So closed walks give nothing larger, and the maximum exists since there are finitely many simple cycles.
Attainment. Let and ask for constants with
These are difference constraints. Read them as a graph with an arc of weight . A cycle of this graph has weight by the choice of , so there is no positive cycle. Add a source with arcs of weight 0 to every node; the longest path distances from it exist, are at least 0, and satisfy every constraint. Set . Then for each edge, , so is a schedule, and .
The same argument with finds a positive cycle, which is how a parametric search decides whether a given period is feasible: negative cycle detection on the weights , inside a binary search on or inside the Dinkelbach method. With one delay on every edge the ratio is a cycle mean, and Karp's algorithm applies; Parhi's book (Chapter 2.4) reduces the general case to a cycle mean on a graph whose nodes are the delays.
Consequences
- Retiming cannot beat it. A retiming keeps the number of delays on every cycle. A cycle with delays is cut by them into at most paths with no delay, whose times add to , so one of them takes at least . Hence every retimed circuit has a clock period of at least , and of at least when all times are integers.
- Unfolding reaches it. Unfolding by multiplies the iteration bound by while one iteration now handles samples, so the bound per sample stays . When is an integer, the unfolded graph can have a clock period that matches its bound; the unfolding page proves the factor and works an example.
- Folding needs it. In the folding transformation the registers around a cycle add up to , so a folding with factor exists only if every cycle has , the iteration bound of the folded hardware in clock cycles.
- Modulo scheduling. The recurrence bound RecMII of SDC modulo scheduling is the same ratio, rounded up to an integer initiation interval.
- Dataflow throughput. The throughput of a synchronous dataflow graph on unlimited processors is the inverse of the iteration bound of its homogeneous expansion, and the throughput of a latency-insensitive design is a cycle ratio of the same kind.
Tightness
The attainment part shows that the bound cannot be raised for real-valued start times on unlimited processors. With a clock, it is tight only up to the unfolding factor, as this example shows.
Take the filter , with one adder of time 1 and two multipliers (by 3) and (by 5) of time 2. The edges are with no delay and with 2 delays, and with 1 delay and with 2 delays. The loop has ratio , and the loop has ratio , so and is the critical loop.
The constraints of the proof with give and allow . So and start iteration at time and starts at : two samples every 3 time units, which meets the bound. A clocked circuit with no unfolding has an integer period, and the consequence above gives at least ; the critical path of the graph as given is , of length 3, and a retiming reaches 2. Unfolding by 2 gives a graph with iteration bound 3 and critical path 3, so 1.5 time units per sample.
History
Renfors and Neuvo (1981) derived the bound for recursive digital filters built from adders and multipliers, and showed that it can be reached. Parhi and Messerschmitt (1991) showed that unfolding by a suitable factor gives a program that can be scheduled to reach it, which they called rate optimal. Parhi's 1999 textbook made the iteration bound the first tool of DSP architecture design, with algorithms to compute it and its extension to multirate graphs.
References
- Markku Renfors and Yrjö Neuvo, The maximum sampling rate of digital filters under hardware speed constraints, IEEE Transactions on Circuits and Systems CAS-28(3), 196 to 202, 1981, the bound on the sample period of a recursive filter from its loops, and its attainment
- Keshab K. Parhi, VLSI Digital Signal Processing Systems, Design and Implementation, Wiley, 1999, Chapter 2 (2.3 loop bound and iteration bound, 2.4 algorithms for computing the iteration bound, 2.5 multirate graphs)
- Keshab K. Parhi and David G. Messerschmitt, Static rate-optimal scheduling of iterative data-flow programs via optimum unfolding, IEEE Transactions on Computers 40(2), 1991, rate-optimal schedules that reach the iteration bound after unfolding
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag RPHN78 Edit this page History Report an error Markdown