I designed a polyphase decimator in MATLAB using mfilt.firdecim function. This gave me a direct-form FIR polyphase decimator object 'hm' as
hm = mfilt.firdecim(...);
Now I want to generate a Xilinx coefficients file with the coefficients of hm. I tried the following:
hm = mfilt.firdecim(...);
hq = dfilt.dffir(hm.Numerator); % Use dfilt.dffir as that's what coewrite would accept
hq.Arithmetic = 'fixed';
coewrite(hq, 10, 'mycoefile');
This did generate a coe file. However I am not sure if this is correct. A major source of my problem is that the mfilt.firdecim is a Direct Form FIR Polyphase Decimator structure while dfilt.dffir is Direct Form FIR structure.
So, how do I generate coefficients for the Polyphase decimator structure?
Regards,
Anindya.