MDD: A Unified Model-Driven Design Framework for Embedded Control Software

Authors:

Abstract
Model-driven methods are widely used in embedded control software development. Current design tools such as Ptolemy-II and Simulink have strong modeling capability but their simulation and code generation functionalities are challenged by the increasing complexity of control requirements. For simulation, emulating the triggering of the actor leads to additional time overhead and speed degradation. For code generation, generating redundant content degrades the code quality. Besides, current tools do not have a unified interface, which makes it difficult to cooperation. In this paper, we propose a unified model-driven design framework to facilitate embedded control software development. can support the unification of models built by different modeling tools for high-efficiency simulation and high-quality code generation. And the framework supports the expansion of more modeling tools, and also supports the expansion of more uses, such as unified testing and verification. First, it offers a model intermediate representation (MIR) and several corresponding parsers, which facilitate a unified representation and cooperation for different design tools. Then, based on data flow schedule analysis of the original MIR, intermediate code representation will be generated for optimized code synthesis. Finally, a variety of code translators will synthesize the intermediate code representation into the code of actual use such as code for simulation and code for deployment. For evaluation, we enhance two widely used design tools in industry, Ptolemy-II and Simulink, and apply them on the implementation of several benchmark models and a real-world self-driving control software of our industrial collaborator. Using can help reduce their simulation time by and , the generated code by and in the number of lines, and and in code execution time, respectively.
Funding Information
  • NSFC Program (62022046, U1911401)
  • National Key Research and Development Project (2019YFB1706203)
  • Huawei-Tsinghua Trustworthy Research Project (20192000794)

This publication has 34 references indexed in Scilit: