Main Content

适用于 DO-254 标准合规性的模型顾问检查

您可以运行模型顾问来检查您的模型或子系统是否符合 DO-254 安全标准的选定方面。

要检查是否符合 DO 标准,请打开模型顾问,并运行 By Task > Modeling Standards for DO-254 下面的检查。

有关机载系统和设备审定中 DO-254 软件注意事项及相关标准的信息,请参阅航空无线电技术委员会 (RTCA)

下表列出了 DO-254 的检查项。

模型顾问子文件夹模型顾问检查检查 ID
不适用显示模型版本信息mathworks.do178.MdlChecksum
高完整性系统请参阅适用于高完整性系统建模规范的模型顾问检查
库链接Identify unresolved library linksmathworks.design.UnresolvedLibLinks
需求一致性请参阅适用于需求链接的模型顾问检查
HDL Coder请参阅HDL Code Advisor Checks (HDL Coder)

用于高完整性系统建模的模型检查

您可以运行模型顾问来检查您的模型或子系统是否符合高完整性系统模型安全标准的选定方面。

要检查是否符合高完整性系统模型标准,请从 By Task > Modeling Standards for DO-254 > High-Integrity Systems 运行高完整性检查:

下表列出了高完整性系统模型检查及其对应的支持 DO-254 安全标准的建模规范。有关高完整性建模规范的详细信息,请参阅高完整性系统建模

高完整性系统模型检查适用的高完整性系统建模规范
Check for inconsistent vector indexing methodshisl_0021: Consistent vector indexing method
Check for variant blocks with 'Generate preprocessor conditionals' activehisl_0023: Verification of variant blocks
Check for root Inports with missing propertieshisl_0024: Inport interface definition
Check for Relational Operator blocks that equate floating-point typeshisl_0017: Usage of blocks that compute relational operators (2)
检查浮点信号的关系比较hisl_0016: Usage of blocks that compute relational operators
Check usage of Logical Operator blockshisl_0018: Usage of Logical Operator block
Check sample time-dependent blockshisl_0007: Usage of For Iterator or While Iterator subsystems
Check usage of Abs blockshisl_0001: Usage of Abs block
Check usage of Assignment blockshisl_0029: Usage of Assignment blocks
Check for root Inports with missing range definitionshisl_0025: Design min/max specification of input interfaces
Check for root Outports with missing range definitionshisl_0026: Design min/max specification of output interfaces
Check Stateflow charts for transition paths that cross parallel state boundarieshisf_0013: Usage of transition paths (crossing parallel state boundaries)
Check Stateflow charts for ordering of states and transitionshisf_0002: User-specified state/transition execution order
Check Stateflow debugging optionshisf_0011: Stateflow debugging settings
Check Stateflow charts for uniquely defined data objectshisl_0061: Unique identifiers for clarity
Check Stateflow charts for unary operatorshisf_0211: Protect against use of unary operators in Stateflow Charts to improve code compliance
Check MATLAB Code Analyzer messageshiml_0004: MATLAB Code Analyzer recommendations for code generation
Check safety-related model referencing settingshisl_0037: Configuration Parameters > Model Referencing
Check safety-related diagnostic settings for parametershisl_0302: Configuration Parameters > Diagnostics > Data Validity > Parameters
Check safety-related diagnostic settings for type conversionshisl_0309: Configuration Parameters > Diagnostics > Type Conversion
Check safety-related diagnostic settings for signal connectivityhisl_0306: Configuration Parameters > Diagnostics > Connectivity > Signals
Check safety-related diagnostic settings for bus connectivityhisl_0307: Configuration Parameters > Diagnostics > Connectivity > Buses
Check safety-related diagnostic settings for model initializationhisl_0304: Configuration Parameters > Diagnostics > Data Validity > Model initialization
Check safety-related diagnostic settings for model referencinghisl_0310: Configuration Parameters > Diagnostics > Model Referencing
Check safety-related diagnostic settings for savinghisl_0036: Configuration Parameters > Diagnostics > Saving
Check safety-related diagnostic settings for Stateflowhisl_0311: Configuration Parameters > Diagnostics > Stateflow
Check model object nameshisl_0032: Model element names
Check for model elements that do not link to requirementshisl_0070: Placement of requirement links in a model
Check for inappropriate use of transition pathshisf_0014: Usage of transition paths (passing through states)
Check usage of Bitwise Operator blockhisl_0019: Usage of bitwise operations
Check data types for blocks with index signalshisl_0022: Data type selection for index signals
Check model file namehisl_0031: Model file names
Check if/elseif/else patterns in MATLAB Function blockshiml_0006: MATLAB code if / elseif / else patterns
Check switch statements in MATLAB Function blockshiml_0007: MATLAB code switch / case / otherwise patterns
Check global variables in graphical functionshisl_0062: Global variables in graphical functions
Check for length of user-defined object nameshisl_0063: Length of user-defined object names to improve MISRA C:2012 compliance
Check usage of standardized MATLAB function headershiml_0001: Usage of standardized MATLAB function headers
Check usage of relational operators in MATLAB Function blockshiml_0008: MATLAB code relational operator data types
Check usage of logical operators and functions in MATLAB Function blockshiml_0010: MATLAB code with logical operators and functions
Check naming of ports in Stateflow chartshisf_0016: Stateflow port names
Check scoping of Stateflow data objectshisf_0017: Stateflow data object scoping
Check usage of Gain blockshisl_0066: Usage of Gain blocks
Check data type of loop control variableshisl_0102: Data type of loop control variables to improve MISRA C:2012 compliance
Check for root Outports with missing propertieshisl_0077: Outport interface definition

