Is it possible to control the individual products and accumulators of my QFILT object with the DSP Blockset 5.0 (R13)?
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I can set the properties for my QFILT object for FIR and IIR filters. However, I do not have access to each accumulator and multiplier input/ output.
QFILT allows me to assign all the attributes at once. However, for optimal design, I need the internal accumulators and multipliers to be of different sizes or need them to have different rounding schemes.
For example,in my project, I need to assign attributes such as "bit width", "type of rounding" etc., to each internal accumulator and multiplier.
Risposta accettata
MathWorks Support Team
il 27 Giu 2009
The ability to control the individual products and accumulators of the QFILT object is available with the DSP Blockset 5.0(R13).
You can start with a QFILT object "Hq" that has a filter structure and coefficients and then execute the following line of code to get a Simulink model in which you can control individual adders and gains.
realizemdl(Hq)
For a clearer understanding, refer to the example below:
[b,a] = butter(5,.5);
Hq = qfilt('df1',{b,a});
%#1 Default syntax:
realizemdl(Hq);
%#2 Using parameter/value pairs:
realizemdl(Hq, 'BlockType', 'Fixed-point blocks', 'OptimizeZeros', 'on');
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Single-Rate Filters in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!