dsphdl.BiquadFilter
Description
A biquad filter is a form of infinite-impulse response (IIR) filter where the numerator and denominator are split into a series of second-order sections connected by gain blocks. This type of filter can replace a large FIR filter that uses an impractical amount of hardware resources. Designs often use biquad filters as DC blocking filters or to meet a specification originally implemented with an analog filter, such as a pre-emphasis filter.
To filter input data with an HDL-optimized biquad filter:
Create the
dsphdl.BiquadFilter
object and set its properties.Call the object with arguments, as if it were a function.
To learn more about how System objects work, see What Are System Objects?
Note
You can also generate HDL code for this hardware-optimized algorithm, without creating a MATLAB® script, by using the DSP HDL IP Designer app. The app provides the same interface and configuration options as the System object™.
Creation
Description
creates an
HDL-optimized biquad filter. The default filter is a direct form II architecture with one
section.myfilt
= dsphdl.BiquadFilter
sets properties using one or more name-value pairs. Enclose each property name in single
quotes.myfilt
= dsphdl.BiquadFilter(Name,Value
)
For example:
myfilt = dsphdl.BiquadFilter('Structure','Direct form II transposed', ... 'OutputDataType','Custom', ... 'CustomOutputDataType',numerictype(1,16,14)); [dataOut,validOut] = myfilt(dataIn,validIn);
Properties
Usage
Description
Input Arguments
Output Arguments
Object Functions
To use an object function, specify the
System object as the first input argument. For
example, to release system resources of a System object named obj
, use
this syntax:
release(obj)
Algorithms
This System object implements the algorithms described on the Biquad Filter block reference page.