AUTOSAR Multi-Core

Multi-core architecture - based on AUTOSAR 4.3

AUTOSAR 4.3 are defined as follows multi-core architecture, based on this architecture, Application SWC may be assigned in accordance with the needs of the different cores, but you can see most of the BSW Module in a nucleus, part of the BSW Module within two nuclear They are present instance.
AUTOSAR Multi-CoreRte spans between the multi-core, provide Mapping between SWC and the BSW Module. The Mapping divided into two types, one is the BSW Module provides Satellite on when the corresponding core, and the other is not Staellite, as shown below:
Here Insert Picture Description

Basic Concepts

AUTOSAR describes three ways on cross-nuclear / Partition call services, is a direct, via RPC (Remote Procee Call), this way Rte might generate a series of protective measures for you, such as SpinLock; second is BSW Satellite, the third is the Proxy, he primarily through direct cross-core C / S calls turned into resource consumption less S / R interface calls, as shown below:
BSW Satellites and Proxies
the RPC mechanism is not fixed, as mentioned above the SpinLock is one of them, but no matter what kind of mechanism, in order to solve its overhead data consistency brought about are relatively large. So the purpose of Proxy and Statellite mechanism is to improve the efficiency of access to basic services of the BSW Module on all nuclear.
In other words, after the use of Proxy or Satellite mechanism, you do not need as before to performance considerations will need to use a specific BSW Module service SWC, and certainly the BSW Module on a core design provides flexibility. Of course, even with the Proxy or Satellite, there will still be some resource overhead, but it is compared to the direct RPC, are slim.

Satellite

A BSW satellite is a part of a BSW service module. The idea is that the satellite offers services core-local, which means that it is executed on the same core as the accessing application SWC. The functional scope of satellites ranges from full copies of the service to very basic functionality. Common for all satellites is, that they exchange data and/or control flow with the (Master) BSW service module. Given the fact that the BSW service module can implement a tailored communication path that optimally suits to its communication needs, communication is more efficient compared to the universal path via the Rte (i.e. the RPC mechanism)

使用Satellite在多核中主要有如下两个好处:

1. (improved efficiency)RTE不再需要生成RPC机制;
2. 因为Statellite也是BSW Module的一部分,他承担了一部分的工作,很显然这会带来性能提升,因为调用方所在的核也会执行一部分的任务,即分担了主核的一些工作。

AUTOSAR WdgM, Dem, EcuM, Det 都提供了Satellite机制。

Proxy

A proxy translates the services of a BSW service module to a different interface type. The idea is to substitute the execution time expensive cross-core Client/Server operations with more lightweight Sender/Receiver Port Interfaces. Hence, whenever a SWC uses a service, it merely reads or writes data in shared RAM (Rte) instead of triggering a RPC.

简单说,Proxy就是用更轻量级的S/R接口取代了耗时的跨核的C/S调用(很显然,跨核C/S直接调用,调用方要等被调用方执行完成),最终实际的操作肯定还是C/S函数,但是这已经由原来的跨核变成了同一个核内由Proxy去直接调用BSW服务(参考上图),显然更好。
比较常见的有Com-Proxy和NVM-Proxy,其中Com-Proxy的Tx要注意要放到Com_MainFunctionTx之前:

Rte_ComSendSignalProxyPeriodic();/* Com Tx Proxy */
Com_MainFunctionTx();

术语

Core Types
multicore architecture has Master Core and Slave Core of the points, it was meant for the processor, such as Tc27x series, Core0 is the main core, but there are a concept called the AUTOSAR BSW Core, that is, the vast majority of BSW modules Mapping on BSW Core. BSW Core can be a Master Core can also be one of the other Slave Core.
Partition
AUTOSAR in, Partition refers to a group of SWC, BSW Module (Satellite), Task of the collection, is a concrete manifestation of OS Application. Partition has classification, from QM to ASILD, corresponding to the first of several Set MPU. It should be noted that, OS Application there are Trusted and Non-Trusted points, but this has nothing to do ASIL root level, QM of Partition can also be a Trusted.
Here Insert Picture Description

Multi-core and lower electric start

start up

Power down

Published 24 original articles · won praise 15 · views 10000 +

Guess you like

Origin blog.csdn.net/ck1n9/article/details/104446244