Main Content

本页的翻译已过时。点击此处可查看最新英文版本。

标准、规范和模块用法

开发符合标准和规范的模型和代码;支持代码生成的产品和模块

建模规范包括推荐的模型设置、模块用法和模块参数。在针对特定的应用程序和标准开发模型和生成代码时,请遵循这些规范。如果您的应用程序具有要求高安全性的开发和认证目标,则模型和生成的代码可能必须符合一项或多项行业标准和规范。有关详细信息,请参阅Support for Standards and Guidelines

主题

标准

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.

建模规范

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

Develop models and generate code for subsystems by using 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.

通过使用模型顾问检查来验证合规性

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 合规性和偏差

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".

特色示例