Main Content

Code Generation

Generate C/C++ code and MEX functions or generate HDL code from Simulink models

You can generate executable C/C++ code and MEX functions from code. For a list of functions and System objects that support code generation, see Function List (C/C++ Code Generation).

You can implement a Simulink® model or subsystem in hardware by generating HDL code and deploying that code on an Application-Specific Integrated Circuit (ASIC) or Field Programmable Gate Array (FPGA). Examples below show how to generate HDL code from Simulink models. For more information on HDL code generation from Simulink models, see HDL Code Generation from Simulink (HDL Coder).

Topics

Featured Examples