SimSched: A tool for Simulating Autosar Implementaion in Simulink

Jian Chen,Manar H. Alalfi,Thomas R. Dean,Ramesh S
2023-08-29
Abstract: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.
Software Engineering
What problem does this paper attempt to address?
The paper attempts to address the issue that existing methods cannot accurately reflect the actual execution time of software tasks when simulating AUTOSAR (Automotive Open System Architecture) implementations in the Simulink environment. This makes it difficult to detect unexpected behaviors that may occur at runtime during the simulation phase. Specifically, Simulink assumes that the behavior of all blocks is completed in zero execution time, while actual execution requires a finite amount of time, which may lead to a mismatch between simulation and actual operation. To tackle this challenge, the paper proposes a tool called SimSched, which extends the Simulink environment to model the timing attributes of tasks. SimSched introduces a Simulink block that can schedule tasks with non-zero simulation time, enabling more realistic analysis during the model development process. In this way, SimSched can more accurately reflect the actual runtime behavior of AUTOSAR applications during the simulation phase, reducing design errors caused by timing issues and improving the system's real-time performance verification capability.