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).
- Code Generation
Using code generation with the Phased Array System Toolbox™.
- FPGA-Based Beamforming in Simulink: Algorithm Design
This example shows the first half of a workflow to develop a beamformer in Simulink® suitable for implementation on hardware, such as a field programmable gate array (FPGA).
- FPGA-Based Beamforming in Simulink: Code Generation
This workflow generates HDL code for a beamforming algorithm and verifies that the generated code is functionally correct.
Examples and How To
- Generate MEX Function to Estimate Directions of Arrival
Estimate signal directions of arrival.
- Generate MEX Function Containing Persistent System Objects
Make System Objects persistent.