HDL Code Advisor 检查

HDL Coder™ 中的 HDL Code Advisor 和模型顾问检查验证并更新您的 Simulink® 模型或子系统,以确保与 HDL 代码生成的兼容性。Code Advisor 检查以下内容:

  • 模型配置设置

  • 端口和子系统设置

  • 模块和模块设置

  • 本机浮点支持

  • 行业标准规范

下表列出了由 DO-254 安全标准支持的 HDL Code Advisor 检查:

HDL Code Advisor 检查描述
Check for infinite and continuous sample time sources (HDL Coder)检查具有连续采样时间的源模块。
Check for unsupported blocks (HDL Coder)检查 HDL 代码生成不支持的模块。
Check for large matrix operations (HDL Coder)检查大型矩阵运算。
Identify unconnected lines, input ports, and output ports检查未连接的信号线或端口。
Identify disabled library links搜索模型中禁用的库链接。
Identify unresolved library links搜索模型中未解析的库链接,未解析的库链接会导致找不到指定的库模块。
Check for MATLAB Function block settings (HDL Coder)检查 MATLAB Function 模块的 HDL 兼容设置。
Check for Stateflow chart settings (HDL Coder)

检查 Stateflow® Chart 模块的 HDL 兼容设置。

Check Delay, Unit Delay and Zero-Order Hold blocks for rate transition识别用于速率转换的 DelayUnit DelayZero-Order Hold 模块。用实际 Rate Transition 模块替换这些模块。
Check for unsupported storage class for signal objects (HDL Coder)检查信号对象存储类是 'ExportedGlobal''ImportedExtern' 还是 'ImportedExternPointer'
Check file extension (HDL Coder)检查包含实体的 VHDL 文件的文件扩展名。
Check naming conventions (HDL Coder)检查 EDA 工具使用的标准关键字。
Check top-level subsystem/port names (HDL Coder)检查顶层模块/实体和端口名称。
Check module/entity names (HDL Coder)检查模块/实体名称。
Check signal and port names (HDL Coder)检查信号和端口名称长度。
Check package file names (HDL Coder)检查包含包的文件名。
Check generics (HDL Coder)检查顶层子系统的泛型。
Check clock, reset, and enable signals (HDL Coder)检查时钟、重置和使能信号的命名约定。
Check architecture name (HDL Coder)检查生成的 HDL 代码中的 VHDL 架构名称。
Check entity and architecture (HDL Coder)检查 VHDL 实体和架构是否在同一文件中说明。
Check clock settings (HDL Coder)检查对时钟信号的限制。
Check for global reset setting for Xilinx and Altera devices (HDL Coder)检查 Altera® 设备的异步重置设置和 Xilinx® 设备的同步重置设置。
Check inline configurations setting (HDL Coder)检查您是否启用了 InlineConfigurations
Check algebraic loops (HDL Coder)检查模型中是否存在代数环。
Check for visualization settings (HDL Coder)检查模型的显示设置:端口数据类型和采样时间颜色编码。
Check delay balancing setting (HDL Coder)检查是否启用了 Balance Delays。

Check for model parameters suited for HDL code generation (HDL Coder)

检查是否为 HDL 代码生成设置了模型参数。
Check for double data types in the model (HDL Coder)检查模型中的 double 数据类型。
Check for Data Type Conversion blocks with incompatible settings (HDL Coder)检查 Data Type Conversion 模块的转换模式。
Check for HDL Reciprocal block usage (HDL Coder)检查 HDL Reciprocal 模块是否未使用浮点类型。
Check for Relational Operator block usage (HDL Coder)检查使用浮点类型的 Relational Operator 模块是否具有布尔输出。
Check for unsupported blocks with Native Floating Point (HDL Coder)检查不支持使用本机浮点的模块。
Check for blocks that have nonzero output latency (HDL Coder)检查使用本机浮点且具有非零输出延迟的模块。
Check blocks with nonzero ULP error (HDL Coder)检查使用本机浮点且具有非零 ULP 错误的模块。
Check for single datatypes in the model (HDL Coder)检查模型中的 single 数据类型。
Check for invalid top level subsystem (HDL Coder)检查对于 HDL 代码生成来说不能在顶层的子系统。

相关主题