Is it possible to control the individual products and accumulators of my QFILT object with the DSP Blockset 5.0 (R13)?

조회 수: 3 (최근 30일)
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.

채택된 답변

MathWorks Support Team
MathWorks Support Team 2009년 6월 27일
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개)

카테고리

Help CenterFile Exchange에서 Single-Rate Filters에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by