模型验证最佳实践

Similar documents
Presentation Title

PowerPoint Presentation

使用基于模型的设计 进行产品化控制算法开发(II)

PowerPoint Presentation

Presentation Title


Microsoft PowerPoint - TTCN-Introduction-v5.ppt

Overview of MathWorks

会 议 组 织 研 讨 会 主 席 : 周 巢 尘 院 士 ( 中 国 科 学 院 软 件 研 究 所 ) 程 序 委 员 会 主 席 : 段 振 华 教 授 ( 西 安 电 子 科 技 大 学 ) 董 云 卫 教 授 ( 西 北 工 业 大 学 ) 工 业 专 题 主 席 : 叶 宏 研 究 员

2/80 2

Microsoft PowerPoint - Aqua-Sim.pptx

Value Chain ~ (E-Business RD / Pre-Sales / Consultant) APS, Advanc

OOAD PowerDesigner OOAD Applying PowerDesigner CASE Tool in OOAD PowerDesigner CASE Tool PowerDesigner PowerDesigner CASE To

HCD0174_2008

<4D F736F F F696E74202D20C8EDBCFEBCDCB9B9CAA6D1D0D0DEBDB2D7F92E707074>

untitled

PowerPoint 簡報

% % CHINA SCIENCE AND TECHNOLOGY DEVELOPMENT REPORT % % % % 28.6%

13 A DSS B DSS C DSS D DSS A. B. C. CPU D. 15 A B Cache C Cache D L0 L1 L2 Cache 16 SMP A B. C D 17 A B. C D A B - C - D

Microsoft PowerPoint ARIS_Platform_en.ppt

資訊系統開發模式

2014_


Presentation Title

CHINA SCIENCE AND TECHNOLOGY DEVELOPMENT REPORT

计 算 机 系 统 应 用 年 第 25 卷 第 1 期 的 编 程 语 言 Giotto [9] 编 写 控 制 程 序, 可 以 方 便 的 控 制 程 序 的 逻 辑 执 行 时 间, 从 而 使 得 任 务 时 间 的 依 赖 关 系

使用Polyspace进行软件代码错误检查和运行期错误证明

推荐电子学习报ZhiShi

Presentation Title

892213E006146

课题调查对象:

Microsoft Word - 2目录.doc

PowerPoint プレゼンテーション

E I

cm /s c d 1 /40 1 /4 1 / / / /m /Hz /kn / kn m ~

Microsoft PowerPoint - ARC110_栾跃.ppt

SVM OA 1 SVM MLP Tab 1 1 Drug feature data quantization table

ebook204-2

(Microsoft Word - 11-\261i\256m\253i.doc)

1.3

IP TCP/IP PC OS µclinux MPEG4 Blackfin DSP MPEG4 IP UDP Winsock I/O DirectShow Filter DirectShow MPEG4 µclinux TCP/IP IP COM, DirectShow I

<4D F736F F D20B1B1BEA9BAA3F6CEBFC6BDF0B8DFBFC6BCBCB9C9B7DDD3D0CFDEB9ABCBBECAD7B4CEB9ABBFAAB7A2D0D0B9C9C6B1D5D0B9C9CBB5C3F7CAE9A3A8C9EAB1A8B8E C4EA35D4C23132C8D5B1A8CBCDA3A92E646F63>

500013安瑞证券投资基金2004年半年度报告(正文)

景德镇陶瓷学院科技艺术学院

资产管理年度报告内容与格式

附錄四 中國企業H 股公司名單 (主板)

Microsoft Word - 16号-(企业处 40份)关于公布2015年成都市中小企业成长工程培育企业名单暨网上填报信息的通知

bnb.PDF

. STEM OER STEM 600 STEM CCSS STEM CCSS STEM ISTE Indiana Department of STEM Education 2013 STEM STEM STEM STEM STEM 10 STEM 2017 S

通 过 厂 变 带 电, 这 种 设 计 减 少 了 机 组 自 带 厂 用 电 负 荷 能 力, 降 低 了 锅 炉 满 足 FCB 时 最 低 稳 燃 工 况, 同 时 造 成 燃 烧 调 整 量 加 大 本 电 厂 在 FCB 试 验 时, 电 泵 不 联 启, 始 终 保 持 汽 泵 运 行


