MATLAB Language Support
The MATLAB functions and language syntax supported for SystemC™ code generation are available on 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
- Functions Supported for HDL and SystemC Code Generation
Built-in MATLAB and toolbox functions supported for HDL and SystemC code generation.
- Supported MATLAB Data Types, Operators, and Control Flow Statements
Supported data types, operators, and control flow statements for HDL and SystemC code generation.
- Complex Data Type Support for SystemC Code Generation
Describes how complex signals and operations in MATLAB code map to generated SystemC code.
- Structure Definition for SystemC Code Generation
Use structures in MATLAB code intended for SystemC code generation.
- Bitwise Operations in MATLAB for HDL and SystemC Code Generation
HDL Coder™ supports bit shift, bit rotate, bit slice operations that mimic HDL-specific and SystemC-specific operators without saturation and rounding logic.
- Mapping of Different Rounding and Overflow Methods from MATLAB to SystemC
Mapping rounding and overflow methods form MATLAB to SystemC.
- Persistent Variables and Persistent Array Variables
MATLAB persistent variable and persistent array variable language support language support for HDL and SystemC code generation.
- Load constants from a MAT-File
Use the coder.load function to load constants from a MAT-file.
- Guidelines for Writing MATLAB Code to Generate Efficient HDL and SystemC Code
Guidelines for writing efficient MATLAB code and design requirements for efficient HDL and SystemC code generation.
- Replace Arithmetic Operation to Generate Efficient SystemC Code
Best practices for using division operation in your MATLAB code for SystemC code generation.