ソフトウェアインザループ シミュレーション
ソフトウェアインザループ (SIL) シミュレーションは生成されたソース コードをコンパイルし、そのコードを個別のプロセスとしてホスト コンピューターで実行します。ノーマル モードのシミュレーション結果と SIL シミュレーション結果を比較することで、モデルと生成されたコードの数値的等価性をテストできます。SIL シミュレーション中に、生成されたコードのコード カバレッジ メトリクスと実行時間メトリクスを収集できます。
アプリ
SIL/PIL マネージャー | Verify generated code |
トピック
- SIL シミュレーションおよび PIL シミュレーション
ソフトウェアインザループ (SIL) シミュレーションとプロセッサインザループ (PIL) シミュレーションの概要
- Choose a SIL or PIL Approach
Test code generated from top models, referenced models, or subsystems.
- Configure and Run SIL Simulation
Set up and run top-model SIL, Model block SIL, and SIL block simulations.
- Unit Test Subsystem Code with SIL/PIL Manager
Perform unit testing on atomic subsystem by using SIL/PIL Manager.
- SIL/PIL Manager Verification Workflow
A simplified workflow for verifying generated code.
- Simulation Mode Override Behavior in Model Reference Hierarchy
How the simulation mode of the top model or parent model determines the simulation behavior of a model hierarchy.
- SIL and PIL Limitations
Modeling and code generation features that are not supported or partially supported by SIL and PIL simulations.
トラブルシューティング
SIL または PIL のシミュレーション中における生成コードのデバッグ
デバッガーを使用して生成コードの動作を把握。
View SIL and PIL Files in Code Generation Report
Produce a code generation report and static code metrics that cover SIL and PIL files.
モデルと生成されたコードのシミュレーション結果における数値の整合性
モデルと生成されたコードのシミュレーション結果が数値的に整合しているかどうかを判別します。不一致を調べます。