--- Quote Start ---
That is not a problem. You are supposed to add previous (y) to current (x) so the delay is part of filter structure.
Thus if x stream is 1, 2, 3 then
y1 = 1+2*0 = 1
y2 = 2+2*1 = 4
y3 = 3+2*4 = 11 and so on
--- Quote End ---
I think that you don't understad my problem..!
i want realized the output iir_1_ok.pdf..
but the result of my first program iir_1.txt is 01.pdf.. where there are 0 between one result and other (10-0-20-0-40-0-80..)
so in this case the "filter" (equation) is:
y(k)=1*x(k)+2*y(k-2) and input is a impulse x(0)=10 x(0)=0 x(1)=0 ecc.. :cry:
but i want realize y(k)=1*x(k)+2*
y(k-1) :o
so.. the problem is in the second iteration.. where the result of autoregressive part (pnum(0) that is 20) is summed to adder(0) but the result is showed in the next iteration (next clock) because adder is a signal and it is in the process, so in this iteration adder(0) is equal to 0...and the update value is showed next.. and this result (0) is read every cycle so it's reply at every 2 clock..
I try to delay the moving average part to sum these two part together correctly.. (program iir_1_delay.txt) but i don't do these operation correctly so.. the result is showed in 02.pdf
do you understand my problem?
How can i work to resolve this problem ( the adder is a signal to develop the delay between each tap..)???
thank you!:(