Simpson Yetts Simpson Freer Gallery Maryon Plenderleith Aitchison

CHINA SCIENCE AND TECHNOLOGY DEVELOPMENT REPORT ()

g 100mv /g 0. 5 ~ 5kHz 1 YSV8116 DASP 1 N 2. 2 [ M] { x } + [ C] { x } + [ K]{ x } = { f t } 1 M C K 3 M C K f t x t 1 [ H( ω )] = - ω 2

卡尔费休库仑滴定仪和水蒸发器测量卡氏炉标准物质

2 3. 1,,,.,., CAD,,,. : 1) :, 1,,. ; 2) :,, ; 3) :,; 4) : Fig. 1 Flowchart of generation and application of 3D2digital2building 2 :.. 3 : 1) :,


XXX专业本科人才培养方案

PowerPoint Presentation


4 115,,. : p { ( x ( t), y ( t) ) x R m, y R n, t = 1,2,, p} (1),, x ( t), y ( t),,: F : R m R n.,m, n, u.,, Sigmoid. :,f Sigmoid,f ( x) = ^y k ( t) =

Microsoft Word - A _ doc

附件4

Presentation Title

第一章 緒 論

Wy159.mps

LaDefense Arch Petronas Towers 2009 CCTV MOMA Newmark Hahn Liu 8 Heredia - Zavoni Barranco 9 Heredia - Zavoni Leyva

LH_Series_Rev2014.pdf

UDC Empirical Researches on Pricing of Corporate Bonds with Macro Factors 厦门大学博硕士论文摘要库

<4D F736F F D20C8EDCDC1B5D8BBF9CDB2BBF9CAD4B2C9C6BDCCA8B5C4CACAD3C3D0D4B7D6CEF6>

a b

目次 

epub83-1

θ 1 = φ n -n 2 2 n AR n φ i = 0 1 = a t - θ θ m a t-m 3 3 m MA m 1. 2 ρ k = R k /R 0 5 Akaike ρ k 1 AIC = n ln δ 2

Inst_gene.book

摘 要 本 篇 文 章 主 要 是 利 用 1979 年 至 2014 年 台 灣 年 數 據 的 資 料, 檢 視 油 價 對 於 匯 率 的 影 響, 所 採 用 的 檢 定 模 型 為 : 單 根 Johansen 共 整 合 及 VECM 向 量 誤 差 修 正 模 型 而 共 整 合 模

m K K K K m Fig. 2 The plan layout of K K segment p

Microsoft Word - HC20138_2010.doc

JOURNAL OF EARTHQUAKE ENGINEERING AND ENGINEERING VIBRATION Vol. 31 No. 5 Oct /35 TU3521 P315.

D C 93 2

68369 (ppp quickstart guide)

IEC 传输帧格式

PowerPoint Presentation

rz_Newsletter2016_en_ indd

Microsoft Word - ICF的編碼指引-new sjl.doc

CH01.indd

2013 年 科普工作全面扎实推进 科普能力建设稳步增强 科 普队伍继续壮大 科普经费投入增长显著 科普基础设施日益完善 全国科技活动周 等一系列重大科普活动得到公众广泛参与 针对 农村 青少年等特定地区 特定人群的科普活动在保持原有特色的 基础上不断创新 新媒体科普迅速发展 官方的科技资源网络共享

Microsoft Word - 刘 慧 板.doc

2015中国西部(川渝)

Microsoft Word 任 辉_new_.doc

北 京 大 学

國立中山大學學位論文典藏.PDF

2016 年 第 3 期 夏 咏 梅 : 农 村 初 中 数 学 区 域 性 资 源 与 教 材 资 源 的 有 效 整 合 研 究 65 一 题 的 提 出 1. 程 改 革 形 势 的 需 要 程 资 源 是 新 程 改 革 所 提 出 的 一 个 重 要 概 念, 没 有 程 资 源 的 广

HC70245_2008

第 15 章 程 式 編 写 語 言 15.1 程 式 編 写 語 言 的 角 色 程 式 編 寫 語 言 是 程 式 編 寫 員 與 電 腦 溝 通 的 界 面 語 法 是 一 組 規 則 讓 程 式 編 寫 員 將 字 詞 集 合 起 來 電 腦 是 處 理 位 元 和 字 節 的 機 器, 與

