Altera_Forum
Honored Contributor
16 years agoPipelining a recursive equation
Dear Forum,
I am working on a polyphase filter implementation, which is built up from a number of recursive equations such as: A(n) = alpha*[X(n-1)-A(n-1)] + beta*[X(n)-A(n-2)] + X(n-2) Such an expression has to be pipelined (current depth is 5) given the bit width of A and X (which is 26) and the given clock speed. However as A depends on the previous value of A, and the previous value won't be available for another 4 time steps, I'm beginning to think that pipelining such an expression is impossible. So, to make it as simple as possible, my question is: In principle, is it impossible to pipeline the following seemingly simple recursive expression: A(n) = X(n) - A(n-1) ? I'm beginning to think that the following limitations must be enforced if recursive relationships are to be pipelined, i.e., A(n) = X(n) - A(n-y) can be pipelined as long as y >= the pipeline depth. Any thoughts we be greatly appreciated. Kind regards, Kurt