![f7afd7b50fb9107e866d6abc51c0baee.png](https://img-blog.csdnimg.cn/img_convert/f7afd7b50fb9107e866d6abc51c0baee.png)
前言:
ASPICE是一套对项目质量要求很高的体系,其主干基本覆盖了汽车电子研发项目的所有主要过程,而细节上对每个过程的要求也做到尽可能的详尽,是研发人员不可多得学习材料。
本文以ASPICE的原文为基础,从体系认证,项目实践两个方面进行说明,尽量满足不同程度和不同需求的读者。
文后有培训用白板书设计,可辅助理解。
-----------------------------正文------------------------------------
SYS.3 System Architectural Design
The purpose of the System Architectural Design Process is to establish a system architectural design and identify which system requirements are to be allocated to which elements of the system, and to evaluate the system architectural design against defined criteria.
系统架构设计过程包括三个步骤:
1.建立一个系统架构设计(establish a system architectural design)
2.分配系统需求到系统架构设计的对应元素中(identify which system requirements are to be allocated to which elements of the system)
3.对系统架构进行评估(evaluate the system architectural design against defined criteria)
SYS.3.BP1: Develop system architectural design.
Develop and document the system architectural design that specifies the elements of the system with respect to functional and non-functional system requirements.
NOTE 1: The development of system architectural design typically includes the decomposition into elements across appropriate hierarchical levels.
系统架构(system architectural)
可以理解为对一个描述了外特性的事物进行合理的拆分,拆分成多种元素。
对复杂的系统可以在多个层级上进行拆分。
如小区是城市的一个元素,楼房是小区的一个元素,住户是楼房的一个元素,卫生间是住户的一个元素...
我们往往不会在设计城市时就把卫生间设计出来,但是设计产品时却经常在大的架构还没有确定的情况下去纠结更低层级的元素。
体系认证:至少应进行一次分层设计,以体现该过程被执行。
![6147b28f0fbed69e8805aab8632c55c0.png](https://img-blog.csdnimg.cn/img_convert/6147b28f0fbed69e8805aab8632c55c0.png)
![d9c3cbb54879fb98a00748a3cbc857fa.png](https://img-blog.csdnimg.cn/img_convert/d9c3cbb54879fb98a00748a3cbc857fa.png)
![842475f77885a524d71cb95c87d0df6a.png](https://img-blog.csdnimg.cn/img_convert/842475f77885a524d71cb95c87d0df6a.png)
SYS.3.BP2: Allocate system requirements.
Allocate the system requirements to the elements of the system architectural design.
将系统需求分配到对应的系统元素中。
体系认证:要确保分配需求和元素有双向追溯关系。
项目实践:系统元素和系统需求绝对不是一一对应的关系,某个系统需求可能需要系统的多个元素,系统的某个元素可能会实现系统需求中的多个需求。
每个建筑师都希望自己能设计一座千年不倒的建筑,每个软件工程师也都希望自己的架构可以尽可能的延长寿命。
笔者曾就职于华为的网络部门从事C++后台开发,2009年转行做了嵌入式,于是把当时WEB架构的思路引入到嵌入式产品中,虽然10年来公司产品需求不断变化,硬件不断更新换代,但是这套架构的底层代码一直服役到现在。毕竟嵌入式产品系统再复杂,功能再繁多也多不过互联网。
就像虽然网络应用也都到手机APP上了,物联网也兴起了,5G转眼就普及了,但是TCP/IP还依然在用。
系统性的实体产品,大到飞机汽车,小到一片单片机,都逃不掉总线这种架构。
谈到架构我总喜欢介绍一下都江堰:
都江堰坐落在成都平原西部的岷江上,始建于秦昭王末年(约公元前256~前251) ,是蜀郡太守李冰父子在前人鳖灵开凿的基础上组织修建的大型水利工程,由分水鱼嘴、飞沙堰、宝瓶口等部分组成,两千多年来一直发挥着防洪灌溉的作用,使成都平原成为水旱从人、沃野千里的"天府之国",至今灌区已达30余县市、面积近千万亩,是全世界迄今为止,年代最久、唯一留存、以无坝引水为特征的宏大水利工程,凝聚着中国古代劳动人民勤劳、勇敢、智慧的结晶。
![911fb820de17e69d14b2315f9542e0e5.png](https://img-blog.csdnimg.cn/img_convert/911fb820de17e69d14b2315f9542e0e5.png)
SYS.3.BP3: Define interfaces of system elements.
Identify, develop and document the interfaces of each system element.
给每个元素设计接口,就等同于把元素当成一个需要分析的系统(参照系统需求分析),描述元素外特性。
SYS.3.BP4: Describe dynamic behavior.
Evaluate and document the dynamic behavior of the interaction between system elements.
NOTE 2: Dynamic behavior is determined by operating modes (e.g. start-up, shutdown, normal mode, calibration, diagnosis, etc.).
为每个元素设计好自己的外特性后(可以称之为静态描述),要描述元素之间的“动态行为”,也可以说这些元素是如何相互配合完成功能的。
举个例子:
工人们要建立一条生产线,除了要规定每个工人要承担的工作之外,还要规定这些工人之间按照什么方式进行协作,比如生产线的工作顺序是什么样的,怎么开始,怎么结束,特殊情况如何处理,有问题如何上报等等。
题外话,很多管理者在工作中只设计员工的对外接口,不考虑员工之间的工作流程,就会导致员工之间合作障碍,从而让组织的效率低下。
体系认证:至少要把start-up, shutdown, normal mode, calibration, diagnosis,这些包含到动态行为中。
SYS.3.BP5: Evaluate alternative system architectures.
Define evaluation criteria for the architecture. Evaluate alternative system architectures according to the defined criteria. Record the rationale for the chosen system architecture.
NOTE 3: Evaluation criteria may include quality characteristics (modularity,maintainability, expandability, scalability, reliability, security realization and usability) and results of make-buy-reuse analysis.
体系认证:至少要制定和NOTE3一致的评估准则。
项目实践:在实践过程中,NOTE3的模块性、可维护性、可扩展性、可扩缩性、 可靠性、安全(security)可实现性、易用性这些方面都应该被考虑在内。
基于以上内容的评估模板也应该成为公司的技术评估模板之一。
SYS.3.BP6: Establish bidirectional traceability.
Establish bidirectional traceability between system requirements and elements of the system architectural design.
NOTE 4: Bidirectional traceability covers allocation of system requirements to the elements of the system architectural design.
NOTE 5: Bidirectional traceability supports coverage, consistency and impact analysis.
体系认证:
1.公司体系文件中要对系统需求的可追溯性过程进行指导。(已定义)
2.必须有一种能够可追溯的需求管理工具,如DOORS,否则几乎无法通过认证。(已执行)
3.覆盖率、 一致性和影响分析(coverage, consistency and impact analysis)需要有
项目实践:
以下各个环节都必须建立双向追溯,以确保产品的研发过程没有发生偏差。
用户需求--系统需求--系统架构--(硬件过程略)--软件需求--软件架构--软件单元--单元测试用例--软件集成测试用例--软件测试用例--系统集成用例--系统测试用例
双向追溯的工具可参考MATLAB。
SYS.3.BP7: Ensure consistency. Ensure consistency between system requirements and the system architectural design.
NOTE 6: Consistency is supported by bidirectional traceability and can be demonstrated by review records.
NOTE 7: System requirements typically include system architectural requirements. Refer to BP5.
体系认证:
1.公司体系文件中要对双向可追溯性的评审过程进行指导。(已定义)
2.必须有确认双向可追溯性的评审记录。(已执行)
项目实践:
每个需要确认的环节都必须进行评审,以保证结论的准确性。
通过评审来规避个人经验的不足。
通过评审来规避让个人承担重大责任的情况。
SYS.3.BP8: Communicate agreed system architectural design.
Communicate the agreed system architectural design and updates to system architectural design to all relevant parties.
体系认证:
1.公司体系文件中要对阶段性产物的沟通范围进行要求。(已定义)
2.必须有与相关部门沟通的记录。(已执行)
项目实践:
拿到各个相关部门对项目阶段性产物的认可,可以有效明确各方责任,避免日后产生扯皮的情况。
项目的变更,更是要得到相关方的认可。
As a result of successful implementation of this process:
1) a system architectural design is defined that identifies the elements of the system;
2) the system requirements are allocated to the elements of the system;
3) the interfaces of each system element are defined;
4) the dynamic behavior of the system elements is defined;
5) consistency and bidirectional traceability are established between system requirements and system architectural design; and
6) the system architectural design is agreed and communicated to all affected parties.
----------------------------白板书-----------------------------------------
![cfd496682c508ae1b6080d25b69f8a21.png](https://img-blog.csdnimg.cn/img_convert/cfd496682c508ae1b6080d25b69f8a21.png)
![578200325ff71ed16029311a169b7c96.png](https://img-blog.csdnimg.cn/img_convert/578200325ff71ed16029311a169b7c96.png)
![76545d05f207eea53dc612fc6b4a1caa.png](https://img-blog.csdnimg.cn/img_convert/76545d05f207eea53dc612fc6b4a1caa.png)
![27515603892f640f818e5964d98de67b.png](https://img-blog.csdnimg.cn/img_convert/27515603892f640f818e5964d98de67b.png)
![acf1b09f4c3b0c36ca250db7d9e607fb.png](https://img-blog.csdnimg.cn/img_convert/acf1b09f4c3b0c36ca250db7d9e607fb.png)