Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to use coewrite for polyphase filter coefficients?

11 views
Skip to first unread message

Anindya G

unread,
Jul 6, 2009, 4:36:01 PM7/6/09
to
Hello All,

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.

0 new messages