Altera_Forum
Honored Contributor
14 years agoband pass FIR filter and weird response
Dear all,
I have used altera quartus 12.0 FIR II compiler to generate a bandpass filter. The filter uses 11bits coefficients with 17bit data entry and has 80 taps. I put all that into simulation and I've injected a DC-like signal to see step response of the filter. See following picture: http://belohrad.web.cern.ch/belohrad/broken_filter_data.png On the picture you can see filter input signal beamdataxdny which is being filtered and the filter's response is in filteredbeamdataxd. The input signal starts at zero, then it is pulled for a short time into the minimum possible value (-32768) and the it is pulled to maximum value of 32767, where it stays for a long time. Should we have a true bandpass filter, one would say to see a sort of 'chirp' response, what I exactly see. But one would expect as well, that the chirp will disappear and the filter goes back into a steady state, with zero output value. But apparently this is not the case at all. Because chirp goes off, and the filter's output value stabilizes at 65534 instead of zero. What is even more mysterious for me is, that when I reinjected another signal http://belohrad.web.cern.ch/belohrad/broken_filter_data1.png , this time I have injected a proper sine-wave like signal with amplitude of '3' and then I set the input signal to zero, the FIR filter reacts this time correctly: first a chirp response due to transition, then correct filtering and when signal disappears, the filter's output value goes to zero. So now my question: what is wrong with this filter? Did I specify something incorrectly when designing it? any help kindly appreciated david