Simulink Blocks in DSP System Toolbox that Support Fixed-Point

This section lists the Simulink® blocks in DSP System Toolbox™ which support fixed-point operations. This information is also available in the Simulink block data type support table for DSP System Toolbox. To access this table, type the command below in the MATLAB® command prompt.

BlockDescription
Sources
Constant

Generate constant value

Discrete Impulse

Generate discrete impulse

Identity Matrix

Generate matrix with ones on main diagonal and zeros elsewhere

NCO

Generate real or complex sinusoidal signals

NCO HDL Optimized

Generate real or complex sinusoidal signals—optimized for HDL code generation

Signal From Workspace

Import signal from MATLAB workspace

Sine Wave

Generate continuous or discrete sine wave

Sinks
Array Plot

Display vectors or arrays

Display

Show value of input

Matrix Viewer

Display matrices as color images

Spectrum Analyzer

Display frequency spectrum of time-domain signals

Time Scope

Display time-domain signals

To Workspace

Write data to MATLAB workspace

Triggered To Workspace

Write input sample to MATLAB workspace when triggered

Waterfall

View vectors of data over time

Adaptive Filters
LMS Filter

Compute output, error, and weights using LMS adaptive algorithm

Filter Designs
CIC Compensation Decimator

Compensate for CIC filter using FIR decimator

CIC Compensation Interpolator

Compensate for CIC filter using FIR interpolator

Differentiator Filter

Direct form FIR full band differentiator filter

FIR Halfband Decimator

Decimate signal using polyphase FIR halfband filter

FIR Halfband Interpolator

Interpolate signal using polyphase FIR half band filter

Highpass Filter

Design FIR or IIR highpass filter

Lowpass Filter

Design FIR or IIR lowpass filter

Filter Implementations
Allpole Filter

Model allpole filters

Biquad Filter

Model biquadratic IIR (SOS) filters

Discrete FIR Filter

Model FIR filters

Discrete Filter

Model Infinite Impulse Response (IIR) filters

Filter Realization Wizard

Construct filter realizations using digital filter blocks or Sum, Gain, and Delay blocks

Multirate Filters
CIC Decimation

Decimate signal using Cascaded Integrator-Comb filter

CIC Interpolation

Interpolate signal using Cascaded Integrator-Comb filter

FIR Decimation

Filter and downsample input signals

FIR Interpolation

Upsample and filter input signals

FIR Rate Conversion

Upsample, filter, and downsample input signals

FIR Rate Conversion HDL Optimized

Upsample, filter, and downsample input signals—optimized for HDL code generation

Two-Channel Analysis Subband Filter

Decompose signal into high-frequency and low-frequency subbands

Two-Channel Synthesis Subband Filter

Reconstruct signal from high-frequency and low-frequency subbands

Linear Prediction
Levinson-Durbin

Solve linear system of equations using Levinson-Durbin recursion

Transforms
DCT

Discrete cosine transform (DCT) of input

FFT

Fast Fourier transform (FFT) of input

FFT HDL Optimized

Fast Fourier transform—optimized for HDL code generation

IDCT

Inverse discrete cosine transform (IDCT) of input

IFFT

Inverse fast Fourier transform (IFFT) of input

IFFT HDL Optimized

Inverse fast Fourier transform—optimized for HDL code generation

Magnitude FFT

Compute nonparametric estimate of spectrum using periodogram method

Short-Time FFT

Nonparametric estimate of spectrum using short-time, fast Fourier transform (FFT) method

Statistics
Autocorrelation

Autocorrelation of vector or matrix input

Correlation

Cross-correlation of two inputs

Histogram

Generate histogram of input or sequence of inputs

Maximum

Find maximum values in input or sequence of inputs

Mean

Find mean value of input or sequence of inputs

Median

Find median value of input

Minimum

Find minimum values in input or sequence of inputs

Sort

Sort input elements by value

Variance

Compute variance of input or sequence of inputs

Quantizers
Scalar Quantizer Decoder

Convert each index value into quantized output value

Scalar Quantizer Encoder

Encode each input value by associating it with index value of quantization region

Vector Quantizer Decoder

Find vector quantizer codeword that corresponds to given, zero-based index value

Vector Quantizer Encoder

For given input, find index of nearest codeword based on Euclidean or weighted Euclidean distance measure

Signal Operations
Constant Ramp

Generate ramp signal with length based on input dimensions

Convolution

Convolution of two inputs

DC Blocker

lock DC component

Digital Down-Converter

Translate digital signal from Intermediate Frequency (IF) band to baseband and decimate it

