The second project of Implementation of Digital Signal Processing (IDSP), done with Mathijs Polman. The assignment builds on the IIR filter from Project MAP: instead of just scheduling the data-flow graph (DFG), you transform it first (retiming, pipelining, look-ahead) to get a faster design.

Previous: Project MAP · Next: Project GFS


TRA-1: Retiming and pipelining

The original DFG has a critical path of 7 clock cycles. We moved the middle delay elements forward twice, first through m2–m5 and then through p3 and p4. That brings the critical path down to 4 cycles.

The retiming steps.

To check the behaviour didn’t change, we compared the difference equations. Originally, . After retiming, p3 computes , but its output goes through a delay, so it again comes out as .

For pipelining we looked at the iteration period bound:

The critical loop (top left) has 4 cycles of propagation delay and one delay element, so the bound is 4: equal to the critical path. Pipelining feed-forward cutsets therefore won’t help. To go faster we have to change the transfer function itself, which is what look-ahead does.

TRA-2: Arx model

We modelled the retimed DFG in Arx in the data-flow style of sec_df2.arx. Its output matches the earlier designs.


TRA-3: Look-ahead transformation

From the transfer function

the recursive part of the filter is

p1 is the bottleneck () and the point where data enters the feed-forward part, so that’s where we apply look-ahead. Substituting the equation for into itself and precomputing the constant terms gives

Now only depends on and , so the loop gets an extra delay. The longest feedback loop now has two delay elements and 4 cycles of propagation delay, so the bound becomes cycles: the iteration period bound is halved. The cost is an extra multiplier and adder for the term, plus more latency.

The pipelined look-ahead DFG.

TRA-4: Simulating the look-ahead design

Because of the extra pipelining and look-ahead, the filter takes a few more samples before it produces output. Apart from that time shift, the output matches the original filter.


TRA-5: Rate-optimal overlapped schedule

A multiplication takes 2 cycles and the new iteration period is also 2 cycles, so multipliers can’t be shared. With 5 additions in 2 cycles we need at least adders. We made the inequality graph and a schedule with latency 5, but because of time constraints and problems implementing it, we didn’t finish this part in Arx.