Intermediate Language Model for Vehicle ECU Code Generation
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
In model-based software development for electronic control units, existing methods either require disclosing the reference model for code generation, leading to intellectual property protection issues, or necessitate adapting code at the source level, which reduces efficiency and increases costs due to inconsistent models and additional code requirements.
Innovation Solution
A method involving the creation of an intermediate language model from a reference model, where only necessary parameters and information are visible and modifiable, allowing adaptation to a specific control unit without switching to the source code level, while obscuring other details to protect intellectual property.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Ease of manufacture
If the reference model is disclosed for code generation, then code can be generated and adapted, but intellectual property protection is compromised
Solution Approach 1:
The patent introduces an intermediate representation (IR) as a mediator between the reference model and the target code. The IR contains only the necessary behavioral specifications and interface definitions required for code generation, while deliberately excluding implementation details, algorithmic logic, and proprietary data structures. This intermediary form enables second-party developers to generate functional code without accessing the underlying intellectual property in the reference model.
2Adaptability or versatility
If code is provided at source code level for adaptation, then customization is possible, but model-code consistency is broken and additional adaptation code is required
Solution Approach 1:
The patent performs preliminary adaptation actions by embedding target-specific configuration parameters, hardware interface definitions, and platform-specific constraints directly into the intermediate representation before code generation. This preliminary configuration enables the code generator to produce target-adapted code in a single pass, eliminating the need for subsequent source-level modifications and maintaining consistent model-code relationships throughout the development lifecycle.
3Adaptability or versatility
If additional frame code is used for adaptation, then control unit-specific customization is achieved, but runtime performance decreases and memory usage increases
Solution Approach 1:
The patent applies local quality by generating code with target-specific optimizations embedded directly into the functional code blocks rather than using generic frame code wrappers. The intermediate representation includes platform-specific performance parameters, optimization flags, and hardware-acceleration hints that enable the code generator to produce highly efficient, tailored code for each target control unit. This approach eliminates the performance overhead of additional adaptation layers while maintaining full customization capability.
Data Source
AI summary
A method for generating a code from a reference model for use in an electronic control unit for vehicles. An intermediate language model is created from which a code can be generated, which implements the behavior of the reference model. The intermediate language model comprises a first plurality of parameters and information and a second plurality of parameters and information. The intermediate language model is adaptable on the basis of the first plurality of parameters and information, so that a code adapted to a particular control unit can be generated.


