本页面提供的是上一版软件的文档。当前版本中已删除对应的英文页面。
标准、规范和模块用法
开发符合标准和规范的模型和代码;支持代码生成的产品和模块
建模规范包括推荐的模型设置、模块用法和模块参数。在针对特定的应用程序和标准开发模型和生成代码时,请遵循这些规范。如果您的应用程序具有要求高安全性的开发和认证目标,则模型和生成的代码可能必须符合一项或多项行业标准和规范。有关详细信息,请参阅Support for Standards and Guidelines。
主题
标准
- Use Blocks and Products Supported for Code Generation
Identify blocks and products that Simulink® Coder™ and Embedded Coder® support for code generation. - Consider Modeling Semantic when Generating Code
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.
建模规范
- Secure Coding
- Modeling Guidelines and Model Advisor Checks for Verifying Compliance with Industry Standards
Use High-Integrity System Modeling guidelines and Model Advisor checks to verify that your model and the generated code complies with industry standards. - 代码生成的建模规范
有关代码生成的规范和注意事项。 - 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 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
- 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 and Model Advisor Checks for Verifying Compliance with MISRA C:2012
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".