Forum Discussion
Altera_Forum
Honored Contributor
14 years agoHere i'll repost my entire Design specs again, i think i'm losing you. The QMF filter bank, simply reconstructs the original Signal you input, but putting it through a series of decimators and interpolators. so the input and output should be the same with the exception of a delay.
N = 99;
= firpr2chfb(N,.45);
% Analysis filters (decimators).
Hlp = mfilt.firdecim(2,H0);
Hhp = mfilt.firdecim(2,H1);
% Synthesis filters (interpolators).
Glp = mfilt.firinterp(2,G0);
Ghp = mfilt.firinterp(2,G1);
Hlp.arithmetic = 'fixed';
Hlp.InputWordLength = 11;
Hlp.InputFracLength = 0;
Hlp.FilterInternals = 'FullPrecision';
Hlp.CoeffWordLength = 10;
Hlp.signed = true;
Hhp.arithmetic = 'fixed';
Hhp.InputWordLength = 11;
Hhp.InputFracLength = 0;
Hhp.FilterInternals = 'FullPrecision';
Hhp.CoeffWordLength = 10;
Hhp.signed = true;
Glp.arithmetic = 'fixed';
Glp.InputWordLength = 22;
Glp.InputFracLength = 0;
Glp.FilterInternals = 'FullPrecision';
Glp.signed = true;
Glp.CoeffWordLength = 10;
Ghp.arithmetic = 'fixed';
Ghp.InputWordLength = 22;
Ghp.InputFracLength = 0;
Ghp.FilterInternals = 'FullPrecision';
Ghp.signed = true;
Ghp.CoeffWordLength = 10;
I've tried changing the input wordlength and and fraction bits, but nothing seems to help, and i'm getting no where close to expected output. Is this more helpful...?