Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

Changing Arithmetic to fixed point for a multistage FIR design

1 vue (au cours des 30 derniers jours)
Pedro Gelabert
Pedro Gelabert le 7 Fév 2018
Clôturé : MATLAB Answer Bot le 20 Août 2021
I am trying to observe the fixed point effects of a multistage decimation. However, the system object does not seem to change arithmetic to fixed point. For example:
fdDecim = fdesign.decimator(M,'lowpass', Fpass, Fstop, Apass, Astop);
msDecim = design( fdDecim, 'multistage', 'Usehalfbands', true, 'SystemObject', true);
msDecim.Stage1.CoefficientsDataType = 'Custom';
msDecim.Stage1.ProductDataType = 'Custom';
msDecim.Stage1.AccumulatorDataType = 'Custom';
msDecim.Stage2.CoefficientsDataType = 'Custom';
msDecim.Stage2.ProductDataType = 'Custom';
msDecim.Stage2.AccumulatorDataType = 'Custom';
msDecim.Stage1.CustomCoefficientsDataType = numerictype([],32,31);
msDecim.Stage1.CustomAccumulatorDataType = numerictype([],32, 31);
msDecim.Stage1.CustomProductDataType = numerictype([],32, 31);
msDecim.Stage2.CustomCoefficientsDataType = numerictype([],32,31);
msDecim.Stage2.CustomAccumulatorDataType = numerictype([],32, 31);
msDecim.Stage2.CustomProductDataType = numerictype([],32, 31);
But info(msDecim) shows Arithmetic : double
What else do I need to set to convert this object to a fixed point implementation?

Réponses (0)

Cette question est clôturée.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by