Real-time Workshop Mechanism

Author
WangBo
Advisor
LiYi
School
University of Electronic Science and Technology
Major
Computer System Architecture
Classification
TP311.52 Software Development
Degree
Master's thesis
Year
2011
Downloads
76
Citations
0

Request the full text

Abstract

With the development of software engineering, model-based software development more and more attention has become the trend of the development of the field of software engineering. Since the model has a convenient, easy to understand, easy to maintain and is responsive to the design requirements, improve software reuse of model-based technology, enhance the integration of the old and the new software system speed. Need to be synchronized between the model-based development process model and achieve a core technology that is already designed model to generate the source code for the target platform, code generation technology to become the model-based software development can not, therefore, in the framework of model-based techniques integral part. Code generation technology is part of the model transformation technology, identify the source model and the basic model of the target language platform as well as the mode of mapping rules final code generation, and then through the organization of these dynamic and static mapping rules. This paper attempts to explore a way to deal with the dynamic data flow code generation mechanism, input data using Simulink / Stateflow models stored file, the file is there a model of the GUI information. For most of the code generation method for model development tools are targeted to UML static structure model for the study of code generation mechanism, this paper focuses on the for the Real-time Workshop of the the MathWorks company's code generation mechanism of dynamic data flow model Embedded tools of analysis and research, and eventually propose a scheduling mechanism able to handle dynamic data flow model code generation. Firstly, through the theoretical analysis of model-based and model transformation technology, and combined with the actual product implementations of the Real-time Workshop Embedded main theories of code generated. Secondly, through analysis of Simulink / Stateflow modeling mechanism and model storage file structure to find out the problems faced by the GUI features and code generation for Simulink / Stateflow models and proposed solutions for each problem, determine the software system needs. Then, the paper identified the basic model of the basic mode of the source model and the target C language code, as well as between the mode corresponding to the conversion rules, complete the graphic information extraction algorithms and data organization model and the target language, C language code generation scheduling mechanism design. Final thesis completed application code generator prototype program, and through the application of black-box testing of the prototype program to verify the feasibility of the code generation mechanism, improved direction. Meet the dynamic data flow model and the code generation requirements of the static structure model based on the code generated by the debugging of the the prototype application program code generation mechanism to achieve this article, and design as much as possible to reduce the dependence on the input file, making the design easier to modify the input file which can be used as code generation part of the further development of model-driven design platform. The final completion of the code generation process can extract useful information from the documents describe graphical information to build the object model, complete code generation, provide support to further improve the code generation theory and tools.

Table of contents

Summary the 4-6 ABSTRACT 6-12 chapter Introduction 12-15 1.1 research background and significance 12-13 the 1.2 research goal 13-14 1.2.1 the theoretical part 13 1.2.2 part 13-14 < br /> 1.3 chapters arrangements 14-15 Chapter RTW theory 15-23 2.1 model-based software development 15 <br / > 2.2 model transformation characteristics 15-16 2.3 model to code conversion features 16-17 2.4 RTW Embedded Coder code generation method 17-22 2.4.1 RTW Embedded Coder code generation process 17-19 2.4.2 intermediate format file 19-20 2.4.3 target file 20-21 2.4.4 generates C code optimization 21-22 2.5 Chapter Summary 22-23 Chapter Simulink / Stateflow source model analysis 23-39 3.1 the Simulink source model analysis 23-29 3.1.1 the basic components of the model 23-24 3.1.2 module classified 24-25 the 3.1.3 model organization structure 25-27 3.1.4 signal after the order of each module 27-28 3.1.5 historical signal the 28-29 3.2 the Stateflow source model analysis 29-32 3.2.1 the basic components of the model 29-30 < br /> 3.2.2 state classification 30 3.2.3 model structure and semantics 30-31 3.2.4 code generation timing 31-32 < br /> 3.3 model store files 32-38 3.3.1 Basic structure 32-34 3.3.2 key information 34-37 3.3.3 extract key information 37-38 3.3.3.1 Lex syntax the 37-38 3.4 design demand 38 3.5 Chapter Summary 38-39 Chapter overall system design 39-53 4.1 mode conversion rules 39-43 the 4.1.1 source model pattern nbsp 39 4.1.2 Target model mode; to 4.1.3 conversion rules 39-40 40-43 the the 4.1.3.1 source model conversion rules 40-41 4.1.3.2 target model transformation rules 41-43 4.2 software system structure 43-52 4.2.1 MDL file parser 43-46 4.2.1.1 analytical tools 43 4.2.1.2 parsing algorithm 43-45 4.2.1.3 parser and data model with the the 45-46 4.2.2 Simulink part of the code generation solutions 46-50 4.2.2.1 Resource module object organization 46-47 < br /> 4.2.2.2 core structure 47-48 4.2.2.3 scheduling algorithm 48-50 4.2.3 Stateflow part of the code generation solutions 50 -52 4.2.3.1 sub-state object organization 50-51 4.2.3.2 processing sub-state algorithm 51-52 4.3 This chapter Summary 52-53 Chapter detailed system design and realization 53-70 5.1 the file parser Simulink part subroutine 53-55 5.1 .1 scan status subroutine 53-54 5.1.2 Total key 54-55 the 5.1.3 specific type of resource modules 55 5.2 Code Generator Simulink part of the subroutine the 55-59 the 5.2.1 core structure first initialize 55-56 5.2.2 subsystem object 56 5.2.3 dealing with the first pass object 56-57 the 5.2.4 core structure of the second initialization 57 5.2.5 deal with the second scan objects the 57-58 5.2.6 Historical Signal Processing 58-59 5.3 file parser the Stateflow part of the subroutine 59-61 5.3.1 Scan Status subroutine the 59-60 5.3.2 the Stateflow scan state exit 60-61 5.4 code generator the Stateflow part of a subroutine 61-69 5.4.1 sub-state code generation driver function 61-62 5.4.2 top-level sub-status code generation 62 5.4.3 sub-state code generation function 62-63 5.4.4 sub-state of the various sub-mode 63-69 the 5.4.4.1 atomicPattern sub mode nbsp the 63-64 5.4.4.2 enter_atomicPattern sub mode; 64 the 5.4.4.3 exit_atomicPattern sub-mode 64-65 5.4.4.4 internalPattern 'sub-mode 65 5.4.4.5 EnterInternalPattern sub-mode the 65-66 5.4.4.6 ExitInternalPattern of sub-patterns 66 the 5.4.4.7 duringPattern sub-modes 66-68 5.4.4.8 JunctionPattern, sub-mode 68-69 the 5.4.4.9 transitionPattern sub-mode 69 5.5 Chapter Summary 69-70 analysis of the experimental results Chapter the 70-79 6.1 Simulink model The part the 70-73 the 6.2 Stateflow model The part 73-77 <br / > 6.3 to generate code test 77-78 6.4 Chapter Summary 78-79 Chapter VII Summary and Outlook 79-80 Acknowledgements 80-81 Reference 81-84

