Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Scroll Documents: Update page title prefix

Overview

Simulates loading of fir fract32 filter

Discussion

This module is used for CPU load testing purposes and implements a large number of fixed point 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 fract32 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 _ModuleFIRLoadingFract32
{
    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_modFIRFract32Instance *filt; // FIR fract32 filter
} ModuleFIRLoadingFract32Class;

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: fract32

MATLAB Usage

File Name: fir_loading_fract32_module.m

...