Overview
Simulates loading of fir filter
Discussion
This module is used for CPU load testing purposes and implements a large number of FIR filter taps. At instantiation time, you specify MAXNUMTAPS - the maximum number of filter taps that you would like to simulate. Then at run-time you can vary the number of filter taps running from 1 to MAXNUMTAPS. This makes the CPU work harder since more filter taps are running. Internally, the module uses a FIR module to implement the filtering.
Note that if the filter is connected to a multichannel input, then the module implements numChannels * numTaps filters. That is, the number of filters is scaled by the number of channels processed.
Type Definition
Code Block |
---|
typedef struct _ModuleFIRLoading { ModuleInstanceDescriptor instance; // Common Audio Weaver module instance structure INT32 maxTaps; // Maximum FIR filter taps that can be run INT32 numTaps; // Number of FIR filter taps currently running awe_modFIRInstance *filt; // FIR filter } ModuleFIRLoadingClass; |
Variables
Properties
Name | Type | Usage | isHidden | Default value | Range | Units |
maxTaps | int | const | 0 | 1000 | 1:1000 | |
numTaps | int | parameter | 0 | 1 | 1:1000 |
Pins
Input Pins
Name: in
Description: Audio Input
...
Sample rate range: Unrestricted
Complex support: Real
Output Pins
Name: out
Description: Audio output
Data type: float
MATLAB Usage
File Name: fir_loading_module.m
...