This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

MATLAB Language Support

MATLAB® language syntax and functions for HDL code generation

The MATLAB functions and language syntax supported for HDL code generation are available from this page. If your MATLAB algorithm uses an unsupported function, you can generate code by replacing the function with a lookup table approximation. See Replacing Functions Using Lookup Table Approximations.

Topics

MATLAB Functions and Operators

Functions Supported for HDL Code Generation — Alphabetical List

Alphabetical list of built-in MATLAB and toolbox functions supported for HDL code generation

Functions Supported for HDL Code Generation — Categorical List

Categorical list of built-in MATLAB and toolbox functions supported for HDL code generation

Supported MATLAB Data Types, Operators, and Control Flow Statements

Supported data types, operators, and control flow statements for HDL code generation.

Persistent Variables and Persistent Array Variables

MATLAB persistent variable and persistent array variable language support language support for HDL code generation

Complex Data Type Support

Describes how complex signals and operations in MATLAB code map to generated HDL code

System Objects

Predefined and user-defined System object™ support for HDL code generation

Load constants from a MAT-File

Use the coder.load function to load constants from a MAT-file.

Signal Processing Algorithms

LMS Filter: Noise Cancellation

This example shows how to generate HDL code from a MATLAB® design that implements an LMS filter.

Bisection Algorithm to Calculate Square Root of an Unsigned Fixed-Point Number

This example shows how to generate HDL code from MATLAB® design implementing an bisection algorithm to calculate the square root of a number in fixed point notation.

Communications Algorithms

Timing Offset Estimation

This example shows how to generate HDL code from a basic lead-lag timing offset estimation algorithm implemented in MATLAB® code.

Data Packetization

This example shows how to generate HDL code from a MATLAB® design that packetizes a transmit sequence.

Transmit and Receive FIFO

This example shows how to generate HDL code from MATLAB® code modeling transfer data between transmit and receive FIFO.

Image Processing Algorithms

Corner Detection

This example shows how to generate HDL code from a design that computes the corner metric by using Harris' technique.

Adaptive Median Filter

This example shows how to generate HDL code from a MATLAB® design implementing the adaptive median filter algorithm suited for HDL code generation.

Contrast Adjustment

This example shows how to generate HDL code from a MATLAB® design that adjusts image contrast by linearly scaling pixel values.

Related Information

Featured Examples