V-Model diagram#

A simplified V-Model representation of the Eclipse Automotive API Framework workflow could look like this:

   SAFETY REQUIREMENTS
           |
           v
+----------------------+
|  AFS Metamodel       |
|  Specification       |
+----------------------+
           |
           v
+----------------------+
|  AFS Definition      |
|  (*.afs)             |
+----------------------+
           |
           v
+----------------------+
|  AFS Validation      |
|  (Pydantic Rules)    |
+----------------------+
           |
           v
+----------------------+
|  API Generation      |
|  (Jinja2 Templates)  |
+----------------------+
           |
           v
+----------------------+
| Generated Function   |
| API Code             |
+----------------------+
           |
           v
+----------------------+
| Integration into     |
| Vehicle Function     |
+----------------------+

+----------------------+
| Generated Code       |
| Verification Tests   |
+----------------------+
           ^
           |
+----------------------+
| Generator Regression |
| Tests                |
+----------------------+
           ^
           |
+----------------------+
| Validation Rule      |
| Tests                |
+----------------------+
           ^
           |
+----------------------+
| Metamodel Reviews &  |
| Requirement Reviews  |
+----------------------+

Or in a more ISO 26262-oriented V-model:

LEFT SIDE (Specification)        RIGHT SIDE (Verification)

Safety Requirements   -----------------> Requirement Verification
       |
       v
AFS Metamodel         -----------------> Metamodel Review
       |
       v
AFS File (*.afs)      -----------------> AFS Validation Results
       |                                 (Pydantic)
       |
       v
Generation Rules
(Jinja2 Templates)    -----------------> Generator Regression Tests
       |
       v
Generated API Code    -----------------> API Verification /
       |                                 Static Analysis /
       |                                 Unit Tests
       |
       v
Vehicle Function      -----------------> Integration Tests
       |
       v
Safety-related ECU    -----------------> System Tests

Tool qualification view

Safety Requirements
         |
         v
   AFS Model
         |
  [Validation]
    Pydantic
         |
         v
  Validated AFS
         |
 [Code Generator]
       Jinja2
         |
         v
 Generated API
         |
   Verification
(Unit/Integration Tests)

Tool Confidence Analysis (ISO 26262-8)#

  • AFS Editor (C++)

  • Pydantic

  • Jinja2

  • Generation Templates

This version maps directly to the ISO 26262 argument that the AFS model is the specification artifact, the Pydantic layer performs model verification, Jinja2 performs transformation/code generation, and independent verification activities provide confidence in the generated API and the tools used.