[9] R Ã : (1) x 0 R A(x 0 ) = 1; (2) α [0 1] Ã α = {x A(x) α} = [A α A α ]. A(x) Ã. R R. Ã 1 m x m α x m α > 0; α A(x) = 1 x m m x m +

XML XML XMPP XML XML Schema XML XML,,, XML,

1

31 17 www. watergasheat. com km 2 17 km 15 km hm % mm Fig. 1 Technical route of p

1 目 錄 1. 簡 介 一 般 甄 試 程 序 第 一 階 段 的 準 備 第 二 階 段 的 準 備 每 間 學 校 的 面 試 方 式 各 程 序 我 的 做 法 心 得 及 筆 記 結 論..

Transcription:

符合 ISO 26262 标准的模型验证 杨兴 amy.yang@mathworks.cn MathWorks 中国 2014 The MathWorks, Inc. 1

日程 ISO 26262 和基于模型的设计 验证模型还是代码 ISO 26262 对 MBD 软件开发的要求 相关的软件验证活动 2

ISO 26262 标准中和基于模型的设计相关的章节 MBD 相关的章节 3

标准中有关基于模型的设计的解释 The seamless utilisation of models facilitates a highly consistent and efficient development. 4

基于模型的设计 5

验证模型, 还是代码 2014 The MathWorks, Inc. 6

ISO 26262-6 软件级别的产品设计 验证 7

验证模型, 还是代码? 单元静态验证 If model-based development with automatic code generation is used, these properties apply to the model and need not apply to the source code. 8

验证模型, 还是代码? 单元静态验证 In the case of model-based software development the software unit specification design and implementation can be verified at the model level. 9

10

验证模型, 还是代码? 软件单元测试 For model-based development, software unit testing can be carried out at the model level followed by back-to-back comparison tests between the model and the object code. 11

验证模型, 还是代码? 软件单元测试 In the case of model-based development, the analysis of structural coverage can be performed at the model level using analogous structural coverage metrics for models. 12

13

验证模型, 还是代码? 软件集成测试 14

IEC 61508 中有关代码生成工具分类 Translator! 16

ISO 26262 有关软件开发的相关要求 ISO 26262 对开发工具的要求 ISO 26262 对开发活动的要求 2014 The MathWorks, Inc. 17

软件开发阶段所需的支持信息 18

软件工具的分级和资质 工具分级 工具资质审核 工具的功能 工具的影响 工具错误的检测 工具置信水平 ASIL 软件工具有引入错误或者不能检出错误的可能 UC 1..n TI 2 TD 3 TD 2 TD 1 无 / 低 中 高 TCL 3 TCL 2 为 TCL3 级的资质审核 为 TCL2 级的资质审核 增加审核需求 TI 1 TCL 1 无需额外的资质审核 Possibility that the tool can introduce errors or fail to detect them Confidence in error prevention and detection measures Classification of the software tool into confidence levels Tool Qualification Measures 19

MathWorks 的代码生成工具 E-Coder 如果遵守 IEC Certification Kit:Embedded Coder Reference Workflow 文档中提供的参照开发流程,Embedded Coder 可以被划分为 TCL1 这个等级 如果遵守 IEC Certification Kit:Embedded Coder Reference Workflow 文档中提供的参照开发流程的一个合适的子集,Embedded Coder 可以被划分为 TCL2 这个等级 The required tool confidence level for the code generator is TCL1, provided that the reference workflow documented in IEC Certification Kit: Embedded Coder Reference Workflow is followed. The required tool confidence level for the code generator is TCL2, provided that a suitable subset of the reference workflow documented in IEC Certification Kit: Embedded Coder Reference Workflow is followed. 20

软件工具的资质 21

IEC Certification Kit ISO 26262 22

设计语言的选择标准 23

编码和建模规范 24

架构设计信息表达 26

架构设计信息表达 27

ISO 26262 对于软件架构的要求 28

架构设计时要考虑降低复杂度 29

软件架构的验证方法 31

Simulink 模型验证 32

软件单元设计的验证方法 表 -9 仅限静态验证 Simulink 模型验证 33