Related dissertations

  1. Research on Automatic Code Generation Technology of Automatic Mechanical Transmission Based on Real-Time Workshop
    ZhangXiaoHui ·Shandong University ·2012 ·Master's thesis
  2. Based on Simulink and Stateflow modeling of embedded software development platform
  3. Research and Implementation of Rail Transit AG Based on Virtools
    WenLu ·Chang'an University ·2013 ·Master's thesis
  4. Research on Modeling, Simulation and Realization of Complex Digital System
    BaiXue ·South China University of Technology ·2013 ·Master's thesis
  5. Develop of Data Acquisition System Based on xPC Target
    LiDingXia ·Jilin University ·2013 ·Master's thesis
  6. Research of the Test Method of Vehicle On-board Controller in Train Control System Based on dSPACE
    FanYing ·Beijing Jiaotong University ·2012 ·Master's thesis
  7. Response Spectrum Research and Parameters Analysis on Sliding Base Isolation System
    LuoXianYan ·Guangxi University ·2008 ·Master's thesis
  8. Design and Simulation of Edge Position Control System for Coiler
    ZuoXiaoWei ·Taiyuan University of Technology ·2006 ·Master's thesis
  9. Development of Vehicle-Body Control Modules Based on Simulink/Stateflow
    HuYiTing ·Shanghai Jiaotong University ·2011 ·Master's thesis
  10. Research&Realization on Key Technologies of Semi-physical Simulation Platform Based on RTAI
  11. Motion Object Detection Based on Dm642
    SunLei ·Tianjin University of Technology ·2013 ·Master's thesis
  12. Study on the Model-based Development of Heterogeneous Multi-core Embedded System
    DiWenZheng ·Shanghai University ·2013 ·Doctoral dissertation
  13. Simulation Research on Modulation Technology for THz Communication System
  14. Study of Lead-acid Battery Bank Applied in Long Pulse Magnet Power Supply System
  15. The Research of Improved Dual-Windowed Interpolation Harmonic Detection and Hybrid Active Power Filter Simulation
    ZhouHuiLong ·Guangxi University ·2012 ·Master's thesis
  16. The Research of Photovoltaic Grid-connected System Islanding
    ZhangCheng ·Nanchang University ·2013 ·Master's thesis
  17. The Control Strategy of Wind Power System Based on Direct-drive Type of PMSG
    WangHongHai ·Yanshan University ·2013 ·Master's thesis
  18. Research of Hybrid Control for Three-phase Inverter
    LvFei ·Harbin Institute of Technology ·2012 ·Master's thesis
  19. Research on the Control Strategy of the Single-phase Photovoltaic Grid-connected Inverter with LCL Filter
    ZhangXiaoE ·Ningxia University ·2014 ·Master's thesis
  20. Study for Cascade Brushless Doubly-fed Machine and Its Speed Control System Application
    ZhaoBo ·Hebei University of Technology ·2013 ·Master's thesis