Code Synthesis for Dataflow-Based Embedded Software Design
- 29 January 2021
- journal article
- research article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems
- Vol. 41 (1) , 49-61
Abstract
Model-driven methodology has been widely adopted in embedded software design, and Dataflow is a widely used computation model, with strong modeling and simulation ability supported in tools such as Ptolemy. However, its code synthesis support is quite limited, which restricts its applications in real industrial practice. In this article, we focus on the automatic code synthesis of Dataflow, and implement DFSynth , a code generator that could support most of the widely used modeling features, such as the expression type and Boolean switch, more efficiently. First, we disassemble the Dataflow model into actors embedded in if-else or switch-case statements based on the schedule analysis, which bridges the semantic gap between the code and the original Dataflow model. Then, we design well-designed templates for each actor, and synthesize well-structured executable C and Java codes with sequential code assembly. Compared to the existing C and Java code generators of Dataflow model in Ptolemy-II, and the C code generator in Simulink, the lines of code synthesized by DFSynth are decreased by an average of 99.7%, 81.4%, and 61.9%, and the execution time of the synthesized code by DFSynth is also decreased by an average of 76.2%, 56.8%, and 22.7%, respectively.Keywords
Funding Information
- NSFC Program (62022046, U1911401, 61802223)
- National Key Research and Development Project (2019YFB1706200)
- Huawei-Tsinghua Trustworthy Research Project (20192000794)
This publication has 26 references indexed in Scilit:
- Modelling of a dynamic cooperation between a PV array and DC boost converter2015
- Design of Mixed Synchronous/Asynchronous Systems with Multiple ClocksIEEE Transactions on Parallel and Distributed Systems, 2014
- Compositionality in synchronous data flowACM Transactions on Embedded Computing Systems, 2013
- A Code Generation Framework for Actor-Oriented Models with Partial EvaluationLecture Notes in Computer Science, 2007
- SCADE: Synchronous Design and Validation of Embedded Control Software2007
- A behavioral type system and its application in Ptolemy IIFormal Aspects of Computing, 2004
- Modeling of sensor nets in Ptolemy II2004
- POLYCHRONY for System DesignJournal of Circuits, Systems and Computers, 2003
- Taming heterogeneity - the Ptolemy approachProceedings of the IEEE, 2003
- Ptolemy: A Framework for Simulating and Prototyping Heterogeneous Systems2002