AUTOSAR (AUTomotive Open System ARchitecture) is an open industry standard for the automotive sector. It defines the three-layered automotive software architecture. One of these layers is the application layer, where functional behaviors are encapsulated in Software Components (SW-Cs). Inside SW-Cs, a set of runnable entities represents the internal behavior and is realized as a set of tasks. To address AUTOSAR's lack of support for modeling behaviors of runnables, languages such as Simulink are employed. Simulink simulations assume Simulink block behaviors are completed in zero execution time, while real execution requires a finite execution time. This timing mismatch can result in failures to detect unexpected runtime behaviors during the simulation phase. This paper extends the Simulink environment to model the timing properties of tasks. We present a Simulink block that can schedule tasks with non-zero simulation times. It enables a more realistic analysis during model development.
翻译:AUTOSAR(汽车开放系统架构)是面向汽车行业的开放行业标准。它定义了汽车软件的三层架构。其中一层为应用层,其功能行为封装在软件组件(SW-Cs)中。SW-Cs内部通过一组可运行实体表示内部行为,并作为任务集实现。为解决AUTOSAR对可运行实体行为建模支持不足的问题,业界采用Simulink等语言。Simulink仿真假设模块行为在零执行时间内完成,而实际执行需要有限执行时间,这种时序不匹配可能导致仿真阶段无法检测到意外的运行时行为。本文扩展Simulink环境以建模任务的时间属性,提出一种能够调度非零仿真时间任务的Simulink模块。该模块在模型开发过程中实现了更贴合实际的仿真分析。