Template-based AADL automatic code generation
Kai HU , Zhangbo DUAN , Jiye WANG , Lingchao GAO , Lihong SHANG
Front. Comput. Sci. ›› 2019, Vol. 13 ›› Issue (4) : 698 -714.
Template-based AADL automatic code generation
Embedded real-time systems employ a variety of operating system platforms. Consequently, for automatic code generation, considerable redevelopment is needed when the platform changes. This results in major challenges with respect to the automatic code generation process of the architecture analysis and design language (AADL). In this paper, we propose a method of template-based automatic code generation to address this issue. Templates are used as carriers of automatic code generation rules from AADL to the object platform. These templates can be easily modified for different platforms. Automatic code generation for different platforms can be accomplished by formulating the corresponding generation rules and transformation templates. We design a set of code generation templates from AADL to the object platform and develop an automatic code generation tool. Finally, we take a typical data processing unit (DPU) system as a case study to test the tool. It is demonstrated that the autogenerated codes can be compiled and executed successfully on the object platform.
real-time system / template / formal methods / AADL / automatic code generation
| [1] |
|
| [2] |
|
| [3] |
|
| [4] |
SAE AS5506. Architecture Analysis and Design Language (AADL). SAE International, 2005 |
| [5] |
SAE AS5506A. Architecture Analysis and Design Language (AADL) Standard, Version 2. SAE International, 2008 |
| [6] |
|
| [7] |
SAE AS5506 Annex: Behavior Specification v2.0. 2011 |
| [8] |
|
| [9] |
|
| [10] |
|
| [11] |
|
| [12] |
|
| [13] |
|
| [14] |
|
| [15] |
|
| [16] |
|
| [17] |
|
| [18] |
|
| [19] |
|
| [20] |
|
| [21] |
|
| [22] |
|
| [23] |
|
| [24] |
|
Higher Education Press and Springer-Verlag GmbH Germany, part of Springer Nature
Supplementary files
/
| 〈 |
|
〉 |