I am interested in verifying a FIR filter. I have implemented an moving average FIR filter and have written couple of stimulus to verify.
The first stimulus is a sine wave that I expect filter to pass as it is. The filer does. The second stimulus, I pass just an impulse and expect the co-efficient to appear at the output. This is what I actually see.
However, there are two issues I feel need to be taken care of. Firstly, I cannot depend on waveform shape and conclude if filter is working. I have to have quantifiable values and use that as a basis for concluding if filter is working. E.g. SNR ...
Secondly, I know, these two checks alone are not sufficient for verification. I even have some ideas about additional stimulus but I don't know what to expect for those stimulus.
For example,
1) I feel, I have to measure the power of the output or power of frequency response. But I don't know how to go about it 2) Similarly, I might have to measure SNR based on sine inputs but don't know what is the acceptable values 2) I also tried adding two sine waves, one with high frequency and one with low frequency and passing it through the filter. I see that output is a low frequency sine wave but it is sort of distorted. I am not sure, if values from high frequencies are getting added, resulting in this distortion
I would like to get inputs on these please ...
Here are the co-efficients of the filer: 0.2 0.2 0.2 0.2 0.2