Code Generation
After creating and developing a Simulink® representation of an AUTOSAR software component, generate code for SIL/PIL testing or for integration into the AUTOSAR run-time environment. AUTOSAR code generation requires Simulink Coder™ and Embedded Coder®.
Topics
- Generate AUTOSAR C Code and XML DescriptionsGenerate AUTOSAR-compliant C code and export AUTOSAR XML (ARXML) descriptions from AUTOSAR component model. 
- Configure AUTOSAR Code GenerationConfigure code generation for AUTOSAR model. 
- Model Configuration Parameters: Code Generation AUTOSAR (Embedded Coder)Parameters for controlling AUTOSAR code generation. 
- Code Generation with AUTOSAR Code Replacement LibraryUse AUTOSAR 4.x code replacement library to generate C code that more closely aligns with the AUTOSAR standard. 
- Automatic AUTOSAR Data Type GenerationAutomatically generate AUTOSAR platform data types in AUTOSAR-compliant C code. 
- Verify AUTOSAR Code with SIL and PILVerify AUTOSAR software component code with software-in-the-loop (SIL) and processor-in-the-loop (PIL) simulations. 
- Integrate Generated Code for Multi-Instance Software ComponentsConfigure RTE header files for multi-instance component internal data. 
- Import and Simulate AUTOSAR Code from Previous ReleasesUse cross-release workflow to import AUTOSAR code from previous releases. 
- Limitations and TipsLimitations that apply to AUTOSAR code generation.