このページの内容は最新ではありません。最新版の英語を参照するには、ここをクリックします。
プロセッサインザループ シミュレーション
プロセッサインザループ (PIL) シミュレーションは、生成されたソース コードをクロスコンパイルしてから、ターゲット ハードウェア上にオブジェクト コードをダウンロードして実行します。ノーマル モードのシミュレーション結果と PIL シミュレーション結果を比較することで、モデルと生成されたコードの数値的等価性をテストできます。PIL シミュレーション中に、生成されたコードのコード カバレッジ メトリクスと実行時間メトリクスを収集できます。
PIL シミュレーションには接続構成が必要です。
アプリ
SIL/PIL マネージャー | 生成されたコードの検証 |
名前空間
target | ターゲット ハードウェア情報とビルド ツール情報の管理 |
クラス
オブジェクト
関数
トピック
- SIL シミュレーションおよび PIL シミュレーション
ソフトウェアインザループ (SIL) シミュレーションとプロセッサインザループ (PIL) シミュレーションの概要
- SIL アプローチまたは PIL アプローチの選択
最上位モデル、参照モデル、またはサブシステムから生成されたコードをテストする。
- Simulink 用の PIL ターゲット接続構成の作成
PIL シミュレーションをターゲット環境に合わせてカスタマイズする。
- Host-Target Communication for Simulink PIL Simulation
Use the
rtiostream
API for communication between your development computer and target hardware during a PIL simulation. - Specify Hardware Timer for Simulink
Specify a hardware timer using the Code Replacement Tool.
- Set Up PIL Connectivity by Using Target Framework
Provide PIL connectivity between Simulink® and the target hardware.
- Custom Toolchain Directives Required for Code Coverage and Execution Profiling
Specify compiler directives for building PIL application that supports code coverage analysis and execution profiling.
- PIL シミュレーションの構成と実行
最上位モデル PIL、Model ブロック PIL、および PIL ブロック シミュレーションを設定して実行する。
- SIL/PIL マネージャーを使用したサブシステムのコードのユニット テスト
SIL/PIL マネージャーを使用して、Atomic サブシステムでユニット テストを実行する。
- SIL/PIL Manager Verification Workflow
A simplified workflow for verifying generated code.
- PIL シミュレーションの流れ
PIL シミュレーションの流れ。
- 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.
- 永久磁石同期機のベクトル制御
モーター制御システムをシミュレーションし、コントローラー コードを生成し、PIL シミュレーションを使用して数値的等価性のテストとコード実行時間のプロファイルを行う。
- PIL シミュレーションのセキュリティ
PIL シミュレーションのセキュリティ対策。
- 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.
Verification of Code Generation Assumptions
The SIL or PIL simulation checks code generation assumptions.