Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

DSP filter problem in matlab

Status
Not open for further replies.

ali kotb

Member level 3
Member level 3
Joined
Feb 11, 2012
Messages
61
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,288
Visit site
Activity points
1,732
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
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top