固有的高性能 AUTOSAR 支持

设计Classic AUTOSAR Software Components (SWCs)

可选的TargetLink AUTOSAR Module 使得 TargetLink 的建模、仿真和代码生成特征适用于设计Classic AUTOSAR软件组件 (SWCs).。开发人员可以使用Targetlink AUTOSAR Block Library轻松指定Classic AUTOSAR的结构组成部分,如runnable对象,端口,以及模型层面的通信接口。

Classic AUTOSAR SWC建模

为了定义Classic AUTOSAR runnable, Function模块可指定为Classic AUTOSAR Runnable,应用到已建模的子系统中,与常规Targetlink功能相似。与在非AUTOSAR应用中类似, TargetLink Inport和 Outport也可以用来定义一个或多个SWC中runnable对象之间的数据交换。TargetLink 支持绝大多数的 Classic AUTOSAR通信机制。

参照Classic AUTOSAR对象由专用块对话框的Data Dictionary进行指定。

属性说明基于模块级,并通过TargetLink Data Dictionary实现。该模型还可用于产生兼容Classic AUTOSAR的代码和标准Targetlink代码。

生成兼容 Classic AUTOSAR的代码

Targetlink为 Classic AUTOSAR软件组件生成产品级代码,并提供所有的代码生成选项实现优化。已建模的runnable对象作为C函数进行实施,TargetLink Inports/Outports中指定的Classic AUTOSAR通信机制根据Classic AUTOSAR标准作为运行时环境(RTE)宏进行实施。

仿真和测试Classic AUTOSAR SWCs

SWC可以通过TargetLink在所有的仿真模式中进行仿真,包括以下三类:

  • 模型在环 (MIL)
  • 软件在环 (SIL)
  • 处理器在环 (PIL)

一次仿真运行可以同时仿真多个SWC。SWC之间的通信可通过Simulink设计环境支持进行仿真。

有用的功能和工具(示例)

Feature Description Benefit
  • Importing and exporting SWC descriptions
  • Creating component descriptions and exporting them in Classic AUTOSAR XML format
  • Importing and merging existing component descriptions from the TargetLink Data Dictionary
  • Seamless Classic AUTOSAR development process with a tool like SystemDesk
  • Classic AUTOSAR frame model generation
  • Generating a frame model containing the relevant Classic AUTOSAR ports and runnables
  • The developer can insert the control algorithm into the model frame to obtain a complete Classic AUTOSAR software component
  • Easy migration of existing models to Classic AUTOSAR
  • Easy modeling from scratch
  • Migrating standard TargetLink models to Classic AUTOSAR
  • TargetLink AUTOSAR Migration Tool for automatically converting individual subsystems to Classic AUTOSAR runnables
  • Supporting the flexible specification of Classic AUTOSAR properties
  • Highest flexibility when re-using existing software parts

Classic AUTOSAR 工具链中的TargetLink

TargetLink通常结合AUTOSAR架构工具(如 SystemDesk),进行Classic AUTOSAR软件开发。含有多个组件的软件架构在架构工具中指定。同时,可以利用TargetLink 帮助实现单个SWC。这两个工具基于Classic AUTOSAR XML文件进行数据交换。有两种方法可以进行Classic AUTOSAR双向运行,一种是自上而下(从软件体架构开始),还有一种是自下向上(从Targetlink功能模型开始)。通过使用新产品dSPACE AUTOSAR Compare,可以简化和自动化此AUTOSAR往返过程,使用户能够进行比较并手动或自动合并其AUTOSAR工件。

Adaptive AUTOSAR的产品级代码

With the optional TargetLink Adaptive AUTOSAR Module, TargetLink offers model-based code generation for functional parts of Adaptive AUTOSAR applications. TargetLink 5.1 supports selected features of the Adaptive AUTOSAR Release 19-11 standard. The following additional features are supported with TargetLink 5.1 compared to TargetLink 5.0:

  • Import of Adaptive AUTOSAR ARXMLs with elements defined by ara::per
  • Modeling of select parts of a service-based communication as described by ara::com:
    • Sending and receiving events as defined in Adaptive AUTOSAR release 18-10.
    • SIL simulation of Adaptive AUTOSAR components.
  • Modeling of select parts of access to persistent memory as described by ara::per:
    • Read and write access to key-value pairs with an AdaptivePlatformType from key-value storages via Data Store blocks.

A demo model that showcases the different modeling styles for Adaptive AUTOSAR communication is provided. Additionally, a new guide (Adaptive AUTOSAR modeling guide) for the user documentation is available.

Further Information Product Information

订阅新闻通讯

订阅/管理订阅/取消订阅 dSPACE新闻简讯