基于SDF的嵌入式软件Simulink模型代码生成
Automatic SDF-based Code Generation from Simulink Models for Embedded Software Development
摘要:
Matlab/Simulink是一种广泛使用的基于模型的嵌入式系统设计工具。支持层次结构,特定领域的构建块,功能仿真和自动代码生成,使其非常适合控制和信号处理系统的设计。在这项工作中,我们提出了一个自动翻译方法的Simulink模型的一个子集,以同步的可移植图(SDFGs),包括SDF兼容的嵌入式代码的自动代码生成。由于Simulink面向参与者的建模性质,将Simulink模型转换为SDFG非常合适,允许应用SDFG领域的多种优化技术。由于其定义良好的语义,SDFG可以在编译阶段进行分析,以获得无死锁和内存有效的调度。此外,存在几种实时分析方法,其允许SDFG到片上多处理器(MPSoC)的吞吐量最优映射,同时保证上限延迟。我们的翻译的正确性是合理的集成SDF生成的代码作为一个软件在环(SIL),并将其结果与参考Simulink模型的模型在环(MIL)仿真的结果进行比较。翻译证明了两个案例研究的帮助下:一个传输控制器单元(TCU)和自动气候控制。
英文摘要:
Matlab/Simulink is a wide-spread tool for model-based design of embedded systems. Supporting hierarchy, domain specific building blocks, functional simulation and automatic code-generation, makes it well-suited for the design of control and signal processing systems. In this work, we propose an automated translation methodology for a subset of Simulink models to Synchronous dataflow Graphs (SDFGs) including the automatic code-generation of SDF-compatible embedded code. A translation of Simulink models to SDFGs, is very suitable due to Simulink actor-oriented modeling nature, allowing the application of several optimization techniques from the SDFG domain. Because of their well-defined semantics, SDFGs can be analyzed at compiling phase to obtain deadlock-free and memory-efficient schedules. In addition, several real-time analysis methods exist which allow throughput-optimal mappings of SDFGs to Multiprocessor on Chip (MPSoC) while guaranteeing upper-bounded latencies. The correctness of our translation is justified by integrating the SDF generated code as a software-in-the-loop (SIL) and comparing its results with the results of the model-in-the-loop (MIL) simulation of reference Simulink models. The translation is demonstrated with the help of two case studies: a Transmission Controller Unit (TCU) and an Automatic Climate Control.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。