Altera_Forum
Honored Contributor
14 years agoWhy filter output is like this ?
Hi . Details of FIR filter
FIR rectangular Window BPF Order 3 No. of coefficients = 4 Fc1 = 1 Hz Fc2 = 24 Hz Fs = 100 Hz figure 1 (https://picasaweb.google.com/lh/photo/twkb1ndv70nlf_yyldlubw?feat=directlink) shows the Simulink model of symmetric FIR realization. figure 2 (https://picasaweb.google.com/lh/photo/iy3punhc3homoffa0gfrfa?feat=directlink) shows the comparison of ( top to down ) input, Simulink model o/p, o/p using HDLimport after generating HDL code from the model for the filter subsystem. figure 3 (https://picasaweb.google.com/lh/photo/xpenvlyowzlwfpm2scsxrg?feat=directlink) represents complete model. My doubt is why there is a difference in the o/p values in both cases ie, normal subsystem using simulink blocks and subsystem using HDLimport. Filter coefficients were obtained using FDAtool which are [0.143537584073133 0.415799512456997 0.415799512456997 0.143537584073133] I tried with higher filter order ( 12, 16, 32 ) , but results were very poor.( some sort of square pulses at irregular intervals). i used fixed point rep. as follows for i/p = 16(10+6) for coeff. = 16(10+6) Thank you.