Conditions for Code Replacement of DSP System Objects with QHL
Each DSP System object™ that can be used with the Embedded Coder® Support Package for Qualcomm® Hexagon® Processors requires specific conditions to allow code replacement with the Qualcomm Hexagon Library (QHL). You use this code replacement when generating C code from a model. The Qualcomm Hexagon Library (QHL) supports these DSP System object only when you set specific properties, as indicated in the following table:
.
DSP System Object | Input Requirements | Parameter Requirements | Equivalent Functions in Replacement |
---|---|---|---|
dsp.FIRFilter (DSP System Toolbox) |
|
|
mw_qhdsp_fir_af
|
dsp.FIRDecimator (DSP System Toolbox) |
|
|
|
dsp.FFT (DSP System Toolbox) |
|
|
|
dsp.IFFT (DSP System Toolbox) |
|
|
|
dsp.SOSFilter (DSP System Toolbox) |
| Filter structure: Direct-form II Transposed Coefficient sources: Property / Input port HasScaleValues: True / False Number of sections: 2 or 3 AND "FrameLength >= 50 (or) Number of sections>= 4 AND FrameLength >= 9 |
|
Note
Use only column-major layout for QHL/HVX replacements. For more information, see Row-Major and Column-Major Array Layouts.
See Also
Conditions for Code Replacement of DSP Blocks with QHL | Conditions for Code Replacement of Math Functions with QHL | Conditions for Code Replacement of Math Operators with QHL | Conditions for Code Replacement of DSP Blocks with HVX | Conditions for Code Replacement of DSP System Objects with HVX | Conditions for Code Replacement of Math Operators with HVX