Digital Up-Converter

Interpolate digital signal and translate it from baseband to Intermediate Frequency (IF) band

Downsample

Resample input at lower rate by deleting samples

Farrow Rate Converter

Polynomial sample-rate converter with arbitrary conversion factor

NCO

Generate real or complex sinusoidal signals

NCO HDL Optimized

Generate real or complex sinusoidal signals—optimized for HDL code generation

Offset

Truncate vectors by removing or keeping beginning or ending values

Pad

Pad or truncate specified dimension(s)

Peak Finder

Determine whether each value of input signal is local minimum or maximum

Repeat

Resample input at higher rate by repeating values

Sample and Hold

Sample and hold input signal

Triggered Signal From Workspace

Import signal samples from MATLAB workspace when triggered

Upsample

Resample input at higher rate by inserting zeros

Variable Fractional Delay

Delay input by time-varying fractional number of sample periods

Variable Integer Delay

Delay input by time-varying integer number of sample periods

Window Function

Compute and/or apply window to input signal

Zero Crossing

Count number of times signal crosses zero in single time step

Math Operations
Complex to Magnitude-Angle HDL Optimized

Compute magnitude and/or phase angle of complex signal—optimized for HDL code generation using the CORDIC algorithm

Cumulative Product

Cumulative product of channel, column, or row elements

Cumulative Sum

Cumulative sum of channel, column, or row elements

Difference

Compute element-to-element difference along specified dimension of input

Normalization

Perform vector normalization along rows, columns, or specified dimension

dB Gain

Apply decibel gain

Matrix Operations
Array-Vector Add

Add vector to array along specified dimension

Array-Vector Divide

Divide array by vector along specified dimension

Array-Vector Multiply

Multiply array by vector along specified dimension

Array-Vector Subtract

Subtract vector from array along specified dimension

Create Diagonal Matrix

Create square diagonal matrix from diagonal elements

Extract Diagonal

Extract main diagonal of input matrix

Extract Triangular Matrix

Extract lower or upper triangle from input matrices

Identity Matrix

Generate matrix with ones on main diagonal and zeros elsewhere

Matrix Concatenate

Concatenate input signals of same data type to create contiguous output signal

Matrix Product

Multiply matrix elements along rows, columns, or entire input

Matrix Square

Compute square of input matrix

Matrix Sum

Sum matrix elements along rows, columns, or entire input

Matrix 1-Norm

Compute 1-norm of matrix

Matrix Multiply

Multiply or divide inputs

Overwrite Values

Overwrite submatrix or subdiagonal of input

Permute Matrix

Reorder matrix rows or columns

Submatrix

Select subset of elements (submatrix) from matrix input

Toeplitz

Generate matrix with Toeplitz symmetry

Matrix Factorizations
LDL Factorization

Factor square Hermitian positive definite matrices into lower, upper, and diagonal components

LU Factorization

Factor square matrix into lower and upper triangular components

Linear System Solvers
Backward Substitution

Solve UX=B for X when U is upper triangular matrix

Forward Substitution

Solve LX=B for X when L is lower triangular matrix

Levinson-Durbin

Solve linear system of equations using Levinson-Durbin recursion

Switches and Counters
Edge Detector

Detect transition from zero to nonzero value

Event-Count Comparator

Detect threshold crossing of accumulated nonzero inputs

N-Sample Switch

Switch between two inputs after specified number of sample periods

Buffers
Buffer

Buffer input sequence to smaller or larger frame size

Delay Line

Rebuffer sequence of inputs

Queue

Store inputs in FIFO register

Stack

Store inputs into LIFO register

Unbuffer

Unbuffer input frame into sequence of scalar outputs

Indexing
Flip

Flip input vertically or horizontally

Multiport Selector

Distribute arbitrary subsets of input rows or columns to multiple output ports

Overwrite Values

Overwrite submatrix or subdiagonal of input

Selector

Select input elements from vector, matrix, or multidimensional signal

Submatrix

Select subset of elements (submatrix) from matrix input

Variable Selector

Select subset of rows or columns from input

Signal Attributes
Check Signal Attributes

Error when input signal does or does not match selected attributes exactly

Convert 1-D to 2-D

Reshape 1-D or 2-D input to 2-D matrix with specified dimensions

Convert 2-D to 1-D

Convert 2-D matrix input to 1-D vector

Data Type Conversion

Convert input signal to specified data type

Frame Conversion

Specify sampling mode of output signal

Inherit Complexity

Change complexity of input to match reference signal

Related Topics