Main Content

Verify AUTOSAR C Code with SIL and PIL

As part of developing AUTOSAR software for the Classic Platform, you can carry out model-based verification of AUTOSAR software components by using software-in-the-loop (SIL) and processor-in-the-loop (PIL) simulations. Use SIL for verification of generated source code on your host computer, and PIL for verification of object code on your production target hardware. For example:

  • You can run a top model that is configured for the AUTOSAR system target file (autosar.tlc) by using the Software-in-the-Loop (SIL) and Processor-in-the-Loop (PIL) simulation modes.

  • You can use Model block SIL or PIL to test AUTOSAR top-model code. In the Model block, set parameter Code interface to Top model.

For more information, see Simulation with Top Model (Embedded Coder) and Simulation with Model Blocks (Embedded Coder).


You can create a SIL or PIL block for a component configured for the AUTOSAR system target file. For more information about configuring and running simulations with SIL or PIL blocks, see Simulation with Blocks From Subsystems (Embedded Coder). However, SIL and PIL block verification does not support code generated for Simulink Function and Function Caller blocks, for example, in AUTOSAR client-server configurations.