软件单元测试 9.4.3 The software unit testing methods listed in Table 10 shall be applied to demonstrate that the software units achieve: compliance with the software unit design specification; compliance with the specification of the hardware-software interface; the specified functionality; confidence in the absence of unintended functionality; robustness; and sufficient resources to support their functionality. 34

软件单元测试 测试用例的产生 单元测试的覆盖率要求 35

Simulink 模型测试 需求 是否满足设计需求? 查看结果报告 测试 模型 是否完全测试模型? 结构覆盖度报告 36

代码生成和等效性测试 自动代码生成 (Code generation) 有利于保证代码的效率和一致性 大幅提高工作效率 等效性测试 (Equivalence testing) 软件在环测试 Software-in-the-Loop testing 处理器在环测试 Process-in-the-Loop testing 37

软件集成测试方法 10.4.3 The software integration test methods listed in Table 13 shall be applied to demonstrate that both the software components and the embedded software achieve: compliance with the software architectural design in accordance with Clause 7; compliance with the specification of the hardware-software interface in accordance with ISO 26262-4:2011, Clause 7; the specified functionality; robustness; sufficient resources to support the functionality. 38

39

基于模型设计相关的验证活动 2014 The MathWorks, Inc. 40

动手操作练习 Model Advisor 检查集的设置 Simulink Design Verifier 分析设计错误 Simulink Design Verifier 实现属性证明 功能测试覆盖率信息的收集 等效性测试测试用例及实现 Simulink Report Generator 实现模型比较 41

软件的层次化结构设计 模块如何划分 从功能上划分组件 以发动机为例, 分为 : 点火 进气 油量计算 怠速 巡航等 模型实现上 model reference 发动机控制 点火控制进气计算燃油控制怠速控制巡航控制其他 对复杂组件进一步划分为单元模块 以发动机的怠速控制为例, 分为暖机怠速 闭环速度控制 扭矩请求等单元 模型实现上 model reference 42

模型复杂度监测 对单元模块进行复杂度监测 Model advisor 圈复杂度 43

建模标准 MAAB 建模标准 高安全完整性系统的建模标准 公司内部定义的建模标准 44

MAAB 及相关规范的检查 Model Advisor 实现建模规范检查 定制检查集 定制检查项 45

模型评审 模型和需求的双向追溯 模型 需求 需求 模型 Simulink Report Generator 生成报告 为非 Simulink 用户生成报告 Simulink Report Generator 实现 不同版本模型比较 46

使用 Simulink Design Verifier 检查逻辑错误 设定生成测试用例目标为 MC/DC 100% 覆盖 生成测试用例 逻辑错误导致无法生成 100% 覆盖的测试用例, 并提示错误逻辑 47

使用 Simulink Design Verifier 检查数据错误 通过算术运算分析定位错误 数据溢出 被零除 证明没有错误的运算 48

单元模块的功能测试 仿真测试... 覆盖率分析 49

模型的集成测试 模型的组件级集成测试 模型的系统级测试 模型在环测试 快速原型 50

软件在环测试 验证代码和用于代码生成的模型之间的等效性 Code Generation 软件在环测试使用的是 Visual C++ 或者 LCC 编译器 Compiled C Code S-Function (Windows DLL) 51

处理器在环测试 验证代码在目标处理器的行为和模型的一致性 Code Generation 处理器在环测试使用的是目标编译器 Production Processor 52

Model Verification Tools Model Verification Discover design errors at design time Simulink, Requirements Mgmt Interface (SLV&V) Model Coverage (SLV&V) Simulink, Stateflow, Simulink Fixed Point Model Advisor (SLV&V) Design Error Detection (SLDV) Property Proving (SLDV) Ad-hoc Testing Simulink Traceability SLV&V Model Standards SLV&V Design Error Detection SLDV Testing by Simulation with Model Coverage SLV&V Property Proving SLDV 53

Code Generation & Verification Tools Traceability report (Embedded Coder), Bullseye code coverage (Embedded Coder) Code Verification Gain confidence in the generated code Test vector generation (SLDV), SIL/PIL testing / CGV (Embedded Coder) Traceability Report SLV&V Embedded Coder Test Vector Generation SLDV Equivalence Testing Simulink (SIL/PIL) Embedded Coder 3 rd Party Code Coverage Tool Embedde d Coder 54

MathWorks Change the world by Accelerating the pace of discovery, innovation, development, and learning in engineering and science 55