Document toolboxDocument toolbox

(8.D.2.2 ) FIRLoading

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

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

Data type: float

Channel range: Unrestricted

Block size range: Unrestricted

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

M = fir_loading_module(NAME, MAXNUMTAPS) Module which simulates the loading of MAXNUMTAPS fir module. The module is used for profiling and demonstrations of the computational capabilities of processors. Arguments: NAME - name of the module. MAXNUMTAPS - maximum taps that will be tried (this is used for memory allocation and is set to 10000 by default).

Â