Code Generation Tools
Code Generation Tools
supports most of the MATLAB language and a wide range of toolboxes. You can integrate
the generated code into your projects as source code, static libraries, or dynamic libraries.
You can also use the generated code within the MATLAB environment to accelerate
computationally intensive portions of your MATLAB code. MATLAB Coder lets you
incorporate legacy C code into your MATLAB algorithm and into the generated code.
By using MATLAB Coder with Embedded Coder , you can further optimize code efficiency
®
and customize the generated code. You can then verify the numerical behavior of the
generated code using software-in-the-loop (SIL) and processor-in-the-loop (PIL) execution.
• Product Requirement:
• Requires MATLAB
• Simulink Coder recommended
• Embedded Coder recommended
• Requires Fixed-Point Designer for generating fixed-point code
• Requires host platform C compiler. See list of supported host compilers.
• Requires cross-compiler for the target processor if the code will execute on a platform different
from the host.
Simulink Coder
Generate C and C++ code from Simulink and
Stateflow models
Simulink Coder™ (formerly Real-Time Workshop ) generates and executes C and C++
®
code from Simulink diagrams, Stateflow charts, and MATLAB functions. The generated
® ® ®
source code can be used for real-time and nonreal-time applications, including simulation
acceleration, rapid prototyping, and hardware-in-the-loop testing. You can tune and monitor
the generated code using Simulink or run and interact with the code outside MATLAB and
Simulink.
• Product Requirement:
• Requires MATLAB
• Requires Simulink
• Requires MATLAB Coder
• Embedded Coder recommended
• Simulink Real-Time recommended
• Requires Fixed-Point Designer for generating fixed-point code
• Requires host platform C compiler. See list of supported host compilers.
• Requires cross-compiler for the target processor if the code will execute on a platform different
from the host.
Embedded Coder
Generate C and C++ code optimized for
embedded systems
Embedded Coder generates readable, compact, and fast C and C++ code for use on
®
Embedded Coder offers built-in support for AUTOSAR and ASAP2 software standards. It
also provides traceability reports, code interface documentation, and automated software
verification to support DO-178, IEC 61508, and ISO 26262 software development.
• Product Requirement:
• Requires MATLAB
• Requires MATLAB Coder
• Requires Simulink for generating code from Simulink
• Requires Simulink Coder for generating code from Simulink
• Requires Fixed-Point Designer for generating fixed-point code
• Requires host platform C compiler. See list of supported host compilers.
• Requires cross-compiler for the target processor if the code will execute on a platform different
from the host.
HDL Coder (MATLAB/Simulink)
Generate VHDL and Verilog code for FPGA
and ASIC designs
HDL Coder™ generates portable, synthesizable Verilog and VHDL code from
® ®
MATLAB functions, Simulink models, and Stateflow charts. The generated HDL code can
® ® ®
HDL Coder provides a workflow advisor that automates the programming of Xilinx and ®
Intel FPGAs. You can control HDL architecture and implementation, highlight critical paths,
®
• Product Requirement:
• Requires MATLAB
• Requires Fixed-Point Designer
• Requires MATLAB Coder
• Simulink recommended
• Signal Processing Toolbox recommended
• DSP System Toolbox recommended
• HDL Verifier recommended
GPU Coder
Generate CUDA code for NVIDIA GPUs
GPU Coder™ generates optimized CUDA code from MATLAB code for deep learning,
® ®
embedded vision, and autonomous systems. The generated code calls optimized NVIDIA
CUDA libraries, including cuDNN, cuSolver, and cuBLAS. It can be integrated into your
project as source code, static libraries, or dynamic libraries, and can be used for prototyping
on GPUs such as the NVIDIA Tesla and NVIDIA Tegra . You can use the generated CUDA
® ®
When used with Embedded Coder , GPU Coder lets you verify the numerical behavior of
®