Standards, Guidelines, and Block Usage

Develop models and code that comply with standards and guidelines; products and blocks that support code generation

Modeling guidelines include recommended model settings, block usage, and block parameters. Use these guidelines when you develop models and generate code for specific applications and standards. If your application has safety-critical development and certification goals, your models and generated code might have to comply with one or more industry standards and guidelines. For more information, see Support for Standards and Guidelines.

Topics

Standards

Blocks and Products Supported for Code Generation

Identify blocks and products that Simulink® Coder™ and Embedded Coder® support for code generation.

Modeling Semantic Considerations

Data propagation, sample time propagation, latches for subsystem blocks, block execution order, and algebraic loops.

Support for Standards and Guidelines

If your application has mission-critical development and certification goals, your models or subsystems and the code generated for them might need to comply with industry standards and guidelines.

IEC 61508 Standard

Use the Model Advisor to develop models and generate code that complies with the IEC 61508 standard.

IEC 62304 Standard

Use the Model Advisor to develop models and generate code that complies with the IEC 62304 standard.

ISO 26262 Standard

Use the Model Advisor to develop models and generate code that complies with the ISO 26262 standard.

EN 50128 Standard

Use the Model Advisor to develop models and generate code that complies with the EN 50128 standard.

ISO 25119 Standard

Use the Model Advisor to develop models and generate code that complies with the ISO 25119 standard.

DO-178C Standard

Use the Model Advisor to develop models and generate code that complies with the DO-178C standard.

AUTOSAR Standard

Use Embedded Coder and AUTOSAR Blockset to develop component models and generate code and XML software descriptions that comply with the AUTOSAR standard.

Modeling Guidelines

MISRA C Guidelines

MISRA® provides guidelines for generating code.

Secure Coding Standards

Use the Model Advisor to develop models and generated code that conforms to secure coding standards.

MAB Guidelines

MAB provide guidelines for using Simulink, Stateflow®, and Simulink Coder.

High-Integrity System Modeling Guidelines

Modeling guidelines for high-integrity modeling systems.

Modeling Guidelines for Code Generation

Guidelines and factors to consider for code generation.

Modeling Guidelines for Blocks

Code generation modeling guidelines include recommended model settings, block usage, and block parameters.

Modeling Guidelines for MATLAB Functions

When you develop models and generate code for MATLAB® Functions, use the modeling guideline recommendations.

Modeling Guidelines for Subsystems

When you develop models and generate code for subsystems, use the modeling guideline recommendations.

Modeling Guidelines for Model Configuration

When you develop models and generate code, use the modeling guideline configuration recommendations.

Modeling Guidelines for Charts

When you develop models and generate code for charts, use the modeling guideline recommendations.

Verify Compliance by using Model Advisor Checks

Embedded Coder Model Advisor Checks for Standards, Guidelines, and Code Efficiency

Use Embedded Coder Model Advisor checks to assess model readiness to generate code.

Simulink Coder Model Advisor Checks for Standards and Code Efficiency

Use Simulink Coder Model Advisor checks to assess model readiness to generate code.

MISRA C:2012 Compliance and Deviations for Generated Code

Developing a MISRA C:2012 Compliance Statement

Identifies how to use this documentation when developing your compliance statements for generated code as required per the MISRA C:2012 guidelines.

Evaluate Your Generated Code for MISRA C:2012 Compliance

High-level workflow to evaluate your generated code for compliance with MISRA C:2012 guidelines.

MISRA C:2012 Compliance Information Summary Tables

Defines the method to claim compliance to MISRA C:2012 guidelines. Includes applicable modeling guidelines, Model Advisor support, and Polyspace®MISRA C:2012 Checker support.

Modeling Guidelines for MISRA C:2012 Compliance

Modeling guidelines for those MISRA C:2012 guidelines whose compliance type is "Compliance via guideline".

Deviations Rationale for MISRA C:2012 Compliance

Rationale for MISRA C:2012 directives and rules whose compliance type is "Deviation".

Featured Examples