AUTOSAR Code Generation via Parameterized Model Adaptation

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

The existing methods for adapting control device models from Classic AUTOSAR to Adaptive AUTOSAR platforms require extensive adjustments, leading to the need for maintaining two independent models, which complicates the universal use of partial models across various projects.

Innovation Solution

A method for generating source code from hierarchical block diagrams that includes replacing references with data objects, determining code generation settings, optimizing intermediate representations, and translating them into source code, allowing for customizable communication and optimization based on the target hardware and code generation mode.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If extensive adaptations are made when using submodels from Classic AUTOSAR in Adaptive AUTOSAR platform, then the model can be adapted to the new platform, but the complexity of maintaining two independent models increases

Engineering Contradiction:
Improveadaptability of submodelVSAvoidcomplexity of model maintenance
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The patent applies parameter changes by introducing a code generation mode parameter that can be configured to generate different types of source code (Classic AUTOSAR mode or Adaptive AUTOSAR mode). This allows the same block diagram model to be adapted to different AUTOSAR platforms by changing the code generation parameters rather than maintaining separate models, thereby reducing maintenance complexity while preserving adaptability.

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The patent implements universality by creating a single block diagram model that can serve multiple purposes - it can generate code for both Classic AUTOSAR and Adaptive AUTOSAR platforms. The model becomes multi-functional through the code generation mode parameter, eliminating the need to maintain two independent models and reducing overall system complexity.

Inventive Principle:
Principle #6Universality (Multi-functionality)

2Adaptability or versatility

If a single block diagram model is used for both Classic and Adaptive AUTOSAR platforms, then model reusability improves, but the ability to generate platform-specific code becomes more complex

Engineering Contradiction:
Improvereusability of modelVSAvoidcomplexity of code generation
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The patent resolves this contradiction by using parameter changes in the code generation process. A code generation mode parameter can be set to 'Classic AUTOSAR' or 'Adaptive AUTOSAR', and the code generator automatically adjusts its behavior accordingly. This allows a single universal model to generate platform-specific code without increasing the complexity of the code generation process itself, as the platform-specific characteristics are captured through parameter configuration rather than model complexity.

Inventive Principle:
Principle #35Parameter changes

3Reliability

If extensive adaptations are made for Adaptive AUTOSAR platform, then platform-specific requirements are met, but the development time and effort increase

Engineering Contradiction:
Improveplatform complianceVSAvoiddevelopment time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent applies preliminary action by pre-configuring the code generator with different code generation modes that correspond to different AUTOSAR platforms. The platform-specific code generation logic is prepared in advance within the code generator itself, so that when code generation is executed, the appropriate platform-specific code is automatically generated without requiring extensive manual adaptations during development. This maintains platform compliance while significantly reducing development time and effort.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentEP4270176B1Method for generating source code
Publication Date: 2024.10.16 DSPACE DIGITAL SIGNAL PROCESSING & CONTROL ENGINEERING GMBH
  • EP4270176B1 patent drawingFigure 1~2
  • EP4270176B1 patent drawingFigure 3
  • EP4270176B1 patent drawingFigure 4

AI summary

The invention relates to a method for generating source code from at least one hierarchical block of a block diagram, wherein the hierarchical block comprises at least one communication block that exchanges data with a block outside the hierarchical block, and wherein the at least one communication block is provided with a reference to a data object. The method comprises reading the block diagram, replacing the reference with the referenced data object, determining at least one code generation setting based on the selected data object, generating an intermediate representation, performing at least one optimization on the intermediate representation, and translating the intermediate representation into source code. The invention further relates to a method for configuring a control unit, a computer program product, and a computer system.