コード生成
コードから、実行可能な C/C++ コードと MEX 関数を生成できます。コード生成をサポートする関数および System object の一覧については、関数リスト (C/C++ コード生成) を参照してください。
HDL コードを生成し、そのコードを ASIC (特定用途向け集積回路) または FPGA (フィールド プログラマブル ゲート アレイ) に展開することで、Simulink® モデルまたはサブシステムをハードウェアに実装できます。以下の例は、Simulink モデルから HDL コードを生成する方法を示しています。Simulink モデルからの HDL コード生成の詳細については、Simulink からの HDL コード生成 (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). It also shows how to compare the results of the implementation model with those of a behavioral model.
- 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.
- Generate MEX Function to Estimate Directions of Arrival
Estimate signal directions of arrival.
- Generate MEX Function Containing Persistent System Objects
Make System Objects persistent.






