powertrain-build 1.13.1__py3-none-any.whl → 1.13.3.dev3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (132) hide show
  1. powertrain_build/__init__.py +40 -40
  2. powertrain_build/__main__.py +6 -6
  3. powertrain_build/a2l.py +582 -582
  4. powertrain_build/a2l_merge.py +650 -650
  5. powertrain_build/a2l_templates.py +717 -717
  6. powertrain_build/build.py +985 -985
  7. powertrain_build/build_defs.py +309 -309
  8. powertrain_build/build_proj_config.py +690 -690
  9. powertrain_build/check_interface.py +575 -575
  10. powertrain_build/cli.py +141 -141
  11. powertrain_build/config.py +542 -542
  12. powertrain_build/core.py +395 -395
  13. powertrain_build/core_dummy.py +343 -343
  14. powertrain_build/create_conversion_table.py +73 -73
  15. powertrain_build/dids.py +916 -916
  16. powertrain_build/dummy.py +157 -157
  17. powertrain_build/dummy_spm.py +252 -252
  18. powertrain_build/environmentcheck.py +52 -52
  19. powertrain_build/ext_dbg.py +255 -255
  20. powertrain_build/ext_var.py +327 -327
  21. powertrain_build/feature_configs.py +301 -301
  22. powertrain_build/gen_allsysteminfo.py +227 -227
  23. powertrain_build/gen_label_split.py +449 -449
  24. powertrain_build/handcode_replacer.py +124 -124
  25. powertrain_build/html_report.py +133 -133
  26. powertrain_build/interface/__init__.py +4 -4
  27. powertrain_build/interface/application.py +511 -511
  28. powertrain_build/interface/base.py +500 -500
  29. powertrain_build/interface/csp_api.py +490 -490
  30. powertrain_build/interface/device_proxy.py +677 -677
  31. powertrain_build/interface/ems.py +67 -67
  32. powertrain_build/interface/export_global_vars.py +121 -121
  33. powertrain_build/interface/generate_adapters.py +132 -132
  34. powertrain_build/interface/generate_hi_interface.py +87 -87
  35. powertrain_build/interface/generate_service.py +69 -69
  36. powertrain_build/interface/generate_wrappers.py +147 -147
  37. powertrain_build/interface/generation_utils.py +142 -142
  38. powertrain_build/interface/hal.py +194 -194
  39. powertrain_build/interface/model_yaml_verification.py +348 -348
  40. powertrain_build/interface/service.py +296 -296
  41. powertrain_build/interface/simulink.py +249 -249
  42. powertrain_build/interface/update_call_sources.py +180 -180
  43. powertrain_build/interface/update_model_yaml.py +186 -186
  44. powertrain_build/interface/zone_controller.py +362 -362
  45. powertrain_build/lib/__init__.py +4 -4
  46. powertrain_build/lib/helper_functions.py +127 -127
  47. powertrain_build/lib/logger.py +55 -55
  48. powertrain_build/matlab_scripts/CodeGen/BuildAutomationPyBuild.m +78 -78
  49. powertrain_build/matlab_scripts/CodeGen/Generate_A2L.m +154 -154
  50. powertrain_build/matlab_scripts/CodeGen/generateTLUnit.m +239 -239
  51. powertrain_build/matlab_scripts/CodeGen/getAsilClassification.m +28 -28
  52. powertrain_build/matlab_scripts/CodeGen/modelConfiguredForTL.m +28 -28
  53. powertrain_build/matlab_scripts/CodeGen/moveDefOutports.m +88 -88
  54. powertrain_build/matlab_scripts/CodeGen/parseCalMeasData.m +410 -410
  55. powertrain_build/matlab_scripts/CodeGen/parseCoreIdentifiers.m +139 -139
  56. powertrain_build/matlab_scripts/CodeGen/parseDIDs.m +141 -141
  57. powertrain_build/matlab_scripts/CodeGen/parseInPorts.m +106 -106
  58. powertrain_build/matlab_scripts/CodeGen/parseIncludeConfigs.m +25 -25
  59. powertrain_build/matlab_scripts/CodeGen/parseModelInfo.m +38 -38
  60. powertrain_build/matlab_scripts/CodeGen/parseNVM.m +81 -81
  61. powertrain_build/matlab_scripts/CodeGen/parseOutPorts.m +120 -120
  62. powertrain_build/matlab_scripts/CodeGen/parsePreProcBlks.m +23 -23
  63. powertrain_build/matlab_scripts/CodeGen/struct2JSON.m +128 -128
  64. powertrain_build/matlab_scripts/CodeGen/updateCodeSwConfig.m +31 -31
  65. powertrain_build/matlab_scripts/Init_PyBuild.m +91 -91
  66. powertrain_build/matlab_scripts/__init__.py +2 -2
  67. powertrain_build/matlab_scripts/helperFunctions/Get_Full_Name.m +46 -46
  68. powertrain_build/matlab_scripts/helperFunctions/Get_SrcLines.m +12 -12
  69. powertrain_build/matlab_scripts/helperFunctions/Init_Models.m +78 -78
  70. powertrain_build/matlab_scripts/helperFunctions/Init_Projects.m +67 -67
  71. powertrain_build/matlab_scripts/helperFunctions/Read_Units.m +34 -34
  72. powertrain_build/matlab_scripts/helperFunctions/SetProjectTimeSamples.m +26 -26
  73. powertrain_build/matlab_scripts/helperFunctions/Strip_Suffix.m +16 -16
  74. powertrain_build/matlab_scripts/helperFunctions/followLink.m +118 -118
  75. powertrain_build/matlab_scripts/helperFunctions/getCodeSwitches.m +50 -50
  76. powertrain_build/matlab_scripts/helperFunctions/getConsumerBlocks.m +30 -30
  77. powertrain_build/matlab_scripts/helperFunctions/getDefBlock.m +39 -39
  78. powertrain_build/matlab_scripts/helperFunctions/getDefOutport.m +58 -58
  79. powertrain_build/matlab_scripts/helperFunctions/getDstBlocks.m +19 -19
  80. powertrain_build/matlab_scripts/helperFunctions/getDstLines.m +13 -13
  81. powertrain_build/matlab_scripts/helperFunctions/getInterfaceSignals.m +37 -37
  82. powertrain_build/matlab_scripts/helperFunctions/getName.m +37 -37
  83. powertrain_build/matlab_scripts/helperFunctions/getPath.m +6 -6
  84. powertrain_build/matlab_scripts/helperFunctions/getProperValue.m +21 -21
  85. powertrain_build/matlab_scripts/helperFunctions/getSrcBlocks.m +19 -19
  86. powertrain_build/matlab_scripts/helperFunctions/getSrcLines.m +13 -13
  87. powertrain_build/matlab_scripts/helperFunctions/loadLibraries.m +10 -10
  88. powertrain_build/matlab_scripts/helperFunctions/loadjson.m +6 -6
  89. powertrain_build/matlab_scripts/helperFunctions/modifyEnumStructField.m +21 -21
  90. powertrain_build/matlab_scripts/helperFunctions/removeConfigDuplicates.m +31 -31
  91. powertrain_build/matlab_scripts/helperFunctions/sortSystemByClass.m +26 -26
  92. powertrain_build/matlab_scripts/helperFunctions/tl_getfast.m +89 -89
  93. powertrain_build/matlab_scripts/helperFunctions/topLevelSystem.m +20 -20
  94. powertrain_build/matlab_scripts/helperFunctions/updateModels.m +131 -131
  95. powertrain_build/memory_section.py +224 -224
  96. powertrain_build/nvm_def.py +729 -729
  97. powertrain_build/problem_logger.py +86 -86
  98. powertrain_build/pt_matlab.py +430 -430
  99. powertrain_build/pt_win32.py +144 -144
  100. powertrain_build/replace_compu_tab_ref.py +105 -105
  101. powertrain_build/rte_dummy.py +254 -254
  102. powertrain_build/sched_funcs.py +209 -207
  103. powertrain_build/signal.py +7 -7
  104. powertrain_build/signal_if_html_rep.py +221 -221
  105. powertrain_build/signal_if_html_rep_all.py +302 -302
  106. powertrain_build/signal_incons_html_rep.py +180 -180
  107. powertrain_build/signal_incons_html_rep_all.py +366 -366
  108. powertrain_build/signal_incons_html_rep_base.py +168 -168
  109. powertrain_build/signal_inconsistency_check.py +641 -641
  110. powertrain_build/signal_interfaces.py +864 -864
  111. powertrain_build/templates/Index_SigCheck_All.html +22 -22
  112. powertrain_build/templates/Index_SigIf_All.html +19 -19
  113. powertrain_build/types.py +218 -218
  114. powertrain_build/unit_configs.py +419 -419
  115. powertrain_build/user_defined_types.py +660 -660
  116. powertrain_build/versioncheck.py +66 -66
  117. powertrain_build/wrapper.py +512 -512
  118. powertrain_build/xlrd_csv.py +87 -87
  119. powertrain_build/zone_controller/__init__.py +4 -4
  120. powertrain_build/zone_controller/calibration.py +176 -176
  121. powertrain_build/zone_controller/composition_yaml.py +880 -878
  122. {powertrain_build-1.13.1.dist-info → powertrain_build-1.13.3.dev3.dist-info}/METADATA +100 -100
  123. powertrain_build-1.13.3.dev3.dist-info/RECORD +130 -0
  124. {powertrain_build-1.13.1.dist-info → powertrain_build-1.13.3.dev3.dist-info}/WHEEL +1 -1
  125. {powertrain_build-1.13.1.dist-info → powertrain_build-1.13.3.dev3.dist-info}/licenses/LICENSE +202 -202
  126. powertrain_build-1.13.3.dev3.dist-info/pbr.json +1 -0
  127. powertrain_build-1.13.1.dist-info/RECORD +0 -130
  128. powertrain_build-1.13.1.dist-info/pbr.json +0 -1
  129. {powertrain_build-1.13.1.dist-info → powertrain_build-1.13.3.dev3.dist-info}/entry_points.txt +0 -0
  130. {powertrain_build-1.13.1.dist-info → powertrain_build-1.13.3.dev3.dist-info}/licenses/AUTHORS +0 -0
  131. {powertrain_build-1.13.1.dist-info → powertrain_build-1.13.3.dev3.dist-info}/licenses/NOTICE +0 -0
  132. {powertrain_build-1.13.1.dist-info → powertrain_build-1.13.3.dev3.dist-info}/top_level.txt +0 -0
