Devising Guidelines and Architecture for Efficient Auto-Generation of HIS Compliant Code.

2024-26-0269

01/16/2024

Event
Symposium on International Automotive Technology
Authors Abstract
Content
Maintaining Code Metrics for Auto-Generated Code. Author: Atul Varghese Abraham Keywords: Modelling, Complexity, Safety Motivation The ISO 26262 automotive functional safety standard recommends certain standards of quality and complexity for automotive source code. Hersteller Initiative Software (HIS) metrics help ensure that the code meets these standards. However, the use of auto-generated source code can make it difficult to comply with these metrics, as the code generator may not consider them. This can lead to high metric values that violate the allowed range. Key Problem It is difficult to assess the impact of design on HIS metrics in the modeling environment. It is possible to obtain a metrics report only after the source code has been generated. Meeting the HIS metrics through reworking and generating code again poses a significant challenge. Methodology To address the issue, modeling guidelines and architecture that help generate HIS-compliant code will be defined. The HIS metrics are translated into corresponding model implementations. For instance, the "Number of Function Parameters (PARAM)" metric can be translated into the number of ports in the subsystem. Since the allowed range is 0-5, the guideline is to segregate the logic into subsystems with less than five ports. The objective is to establish similar modeling guidelines for each attribute and a balanced skeletal architecture diagram for HIS metrics compliant design. Predictions and Results The effectiveness of the modeling guidelines will be shown by comparing two models with the same logic - one designed with the guidelines. Cyclomatic complexity is predicted to decrease approximately by 75% as decision points are separated into distinct functions. All the other HIS metrics are expected to be within the range. Conclusion By following the proposed guidelines, auto-generated code can meet HIS metrics, allowing for more efficient and effective automotive software design.
Meta TagsDetails
Citation
ABRAHAM, A., "Devising Guidelines and Architecture for Efficient Auto-Generation of HIS Compliant Code.," SAE Technical Paper 2024-26-0269, 2024, .
Additional Details
Publisher
Published
Jan 16, 2024
Product Code
2024-26-0269
Content Type
Technical Paper
Language
English