filter impulse response problem
3 views (last 30 days)
Show older comments
hello all , I need to implement CIC decimator, here is the matlab code using fvtool
r=64;
m=1;
n=3;
iwl=16;
owl=12;
IFL = 0; % Input fraction length
CIC = mfilt.cicdecim(r,m,n);
CIC.InputFracLength = IFL;
f_in =5120;
h=fvtool(CIC,'FS',f_in);
I checked the impulse response using the fvtool and it gives me a complete different response when using the following code:
x= zeros(16*100,1,'int16'); x(1)=1;
d=filter(CIC,x);
stem(d);
what is the problem ? , when i used the HDL coder, the response of the verilog code is just like the 2nd case
please help me thank u
0 Comments
Answers (0)
See Also
Categories
Find more on Digital Filter Analysis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!