@@ -1,309 +1,309 @@
1
- # Copyright 2024 Volvo Car Corporation
2
- # Licensed under Apache 2.0.
3
-
4
- """Defines header file names for different sections generated c-code."""
5
-
6
- CVC_CODE_START = 'CVC_CODE_START.h' # Header file name for CVC code start
7
- CVC_CODE_END = 'CVC_CODE_END.h' # Header file name for CVC code end
8
- CVC_CODE_ASIL_A_START = 'CVC_CODE_ASIL_A_START.h' # Header file name for CVC code start
9
- CVC_CODE_ASIL_A_END = 'CVC_CODE_ASIL_A_END.h' # Header file name for CVC code end
10
- CVC_CODE_ASIL_B_START = 'CVC_CODE_ASIL_B_START.h' # Header file name for CVC code start
11
- CVC_CODE_ASIL_B_END = 'CVC_CODE_ASIL_B_END.h' # Header file name for CVC code end
12
- CVC_CODE_ASIL_C_START = 'CVC_CODE_ASIL_C_START.h' # Header file name for CVC code start
13
- CVC_CODE_ASIL_C_END = 'CVC_CODE_ASIL_C_END.h' # Header file name for CVC code end
14
- CVC_CODE_ASIL_D_START = 'CVC_CODE_ASIL_D_START.h' # Header file name for CVC code start
15
- CVC_CODE_ASIL_D_END = 'CVC_CODE_ASIL_D_END.h' # Header file name for CVC code end
16
-
17
- CVC_DISP_START = 'CVC_DISP_START.h' # Header file name for CVC measurable variables start
18
- CVC_DISP_END = 'CVC_DISP_END.h' # Header file name for CVC measurable variables end
19
- CVC_DISP_ASIL_A_START = 'CVC_DISP_ASIL_A_START.h' # Header file name for CVC ASIL A measurable variables start
20
- CVC_DISP_ASIL_A_END = 'CVC_DISP_ASIL_A_END.h' # Header file name for CVC ASIL A measurable variables end
21
- CVC_DISP_ASIL_B_START = 'CVC_DISP_ASIL_B_START.h' # Header file name for CVC ASIL B measurable variables start
22
- CVC_DISP_ASIL_B_END = 'CVC_DISP_ASIL_B_END.h' # Header file name for CVC ASIL B measurable variables end
23
- CVC_DISP_ASIL_C_START = 'CVC_DISP_ASIL_C_START.h' # Header file name for CVC ASIL C measurable variables start
24
- CVC_DISP_ASIL_C_END = 'CVC_DISP_ASIL_C_END.h' # Header file name for CVC ASIL C measurable variables end
25
- CVC_DISP_ASIL_D_START = 'CVC_DISP_ASIL_D_START.h' # Header file name for CVC ASIL D measurable variables start
26
- CVC_DISP_ASIL_D_END = 'CVC_DISP_ASIL_D_END.h' # Header file name for CVC ASIL D measurable variables end
27
- CVC_DISP_SEC_START = 'CVC_DISP_SEC_START.h' # Header file name for CVC secure measurable variables start
28
- CVC_DISP_SEC_END = 'CVC_DISP_SEC_END.h' # Header file name for CVC secure measurable variables end
29
-
30
- CVC_CAL_START = 'CVC_CAL_START.h' # Header file name for CVC calibration data start
31
- CVC_CAL_END = 'CVC_CAL_END.h' # Header file name for CVC calibration data end
32
- CVC_CAL_ASIL_A_START = 'CVC_CAL_ASIL_A_START.h' # Header file name for CVC calibration data start
33
- CVC_CAL_ASIL_A_END = 'CVC_CAL_ASIL_A_END.h' # Header file name for CVC calibration data end
34
- CVC_CAL_ASIL_B_START = 'CVC_CAL_ASIL_B_START.h' # Header file name for CVC calibration data start
35
- CVC_CAL_ASIL_B_END = 'CVC_CAL_ASIL_B_END.h' # Header file name for CVC calibration data end
36
- CVC_CAL_ASIL_C_START = 'CVC_CAL_ASIL_C_START.h' # Header file name for CVC calibration data start
37
- CVC_CAL_ASIL_C_END = 'CVC_CAL_ASIL_C_END.h' # Header file name for CVC calibration data end
38
- CVC_CAL_ASIL_D_START = 'CVC_CAL_ASIL_D_START.h' # Header file name for CVC calibration data start
39
- CVC_CAL_ASIL_D_END = 'CVC_CAL_ASIL_D_END.h' # Header file name for CVC calibration data end
40
-
41
- CVC_CONST_START = 'CVC_CONST_START.h' # Header file name for CVC calibration data start
42
- CVC_CONST_END = 'CVC_CONST_END.h' # Header file name for CVC calibration data end
43
- CVC_CONST_ASIL_A_START = 'CVC_CONST_ASIL_A_START.h' # Header file name for CVC calibration data start
44
- CVC_CONST_ASIL_A_END = 'CVC_CONST_ASIL_A_END.h' # Header file name for CVC calibration data end
45
- CVC_CONST_ASIL_B_START = 'CVC_CONST_ASIL_B_START.h' # Header file name for CVC calibration data start
46
- CVC_CONST_ASIL_B_END = 'CVC_CONST_ASIL_B_END.h' # Header file name for CVC calibration data end
47
- CVC_CONST_ASIL_C_START = 'CVC_CONST_ASIL_C_START.h' # Header file name for CVC calibration data start
48
- CVC_CONST_ASIL_C_END = 'CVC_CONST_ASIL_C_END.h' # Header file name for CVC calibration data end
49
- CVC_CONST_ASIL_D_START = 'CVC_CONST_ASIL_D_START.h' # Header file name for CVC calibration data start
50
- CVC_CONST_ASIL_D_END = 'CVC_CONST_ASIL_D_END.h' # Header file name for CVC calibration data end
51
-
52
- CVC_NVM_START = 'CVC_NVM_START.h' # Header file name for CVC Non Volatile Memory start
53
- CVC_NVM_END = 'CVC_NVM_END.h' # Header file name for CVC Non Volatile Memory end
54
- CVC_NVM_P_START = 'CVC_NVM_P_START.h' # Header file name for persistent Non Volatile Memory start
55
- CVC_NVM_P_END = 'CVC_NVM_P_END.h' # Header file name for persistent Non Volatile Memory end
56
-
57
- PREDECL_CODE_START = 'PREDECL_CODE_START.h' # Header file name for CVC code start
58
- PREDECL_CODE_END = 'PREDECL_CODE_END.h' # Header file name for CVC code end
59
- PREDECL_CODE_ASIL_A_START = 'PREDECL_CODE_ASIL_A_START.h' # Header file name for CVC code start
60
- PREDECL_CODE_ASIL_A_END = 'PREDECL_CODE_ASIL_A_END.h' # Header file name for CVC code end
61
- PREDECL_CODE_ASIL_B_START = 'PREDECL_CODE_ASIL_B_START.h' # Header file name for CVC code start
62
- PREDECL_CODE_ASIL_B_END = 'PREDECL_CODE_ASIL_B_END.h' # Header file name for CVC code end
63
- PREDECL_CODE_ASIL_C_START = 'PREDECL_CODE_ASIL_C_START.h' # Header file name for CVC code start
64
- PREDECL_CODE_ASIL_C_END = 'PREDECL_CODE_ASIL_C_END.h' # Header file name for CVC code end
65
- PREDECL_CODE_ASIL_D_START = 'PREDECL_CODE_ASIL_D_START.h' # Header file name for CVC code start
66
- PREDECL_CODE_ASIL_D_END = 'PREDECL_CODE_ASIL_D_END.h' # Header file name for CVC code end
67
-
68
- PREDECL_DISP_START = 'PREDECL_DISP_START.h' # Header file name for CVC measurable variables start
69
- PREDECL_DISP_END = 'PREDECL_DISP_END.h' # Header file name for CVC measurable variables end
70
- PREDECL_DISP_ASIL_A_START = 'PREDECL_DISP_ASIL_A_START.h' # Header file name for CVC ASIL A measurable variables start
71
- PREDECL_DISP_ASIL_A_END = 'PREDECL_DISP_ASIL_A_END.h' # Header file name for CVC ASIL A measurable variables end
72
- PREDECL_DISP_ASIL_B_START = 'PREDECL_DISP_ASIL_B_START.h' # Header file name for CVC ASIL B measurable variables start
73
- PREDECL_DISP_ASIL_B_END = 'PREDECL_DISP_ASIL_B_END.h' # Header file name for CVC ASIL B measurable variables end
74
- PREDECL_DISP_ASIL_C_START = 'PREDECL_DISP_ASIL_C_START.h' # Header file name for CVC ASIL C measurable variables start
75
- PREDECL_DISP_ASIL_C_END = 'PREDECL_DISP_ASIL_C_END.h' # Header file name for CVC ASIL C measurable variables end
76
- PREDECL_DISP_ASIL_D_START = 'PREDECL_DISP_ASIL_D_START.h' # Header file name for CVC ASIL D measurable variables start
77
- PREDECL_DISP_ASIL_D_END = 'PREDECL_DISP_ASIL_D_END.h' # Header file name for CVC ASIL D measurable variables end
78
- PREDECL_DISP_SEC_START = 'PREDECL_DISP_SEC_START.h' # Header file name for CVC secure measurable variables start
79
- PREDECL_DISP_SEC_END = 'PREDECL_DISP_SEC_END.h' # Header file name for CVC secure measurable variables end
80
-
81
- PREDECL_CAL_START = 'PREDECL_CAL_START.h' # Header file name for CVC calibration data start
82
- PREDECL_CAL_END = 'PREDECL_CAL_END.h' # Header file name for CVC calibration data end
83
- PREDECL_CAL_ASIL_A_START = 'PREDECL_CAL_ASIL_A_START.h' # Header file name for CVC calibration data start
84
- PREDECL_CAL_ASIL_A_END = 'PREDECL_CAL_ASIL_A_END.h' # Header file name for CVC calibration data end
85
- PREDECL_CAL_ASIL_B_START = 'PREDECL_CAL_ASIL_B_START.h' # Header file name for CVC calibration data start
86
- PREDECL_CAL_ASIL_B_END = 'PREDECL_CAL_ASIL_B_END.h' # Header file name for CVC calibration data end
87
- PREDECL_CAL_ASIL_C_START = 'PREDECL_CAL_ASIL_C_START.h' # Header file name for CVC calibration data start
88
- PREDECL_CAL_ASIL_C_END = 'PREDECL_CAL_ASIL_C_END.h' # Header file name for CVC calibration data end
89
- PREDECL_CAL_ASIL_D_START = 'PREDECL_CAL_ASIL_D_START.h' # Header file name for CVC calibration data start
90
- PREDECL_CAL_ASIL_D_END = 'PREDECL_CAL_ASIL_D_END.h' # Header file name for CVC calibration data end
91
- PREDECL_CAL_EXT_START = 'PREDECL_CAL_EXT_START.h' # Header file name for CVC calibration data start
92
- PREDECL_CAL_EXT_END = 'PREDECL_CAL_EXT_END.h' # Header file name for CVC calibration data end
93
- PREDECL_CAL_MERG_START = 'PREDECL_CAL_MERG_START.h' # Header file name for CVC calibration data start
94
- PREDECL_CAL_MERG_END = 'PREDECL_CAL_MERG_END.h' # Header file name for CVC calibration data end
95
-
96
- PREDECL_CONST_START = 'PREDECL_CONST_START.h' # Header file name for CVC calibration data start
97
- PREDECL_CONST_END = 'PREDECL_CONST_END.h' # Header file name for CVC calibration data end
98
- PREDECL_CONST_ASIL_A_START = 'PREDECL_CONST_ASIL_A_START.h' # Header file name for CVC calibration data start
99
- PREDECL_CONST_ASIL_A_END = 'PREDECL_CONST_ASIL_A_END.h' # Header file name for CVC calibration data end
100
- PREDECL_CONST_ASIL_B_START = 'PREDECL_CONST_ASIL_B_START.h' # Header file name for CVC calibration data start
101
- PREDECL_CONST_ASIL_B_END = 'PREDECL_CONST_ASIL_B_END.h' # Header file name for CVC calibration data end
102
- PREDECL_CONST_ASIL_C_START = 'PREDECL_CONST_ASIL_C_START.h' # Header file name for CVC calibration data start
103
- PREDECL_CONST_ASIL_C_END = 'PREDECL_CONST_ASIL_C_END.h' # Header file name for CVC calibration data end
104
- PREDECL_CONST_ASIL_D_START = 'PREDECL_CONST_ASIL_D_START.h' # Header file name for CVC calibration data start
105
- PREDECL_CONST_ASIL_D_END = 'PREDECL_CONST_ASIL_D_END.h' # Header file name for CVC calibration data end
106
- PREDECL_CONST_EXT_START = 'PREDECL_CONST_EXT_START.h' # Header file name for CVC calibration data start
107
- PREDECL_CONST_EXT_END = 'PREDECL_CONST_EXT_END.h' # Header file name for CVC calibration data end
108
- PREDECL_CONST_MERG_START = 'PREDECL_CONST_MERG_START.h' # Header file name for CVC calibration data start
109
- PREDECL_CONST_MERG_END = 'PREDECL_CONST_MERG_END.h' # Header file name for CVC calibration data end
110
-
111
- PREDECL_NVM_START = 'PREDECL_NVM_START.h' # Header file name for CVC Non Volatile Memory start
112
- PREDECL_NVM_END = 'PREDECL_NVM_END.h' # Header file name for CVC Non Volatile Memory end
113
- PREDECL_NVM_P_START = 'PREDECL_NVM_P_START.h' # Header file name for persistent Non Volatile Memory start
114
- PREDECL_NVM_P_END = 'PREDECL_NVM_P_END.h' # Header file name for persistent Non Volatile Memory end
115
-
116
- PREDECL_START = 'PREDECL_START.h'
117
- PREDECL_END = 'PREDECL_END.h'
118
-
119
- CVC_CODE_QM = {'START': CVC_CODE_START, 'END': CVC_CODE_END}
120
- CVC_CODE_A = {'START': CVC_CODE_ASIL_A_START, 'END': CVC_CODE_ASIL_A_END}
121
- CVC_CODE_B = {'START': CVC_CODE_ASIL_B_START, 'END': CVC_CODE_ASIL_B_END}
122
- CVC_CODE_C = {'START': CVC_CODE_ASIL_C_START, 'END': CVC_CODE_ASIL_C_END}
123
- CVC_CODE_D = {'START': CVC_CODE_ASIL_D_START, 'END': CVC_CODE_ASIL_D_END}
124
-
125
- CVC_DISP_QM = {'START': CVC_DISP_START, 'END': CVC_DISP_END}
126
- CVC_DISP_A = {'START': CVC_DISP_ASIL_A_START, 'END': CVC_DISP_ASIL_A_END}
127
- CVC_DISP_B = {'START': CVC_DISP_ASIL_B_START, 'END': CVC_DISP_ASIL_B_END}
128
- CVC_DISP_C = {'START': CVC_DISP_ASIL_C_START, 'END': CVC_DISP_ASIL_C_END}
129
- CVC_DISP_D = {'START': CVC_DISP_ASIL_D_START, 'END': CVC_DISP_ASIL_D_END}
130
- CVC_DISP_SECURE = {'START': CVC_DISP_SEC_START, 'END': CVC_DISP_SEC_END}
131
-
132
- CVC_CAL_QM = {'START': CVC_CAL_START, 'END': CVC_CAL_END}
133
- CVC_CAL_A = {'START': CVC_CAL_ASIL_A_START, 'END': CVC_CAL_ASIL_A_END}
134
- CVC_CAL_B = {'START': CVC_CAL_ASIL_B_START, 'END': CVC_CAL_ASIL_B_END}
135
- CVC_CAL_C = {'START': CVC_CAL_ASIL_C_START, 'END': CVC_CAL_ASIL_C_END}
136
- CVC_CAL_D = {'START': CVC_CAL_ASIL_D_START, 'END': CVC_CAL_ASIL_D_END}
137
-
138
- CVC_CONST_QM = {'START': CVC_CONST_START, 'END': CVC_CONST_END}
139
- CVC_CONST_A = {'START': CVC_CONST_ASIL_A_START, 'END': CVC_CONST_ASIL_A_END}
140
- CVC_CONST_B = {'START': CVC_CONST_ASIL_B_START, 'END': CVC_CONST_ASIL_B_END}
141
- CVC_CONST_C = {'START': CVC_CONST_ASIL_C_START, 'END': CVC_CONST_ASIL_C_END}
142
- CVC_CONST_D = {'START': CVC_CONST_ASIL_D_START, 'END': CVC_CONST_ASIL_D_END}
143
-
144
- CVC_NVM = {'START': CVC_NVM_START, 'END': CVC_NVM_END}
145
- CVC_NVM_P = {'START': CVC_NVM_P_START, 'END': CVC_NVM_P_END}
146
-
147
- PREDECL = {'START': PREDECL_START, 'END': PREDECL_END}
148
-
149
- PREDECL_CODE_QM = {'START': PREDECL_CODE_START, 'END': PREDECL_CODE_END}
150
- PREDECL_CODE_A = {'START': PREDECL_CODE_ASIL_A_START, 'END': PREDECL_CODE_ASIL_A_END}
151
- PREDECL_CODE_B = {'START': PREDECL_CODE_ASIL_B_START, 'END': PREDECL_CODE_ASIL_B_END}
152
- PREDECL_CODE_C = {'START': PREDECL_CODE_ASIL_C_START, 'END': PREDECL_CODE_ASIL_C_END}
153
- PREDECL_CODE_D = {'START': PREDECL_CODE_ASIL_D_START, 'END': PREDECL_CODE_ASIL_D_END}
154
-
155
- PREDECL_DISP_QM = {'START': PREDECL_DISP_START, 'END': PREDECL_DISP_END}
156
- PREDECL_DISP_A = {'START': PREDECL_DISP_ASIL_A_START, 'END': PREDECL_DISP_ASIL_A_END}
157
- PREDECL_DISP_B = {'START': PREDECL_DISP_ASIL_B_START, 'END': PREDECL_DISP_ASIL_B_END}
158
- PREDECL_DISP_C = {'START': PREDECL_DISP_ASIL_C_START, 'END': PREDECL_DISP_ASIL_C_END}
159
- PREDECL_DISP_D = {'START': PREDECL_DISP_ASIL_D_START, 'END': PREDECL_DISP_ASIL_D_END}
160
- PREDECL_DISP_SECURE = {'START': PREDECL_DISP_SEC_START, 'END': PREDECL_DISP_SEC_END}
161
-
162
- PREDECL_CAL_QM = {'START': PREDECL_CAL_START, 'END': PREDECL_CAL_END}
163
- PREDECL_CAL_A = {'START': PREDECL_CAL_ASIL_A_START, 'END': PREDECL_CAL_ASIL_A_END}
164
- PREDECL_CAL_B = {'START': PREDECL_CAL_ASIL_B_START, 'END': PREDECL_CAL_ASIL_B_END}
165
- PREDECL_CAL_C = {'START': PREDECL_CAL_ASIL_C_START, 'END': PREDECL_CAL_ASIL_C_END}
166
- PREDECL_CAL_D = {'START': PREDECL_CAL_ASIL_D_START, 'END': PREDECL_CAL_ASIL_D_END}
167
- PREDECL_CAL_EXT = {'START': PREDECL_CAL_EXT_START, 'END': PREDECL_CAL_EXT_END}
168
- PREDECL_CAL_MERG = {'START': PREDECL_CAL_MERG_START, 'END': PREDECL_CAL_MERG_END}
169
-
170
- PREDECL_CONST_QM = {'START': PREDECL_CONST_START, 'END': PREDECL_CONST_END}
171
- PREDECL_CONST_A = {'START': PREDECL_CONST_ASIL_A_START, 'END': PREDECL_CONST_ASIL_A_END}
172
- PREDECL_CONST_B = {'START': PREDECL_CONST_ASIL_B_START, 'END': PREDECL_CONST_ASIL_B_END}
173
- PREDECL_CONST_C = {'START': PREDECL_CONST_ASIL_C_START, 'END': PREDECL_CONST_ASIL_C_END}
174
- PREDECL_CONST_D = {'START': PREDECL_CONST_ASIL_D_START, 'END': PREDECL_CONST_ASIL_D_END}
175
- PREDECL_CONST_EXT = {'START': PREDECL_CONST_EXT_START, 'END': PREDECL_CONST_EXT_END}
176
- PREDECL_CONST_MERG = {'START': PREDECL_CONST_MERG_START, 'END': PREDECL_CONST_MERG_END}
177
-
178
- PREDECL_NVM = {'START': PREDECL_NVM_START, 'END': PREDECL_NVM_END}
179
- PREDECL_NVM_P = {'START': PREDECL_NVM_P_START, 'END': PREDECL_NVM_P_END}
180
-
181
- CVC_SECURE = {
182
- 'CODE': CVC_CODE_QM,
183
- 'DISP': CVC_DISP_SECURE,
184
- 'CAL': CVC_CAL_QM,
185
- 'CONST': CVC_CONST_QM
186
- }
187
-
188
- CVC_ASIL_QM = {
189
- 'CODE': CVC_CODE_QM,
190
- 'DISP': CVC_DISP_QM,
191
- 'CAL': CVC_CAL_QM,
192
- 'CONST': CVC_CONST_QM
193
- }
194
-
195
- CVC_ASIL_A = {
196
- 'CODE': CVC_CODE_A,
197
- 'DISP': CVC_DISP_A,
198
- 'CAL': CVC_CAL_A,
199
- 'CONST': CVC_CONST_A
200
- }
201
-
202
- CVC_ASIL_B = {
203
- 'CODE': CVC_CODE_B,
204
- 'DISP': CVC_DISP_B,
205
- 'CAL': CVC_CAL_B,
206
- 'CONST': CVC_CONST_B
207
- }
208
-
209
- CVC_ASIL_C = {
210
- 'CODE': CVC_CODE_C,
211
- 'DISP': CVC_DISP_C,
212
- 'CAL': CVC_CAL_C,
213
- 'CONST': CVC_CONST_C
214
- }
215
-
216
- CVC_ASIL_D = {
217
- 'CODE': CVC_CODE_D,
218
- 'DISP': CVC_DISP_D,
219
- 'CAL': CVC_CAL_D,
220
- 'CONST': CVC_CONST_D
221
- }
222
-
223
- PREDECL_SECURE = {
224
- 'CODE': PREDECL_CODE_QM,
225
- 'DISP': PREDECL_DISP_SECURE,
226
- 'CAL': PREDECL_CAL_QM,
227
- 'CONST': PREDECL_CONST_QM
228
- }
229
-
230
- PREDECL_ASIL_QM = {
231
- 'CODE': PREDECL_CODE_QM,
232
- 'DISP': PREDECL_DISP_QM,
233
- 'CAL': PREDECL_CAL_QM,
234
- 'CONST': PREDECL_CONST_QM
235
- }
236
-
237
- PREDECL_ASIL_A = {
238
- 'CODE': PREDECL_CODE_A,
239
- 'DISP': PREDECL_DISP_A,
240
- 'CAL': PREDECL_CAL_A,
241
- 'CONST': PREDECL_CONST_A
242
- }
243
-
244
- PREDECL_ASIL_B = {
245
- 'CODE': PREDECL_CODE_B,
246
- 'DISP': PREDECL_DISP_B,
247
- 'CAL': PREDECL_CAL_B,
248
- 'CONST': PREDECL_CONST_B
249
- }
250
-
251
- PREDECL_ASIL_C = {
252
- 'CODE': PREDECL_CODE_C,
253
- 'DISP': PREDECL_DISP_C,
254
- 'CAL': PREDECL_CAL_C,
255
- 'CONST': PREDECL_CONST_C
256
- }
257
-
258
- PREDECL_ASIL_D = {
259
- 'CODE': PREDECL_CODE_D,
260
- 'DISP': PREDECL_DISP_D,
261
- 'CAL': PREDECL_CAL_D,
262
- 'CONST': PREDECL_CONST_D
263
- }
264
-
265
- PREDECL_EXTRA = {
266
- 'NORM': PREDECL,
267
- 'CAL_EXT': PREDECL_CAL_EXT,
268
- 'CONST_EXT': PREDECL_CONST_EXT,
269
- 'CAL_MERG': PREDECL_CAL_MERG,
270
- 'CONST_MERG': PREDECL_CONST_MERG
271
- }
272
-
273
- NVM = {'CVC': CVC_NVM, 'PREDECL': PREDECL_NVM}
274
- NVM_P = {'CVC': CVC_NVM_P, 'PREDECL': PREDECL_NVM_P}
275
- SECURE = {'CVC': CVC_SECURE, 'PREDECL': PREDECL_SECURE}
276
- ASIL_QM = {'CVC': CVC_ASIL_QM, 'PREDECL': PREDECL_ASIL_QM}
277
- ASIL_A = {'CVC': CVC_ASIL_A, 'PREDECL': PREDECL_ASIL_A}
278
- ASIL_B = {'CVC': CVC_ASIL_B, 'PREDECL': PREDECL_ASIL_B}
279
- ASIL_C = {'CVC': CVC_ASIL_C, 'PREDECL': PREDECL_ASIL_C}
280
- ASIL_D = {'CVC': CVC_ASIL_D, 'PREDECL': PREDECL_ASIL_D}
281
-
282
- NVM_LEVEL_MAP = {
283
- 'NORMAL': NVM,
284
- 'PROTECTED': NVM_P
285
- }
286
-
287
- CVC_ASIL_LEVEL_MAP = {
288
- 'QM': CVC_ASIL_QM,
289
- 'A': CVC_ASIL_A,
290
- 'B': CVC_ASIL_B,
291
- 'C': CVC_ASIL_C,
292
- 'D': CVC_ASIL_D
293
- }
294
-
295
- PREDECL_ASIL_LEVEL_MAP = {
296
- 'QM': PREDECL_ASIL_QM,
297
- 'A': PREDECL_ASIL_A,
298
- 'B': PREDECL_ASIL_B,
299
- 'C': PREDECL_ASIL_C,
300
- 'D': PREDECL_ASIL_D
301
- }
302
-
303
- ASIL_LEVEL_MAP = {
304
- 'QM': ASIL_QM,
305
- 'A': ASIL_A,
306
- 'B': ASIL_B,
307
- 'C': ASIL_C,
308
- 'D': ASIL_D
309
- }
1
+ # Copyright 2024 Volvo Car Corporation
2
+ # Licensed under Apache 2.0.
3
+
4
+ """Defines header file names for different sections generated c-code."""
5
+
6
+ CVC_CODE_START = 'CVC_CODE_START.h' # Header file name for CVC code start
7
+ CVC_CODE_END = 'CVC_CODE_END.h' # Header file name for CVC code end
8
+ CVC_CODE_ASIL_A_START = 'CVC_CODE_ASIL_A_START.h' # Header file name for CVC code start
9
+ CVC_CODE_ASIL_A_END = 'CVC_CODE_ASIL_A_END.h' # Header file name for CVC code end
10
+ CVC_CODE_ASIL_B_START = 'CVC_CODE_ASIL_B_START.h' # Header file name for CVC code start
11
+ CVC_CODE_ASIL_B_END = 'CVC_CODE_ASIL_B_END.h' # Header file name for CVC code end
12
+ CVC_CODE_ASIL_C_START = 'CVC_CODE_ASIL_C_START.h' # Header file name for CVC code start
13
+ CVC_CODE_ASIL_C_END = 'CVC_CODE_ASIL_C_END.h' # Header file name for CVC code end
14
+ CVC_CODE_ASIL_D_START = 'CVC_CODE_ASIL_D_START.h' # Header file name for CVC code start
15
+ CVC_CODE_ASIL_D_END = 'CVC_CODE_ASIL_D_END.h' # Header file name for CVC code end
16
+
17
+ CVC_DISP_START = 'CVC_DISP_START.h' # Header file name for CVC measurable variables start
18
+ CVC_DISP_END = 'CVC_DISP_END.h' # Header file name for CVC measurable variables end
19
+ CVC_DISP_ASIL_A_START = 'CVC_DISP_ASIL_A_START.h' # Header file name for CVC ASIL A measurable variables start
20
+ CVC_DISP_ASIL_A_END = 'CVC_DISP_ASIL_A_END.h' # Header file name for CVC ASIL A measurable variables end
21
+ CVC_DISP_ASIL_B_START = 'CVC_DISP_ASIL_B_START.h' # Header file name for CVC ASIL B measurable variables start
22
+ CVC_DISP_ASIL_B_END = 'CVC_DISP_ASIL_B_END.h' # Header file name for CVC ASIL B measurable variables end
23
+ CVC_DISP_ASIL_C_START = 'CVC_DISP_ASIL_C_START.h' # Header file name for CVC ASIL C measurable variables start
24
+ CVC_DISP_ASIL_C_END = 'CVC_DISP_ASIL_C_END.h' # Header file name for CVC ASIL C measurable variables end
25
+ CVC_DISP_ASIL_D_START = 'CVC_DISP_ASIL_D_START.h' # Header file name for CVC ASIL D measurable variables start
26
+ CVC_DISP_ASIL_D_END = 'CVC_DISP_ASIL_D_END.h' # Header file name for CVC ASIL D measurable variables end
27
+ CVC_DISP_SEC_START = 'CVC_DISP_SEC_START.h' # Header file name for CVC secure measurable variables start
28
+ CVC_DISP_SEC_END = 'CVC_DISP_SEC_END.h' # Header file name for CVC secure measurable variables end
29
+
30
+ CVC_CAL_START = 'CVC_CAL_START.h' # Header file name for CVC calibration data start
31
+ CVC_CAL_END = 'CVC_CAL_END.h' # Header file name for CVC calibration data end
32
+ CVC_CAL_ASIL_A_START = 'CVC_CAL_ASIL_A_START.h' # Header file name for CVC calibration data start
33
+ CVC_CAL_ASIL_A_END = 'CVC_CAL_ASIL_A_END.h' # Header file name for CVC calibration data end
34
+ CVC_CAL_ASIL_B_START = 'CVC_CAL_ASIL_B_START.h' # Header file name for CVC calibration data start
35
+ CVC_CAL_ASIL_B_END = 'CVC_CAL_ASIL_B_END.h' # Header file name for CVC calibration data end
36
+ CVC_CAL_ASIL_C_START = 'CVC_CAL_ASIL_C_START.h' # Header file name for CVC calibration data start
37
+ CVC_CAL_ASIL_C_END = 'CVC_CAL_ASIL_C_END.h' # Header file name for CVC calibration data end
38
+ CVC_CAL_ASIL_D_START = 'CVC_CAL_ASIL_D_START.h' # Header file name for CVC calibration data start
39
+ CVC_CAL_ASIL_D_END = 'CVC_CAL_ASIL_D_END.h' # Header file name for CVC calibration data end
40
+
41
+ CVC_CONST_START = 'CVC_CONST_START.h' # Header file name for CVC calibration data start
42
+ CVC_CONST_END = 'CVC_CONST_END.h' # Header file name for CVC calibration data end
43
+ CVC_CONST_ASIL_A_START = 'CVC_CONST_ASIL_A_START.h' # Header file name for CVC calibration data start
44
+ CVC_CONST_ASIL_A_END = 'CVC_CONST_ASIL_A_END.h' # Header file name for CVC calibration data end
45
+ CVC_CONST_ASIL_B_START = 'CVC_CONST_ASIL_B_START.h' # Header file name for CVC calibration data start
46
+ CVC_CONST_ASIL_B_END = 'CVC_CONST_ASIL_B_END.h' # Header file name for CVC calibration data end
47
+ CVC_CONST_ASIL_C_START = 'CVC_CONST_ASIL_C_START.h' # Header file name for CVC calibration data start
48
+ CVC_CONST_ASIL_C_END = 'CVC_CONST_ASIL_C_END.h' # Header file name for CVC calibration data end
49
+ CVC_CONST_ASIL_D_START = 'CVC_CONST_ASIL_D_START.h' # Header file name for CVC calibration data start
50
+ CVC_CONST_ASIL_D_END = 'CVC_CONST_ASIL_D_END.h' # Header file name for CVC calibration data end
51
+
52
+ CVC_NVM_START = 'CVC_NVM_START.h' # Header file name for CVC Non Volatile Memory start
53
+ CVC_NVM_END = 'CVC_NVM_END.h' # Header file name for CVC Non Volatile Memory end
54
+ CVC_NVM_P_START = 'CVC_NVM_P_START.h' # Header file name for persistent Non Volatile Memory start
55
+ CVC_NVM_P_END = 'CVC_NVM_P_END.h' # Header file name for persistent Non Volatile Memory end
56
+
57
+ PREDECL_CODE_START = 'PREDECL_CODE_START.h' # Header file name for CVC code start
58
+ PREDECL_CODE_END = 'PREDECL_CODE_END.h' # Header file name for CVC code end
59
+ PREDECL_CODE_ASIL_A_START = 'PREDECL_CODE_ASIL_A_START.h' # Header file name for CVC code start
60
+ PREDECL_CODE_ASIL_A_END = 'PREDECL_CODE_ASIL_A_END.h' # Header file name for CVC code end
61
+ PREDECL_CODE_ASIL_B_START = 'PREDECL_CODE_ASIL_B_START.h' # Header file name for CVC code start
62
+ PREDECL_CODE_ASIL_B_END = 'PREDECL_CODE_ASIL_B_END.h' # Header file name for CVC code end
63
+ PREDECL_CODE_ASIL_C_START = 'PREDECL_CODE_ASIL_C_START.h' # Header file name for CVC code start
64
+ PREDECL_CODE_ASIL_C_END = 'PREDECL_CODE_ASIL_C_END.h' # Header file name for CVC code end
65
+ PREDECL_CODE_ASIL_D_START = 'PREDECL_CODE_ASIL_D_START.h' # Header file name for CVC code start
66
+ PREDECL_CODE_ASIL_D_END = 'PREDECL_CODE_ASIL_D_END.h' # Header file name for CVC code end
67
+
68
+ PREDECL_DISP_START = 'PREDECL_DISP_START.h' # Header file name for CVC measurable variables start
69
+ PREDECL_DISP_END = 'PREDECL_DISP_END.h' # Header file name for CVC measurable variables end
70
+ PREDECL_DISP_ASIL_A_START = 'PREDECL_DISP_ASIL_A_START.h' # Header file name for CVC ASIL A measurable variables start
71
+ PREDECL_DISP_ASIL_A_END = 'PREDECL_DISP_ASIL_A_END.h' # Header file name for CVC ASIL A measurable variables end
72
+ PREDECL_DISP_ASIL_B_START = 'PREDECL_DISP_ASIL_B_START.h' # Header file name for CVC ASIL B measurable variables start
73
+ PREDECL_DISP_ASIL_B_END = 'PREDECL_DISP_ASIL_B_END.h' # Header file name for CVC ASIL B measurable variables end
74
+ PREDECL_DISP_ASIL_C_START = 'PREDECL_DISP_ASIL_C_START.h' # Header file name for CVC ASIL C measurable variables start
75
+ PREDECL_DISP_ASIL_C_END = 'PREDECL_DISP_ASIL_C_END.h' # Header file name for CVC ASIL C measurable variables end
76
+ PREDECL_DISP_ASIL_D_START = 'PREDECL_DISP_ASIL_D_START.h' # Header file name for CVC ASIL D measurable variables start
77
+ PREDECL_DISP_ASIL_D_END = 'PREDECL_DISP_ASIL_D_END.h' # Header file name for CVC ASIL D measurable variables end
78
+ PREDECL_DISP_SEC_START = 'PREDECL_DISP_SEC_START.h' # Header file name for CVC secure measurable variables start
79
+ PREDECL_DISP_SEC_END = 'PREDECL_DISP_SEC_END.h' # Header file name for CVC secure measurable variables end
80
+
81
+ PREDECL_CAL_START = 'PREDECL_CAL_START.h' # Header file name for CVC calibration data start
82
+ PREDECL_CAL_END = 'PREDECL_CAL_END.h' # Header file name for CVC calibration data end
83
+ PREDECL_CAL_ASIL_A_START = 'PREDECL_CAL_ASIL_A_START.h' # Header file name for CVC calibration data start
84
+ PREDECL_CAL_ASIL_A_END = 'PREDECL_CAL_ASIL_A_END.h' # Header file name for CVC calibration data end
85
+ PREDECL_CAL_ASIL_B_START = 'PREDECL_CAL_ASIL_B_START.h' # Header file name for CVC calibration data start
86
+ PREDECL_CAL_ASIL_B_END = 'PREDECL_CAL_ASIL_B_END.h' # Header file name for CVC calibration data end
87
+ PREDECL_CAL_ASIL_C_START = 'PREDECL_CAL_ASIL_C_START.h' # Header file name for CVC calibration data start
88
+ PREDECL_CAL_ASIL_C_END = 'PREDECL_CAL_ASIL_C_END.h' # Header file name for CVC calibration data end
89
+ PREDECL_CAL_ASIL_D_START = 'PREDECL_CAL_ASIL_D_START.h' # Header file name for CVC calibration data start
90
+ PREDECL_CAL_ASIL_D_END = 'PREDECL_CAL_ASIL_D_END.h' # Header file name for CVC calibration data end
91
+ PREDECL_CAL_EXT_START = 'PREDECL_CAL_EXT_START.h' # Header file name for CVC calibration data start
92
+ PREDECL_CAL_EXT_END = 'PREDECL_CAL_EXT_END.h' # Header file name for CVC calibration data end
93
+ PREDECL_CAL_MERG_START = 'PREDECL_CAL_MERG_START.h' # Header file name for CVC calibration data start
94
+ PREDECL_CAL_MERG_END = 'PREDECL_CAL_MERG_END.h' # Header file name for CVC calibration data end
95
+
96
+ PREDECL_CONST_START = 'PREDECL_CONST_START.h' # Header file name for CVC calibration data start
97
+ PREDECL_CONST_END = 'PREDECL_CONST_END.h' # Header file name for CVC calibration data end
98
+ PREDECL_CONST_ASIL_A_START = 'PREDECL_CONST_ASIL_A_START.h' # Header file name for CVC calibration data start
99
+ PREDECL_CONST_ASIL_A_END = 'PREDECL_CONST_ASIL_A_END.h' # Header file name for CVC calibration data end
100
+ PREDECL_CONST_ASIL_B_START = 'PREDECL_CONST_ASIL_B_START.h' # Header file name for CVC calibration data start
101
+ PREDECL_CONST_ASIL_B_END = 'PREDECL_CONST_ASIL_B_END.h' # Header file name for CVC calibration data end
102
+ PREDECL_CONST_ASIL_C_START = 'PREDECL_CONST_ASIL_C_START.h' # Header file name for CVC calibration data start
103
+ PREDECL_CONST_ASIL_C_END = 'PREDECL_CONST_ASIL_C_END.h' # Header file name for CVC calibration data end
104
+ PREDECL_CONST_ASIL_D_START = 'PREDECL_CONST_ASIL_D_START.h' # Header file name for CVC calibration data start
105
+ PREDECL_CONST_ASIL_D_END = 'PREDECL_CONST_ASIL_D_END.h' # Header file name for CVC calibration data end
106
+ PREDECL_CONST_EXT_START = 'PREDECL_CONST_EXT_START.h' # Header file name for CVC calibration data start
107
+ PREDECL_CONST_EXT_END = 'PREDECL_CONST_EXT_END.h' # Header file name for CVC calibration data end
108
+ PREDECL_CONST_MERG_START = 'PREDECL_CONST_MERG_START.h' # Header file name for CVC calibration data start
109
+ PREDECL_CONST_MERG_END = 'PREDECL_CONST_MERG_END.h' # Header file name for CVC calibration data end
110
+
111
+ PREDECL_NVM_START = 'PREDECL_NVM_START.h' # Header file name for CVC Non Volatile Memory start
112
+ PREDECL_NVM_END = 'PREDECL_NVM_END.h' # Header file name for CVC Non Volatile Memory end
113
+ PREDECL_NVM_P_START = 'PREDECL_NVM_P_START.h' # Header file name for persistent Non Volatile Memory start
114
+ PREDECL_NVM_P_END = 'PREDECL_NVM_P_END.h' # Header file name for persistent Non Volatile Memory end
115
+
116
+ PREDECL_START = 'PREDECL_START.h'
117
+ PREDECL_END = 'PREDECL_END.h'
118
+
119
+ CVC_CODE_QM = {'START': CVC_CODE_START, 'END': CVC_CODE_END}
120
+ CVC_CODE_A = {'START': CVC_CODE_ASIL_A_START, 'END': CVC_CODE_ASIL_A_END}
121
+ CVC_CODE_B = {'START': CVC_CODE_ASIL_B_START, 'END': CVC_CODE_ASIL_B_END}
122
+ CVC_CODE_C = {'START': CVC_CODE_ASIL_C_START, 'END': CVC_CODE_ASIL_C_END}
123
+ CVC_CODE_D = {'START': CVC_CODE_ASIL_D_START, 'END': CVC_CODE_ASIL_D_END}
124
+
125
+ CVC_DISP_QM = {'START': CVC_DISP_START, 'END': CVC_DISP_END}
126
+ CVC_DISP_A = {'START': CVC_DISP_ASIL_A_START, 'END': CVC_DISP_ASIL_A_END}
127
+ CVC_DISP_B = {'START': CVC_DISP_ASIL_B_START, 'END': CVC_DISP_ASIL_B_END}
128
+ CVC_DISP_C = {'START': CVC_DISP_ASIL_C_START, 'END': CVC_DISP_ASIL_C_END}
129
+ CVC_DISP_D = {'START': CVC_DISP_ASIL_D_START, 'END': CVC_DISP_ASIL_D_END}
130
+ CVC_DISP_SECURE = {'START': CVC_DISP_SEC_START, 'END': CVC_DISP_SEC_END}
131
+
132
+ CVC_CAL_QM = {'START': CVC_CAL_START, 'END': CVC_CAL_END}
133
+ CVC_CAL_A = {'START': CVC_CAL_ASIL_A_START, 'END': CVC_CAL_ASIL_A_END}
134
+ CVC_CAL_B = {'START': CVC_CAL_ASIL_B_START, 'END': CVC_CAL_ASIL_B_END}
135
+ CVC_CAL_C = {'START': CVC_CAL_ASIL_C_START, 'END': CVC_CAL_ASIL_C_END}
136
+ CVC_CAL_D = {'START': CVC_CAL_ASIL_D_START, 'END': CVC_CAL_ASIL_D_END}
137
+
138
+ CVC_CONST_QM = {'START': CVC_CONST_START, 'END': CVC_CONST_END}
139
+ CVC_CONST_A = {'START': CVC_CONST_ASIL_A_START, 'END': CVC_CONST_ASIL_A_END}
140
+ CVC_CONST_B = {'START': CVC_CONST_ASIL_B_START, 'END': CVC_CONST_ASIL_B_END}
141
+ CVC_CONST_C = {'START': CVC_CONST_ASIL_C_START, 'END': CVC_CONST_ASIL_C_END}
142
+ CVC_CONST_D = {'START': CVC_CONST_ASIL_D_START, 'END': CVC_CONST_ASIL_D_END}
143
+
144
+ CVC_NVM = {'START': CVC_NVM_START, 'END': CVC_NVM_END}
145
+ CVC_NVM_P = {'START': CVC_NVM_P_START, 'END': CVC_NVM_P_END}
146
+
147
+ PREDECL = {'START': PREDECL_START, 'END': PREDECL_END}
148
+
149
+ PREDECL_CODE_QM = {'START': PREDECL_CODE_START, 'END': PREDECL_CODE_END}
150
+ PREDECL_CODE_A = {'START': PREDECL_CODE_ASIL_A_START, 'END': PREDECL_CODE_ASIL_A_END}
151
+ PREDECL_CODE_B = {'START': PREDECL_CODE_ASIL_B_START, 'END': PREDECL_CODE_ASIL_B_END}
152
+ PREDECL_CODE_C = {'START': PREDECL_CODE_ASIL_C_START, 'END': PREDECL_CODE_ASIL_C_END}
153
+ PREDECL_CODE_D = {'START': PREDECL_CODE_ASIL_D_START, 'END': PREDECL_CODE_ASIL_D_END}
154
+
155
+ PREDECL_DISP_QM = {'START': PREDECL_DISP_START, 'END': PREDECL_DISP_END}
156
+ PREDECL_DISP_A = {'START': PREDECL_DISP_ASIL_A_START, 'END': PREDECL_DISP_ASIL_A_END}
157
+ PREDECL_DISP_B = {'START': PREDECL_DISP_ASIL_B_START, 'END': PREDECL_DISP_ASIL_B_END}
158
+ PREDECL_DISP_C = {'START': PREDECL_DISP_ASIL_C_START, 'END': PREDECL_DISP_ASIL_C_END}
159
+ PREDECL_DISP_D = {'START': PREDECL_DISP_ASIL_D_START, 'END': PREDECL_DISP_ASIL_D_END}
160
+ PREDECL_DISP_SECURE = {'START': PREDECL_DISP_SEC_START, 'END': PREDECL_DISP_SEC_END}
161
+
162
+ PREDECL_CAL_QM = {'START': PREDECL_CAL_START, 'END': PREDECL_CAL_END}
163
+ PREDECL_CAL_A = {'START': PREDECL_CAL_ASIL_A_START, 'END': PREDECL_CAL_ASIL_A_END}
164
+ PREDECL_CAL_B = {'START': PREDECL_CAL_ASIL_B_START, 'END': PREDECL_CAL_ASIL_B_END}
165
+ PREDECL_CAL_C = {'START': PREDECL_CAL_ASIL_C_START, 'END': PREDECL_CAL_ASIL_C_END}
166
+ PREDECL_CAL_D = {'START': PREDECL_CAL_ASIL_D_START, 'END': PREDECL_CAL_ASIL_D_END}
167
+ PREDECL_CAL_EXT = {'START': PREDECL_CAL_EXT_START, 'END': PREDECL_CAL_EXT_END}
168
+ PREDECL_CAL_MERG = {'START': PREDECL_CAL_MERG_START, 'END': PREDECL_CAL_MERG_END}
169
+
170
+ PREDECL_CONST_QM = {'START': PREDECL_CONST_START, 'END': PREDECL_CONST_END}
171
+ PREDECL_CONST_A = {'START': PREDECL_CONST_ASIL_A_START, 'END': PREDECL_CONST_ASIL_A_END}
172
+ PREDECL_CONST_B = {'START': PREDECL_CONST_ASIL_B_START, 'END': PREDECL_CONST_ASIL_B_END}
173
+ PREDECL_CONST_C = {'START': PREDECL_CONST_ASIL_C_START, 'END': PREDECL_CONST_ASIL_C_END}
174
+ PREDECL_CONST_D = {'START': PREDECL_CONST_ASIL_D_START, 'END': PREDECL_CONST_ASIL_D_END}
175
+ PREDECL_CONST_EXT = {'START': PREDECL_CONST_EXT_START, 'END': PREDECL_CONST_EXT_END}
176
+ PREDECL_CONST_MERG = {'START': PREDECL_CONST_MERG_START, 'END': PREDECL_CONST_MERG_END}
177
+
178
+ PREDECL_NVM = {'START': PREDECL_NVM_START, 'END': PREDECL_NVM_END}
179
+ PREDECL_NVM_P = {'START': PREDECL_NVM_P_START, 'END': PREDECL_NVM_P_END}
180
+
181
+ CVC_SECURE = {
182
+ 'CODE': CVC_CODE_QM,
183
+ 'DISP': CVC_DISP_SECURE,
184
+ 'CAL': CVC_CAL_QM,
185
+ 'CONST': CVC_CONST_QM
186
+ }
187
+
188
+ CVC_ASIL_QM = {
189
+ 'CODE': CVC_CODE_QM,
190
+ 'DISP': CVC_DISP_QM,
191
+ 'CAL': CVC_CAL_QM,
192
+ 'CONST': CVC_CONST_QM
193
+ }
194
+
195
+ CVC_ASIL_A = {
196
+ 'CODE': CVC_CODE_A,
197
+ 'DISP': CVC_DISP_A,
198
+ 'CAL': CVC_CAL_A,
199
+ 'CONST': CVC_CONST_A
200
+ }
201
+
202
+ CVC_ASIL_B = {
203
+ 'CODE': CVC_CODE_B,
204
+ 'DISP': CVC_DISP_B,
205
+ 'CAL': CVC_CAL_B,
206
+ 'CONST': CVC_CONST_B
207
+ }
208
+
209
+ CVC_ASIL_C = {
210
+ 'CODE': CVC_CODE_C,
211
+ 'DISP': CVC_DISP_C,
212
+ 'CAL': CVC_CAL_C,
213
+ 'CONST': CVC_CONST_C
214
+ }
215
+
216
+ CVC_ASIL_D = {
217
+ 'CODE': CVC_CODE_D,
218
+ 'DISP': CVC_DISP_D,
219
+ 'CAL': CVC_CAL_D,
220
+ 'CONST': CVC_CONST_D
221
+ }
222
+
223
+ PREDECL_SECURE = {
224
+ 'CODE': PREDECL_CODE_QM,
225
+ 'DISP': PREDECL_DISP_SECURE,
226
+ 'CAL': PREDECL_CAL_QM,
227
+ 'CONST': PREDECL_CONST_QM
228
+ }
229
+
230
+ PREDECL_ASIL_QM = {
231
+ 'CODE': PREDECL_CODE_QM,
232
+ 'DISP': PREDECL_DISP_QM,
233
+ 'CAL': PREDECL_CAL_QM,
234
+ 'CONST': PREDECL_CONST_QM
235
+ }
236
+
237
+ PREDECL_ASIL_A = {
238
+ 'CODE': PREDECL_CODE_A,
239
+ 'DISP': PREDECL_DISP_A,
240
+ 'CAL': PREDECL_CAL_A,
241
+ 'CONST': PREDECL_CONST_A
242
+ }
243
+
244
+ PREDECL_ASIL_B = {
245
+ 'CODE': PREDECL_CODE_B,
246
+ 'DISP': PREDECL_DISP_B,
247
+ 'CAL': PREDECL_CAL_B,
248
+ 'CONST': PREDECL_CONST_B
249
+ }
250
+
251
+ PREDECL_ASIL_C = {
252
+ 'CODE': PREDECL_CODE_C,
253
+ 'DISP': PREDECL_DISP_C,
254
+ 'CAL': PREDECL_CAL_C,
255
+ 'CONST': PREDECL_CONST_C
256
+ }
257
+
258
+ PREDECL_ASIL_D = {
259
+ 'CODE': PREDECL_CODE_D,
260
+ 'DISP': PREDECL_DISP_D,
261
+ 'CAL': PREDECL_CAL_D,
262
+ 'CONST': PREDECL_CONST_D
263
+ }
264
+
265
+ PREDECL_EXTRA = {
266
+ 'NORM': PREDECL,
267
+ 'CAL_EXT': PREDECL_CAL_EXT,
268
+ 'CONST_EXT': PREDECL_CONST_EXT,
269
+ 'CAL_MERG': PREDECL_CAL_MERG,
270
+ 'CONST_MERG': PREDECL_CONST_MERG
271
+ }
272
+
273
+ NVM = {'CVC': CVC_NVM, 'PREDECL': PREDECL_NVM}
274
+ NVM_P = {'CVC': CVC_NVM_P, 'PREDECL': PREDECL_NVM_P}
275
+ SECURE = {'CVC': CVC_SECURE, 'PREDECL': PREDECL_SECURE}
276
+ ASIL_QM = {'CVC': CVC_ASIL_QM, 'PREDECL': PREDECL_ASIL_QM}
277
+ ASIL_A = {'CVC': CVC_ASIL_A, 'PREDECL': PREDECL_ASIL_A}
278
+ ASIL_B = {'CVC': CVC_ASIL_B, 'PREDECL': PREDECL_ASIL_B}
279
+ ASIL_C = {'CVC': CVC_ASIL_C, 'PREDECL': PREDECL_ASIL_C}
280
+ ASIL_D = {'CVC': CVC_ASIL_D, 'PREDECL': PREDECL_ASIL_D}
281
+
282
+ NVM_LEVEL_MAP = {
283
+ 'NORMAL': NVM,
284
+ 'PROTECTED': NVM_P
285
+ }
286
+
287
+ CVC_ASIL_LEVEL_MAP = {
288
+ 'QM': CVC_ASIL_QM,
289
+ 'A': CVC_ASIL_A,
290
+ 'B': CVC_ASIL_B,
291
+ 'C': CVC_ASIL_C,
292
+ 'D': CVC_ASIL_D
293
+ }
294
+
295
+ PREDECL_ASIL_LEVEL_MAP = {
296
+ 'QM': PREDECL_ASIL_QM,
297
+ 'A': PREDECL_ASIL_A,
298
+ 'B': PREDECL_ASIL_B,
299
+ 'C': PREDECL_ASIL_C,
300
+ 'D': PREDECL_ASIL_D
301
+ }
302
+
303
+ ASIL_LEVEL_MAP = {
304
+ 'QM': ASIL_QM,
305
+ 'A': ASIL_A,
306
+ 'B': ASIL_B,
307
+ 'C': ASIL_C,
308
+ 'D': ASIL_D
309
+ }