The Design and Implement of 16/32-bit MCU Software Simulator
- Author
- XuHuaiLiang
- Advisor
- ZhuQiaoMing
- School
- Suzhou University
- Major
- Applied Computer Technology
- Classification
- TP337 Emulator
- Degree
- Master's thesis
- Year
- 2009
- Downloads
- 118
- Citations
- 0
Abstract
With the prevalence of PC and ubiquitous computing,embedded system application becomes one of the hottest areas of computer industry.Species of 16/32-bit MCU is becoming the key and hot spot,for the advantage of powerful,fast and low energy consumption.In the software development of embedded application,the traditional development mode reduces the efficiency of development.Hamper from hardware to software has serious impact on software debugging and testing,delays the development progress,and makes the quality of software hard to guarantee.Simulation development is an effective way to break the mass.With simulation technology simulating the running of hardware system,software development and system testing can be implemented on a virtual platform,which avoids mutual wait between hardware development and software development,improves the development efficiency and lowers the costs and risk.Through the analysis of 16/32-bit MCU simulation technology,a general MCU simulator with good expansibility is designed and implemented.Using the idea of object-oriented and referring to the MVC patten,the MCU simulator is divided into two tiers:user interface and instruction simulation.The interface is implemented by component technology,which makes the simulator eazily expanded.The instruction simulation utilizes virtual instruction technology,which makes the simulator a general one.Firstly,through the analysis of MCU,component technology is utilized to build MCU simulator.The MCU software simulator model based on component is designed and MCU’s sub-components are implemented.Dynamic integration is utilized to form a complete MCU simulator with isolated components,which makes MCU software simulator can be dynamic configured and eazily expanded.Secondly,to simulate different instructions,virtual instruction technology is utilized to design of instruction simulation, and the construction,translation and optimization is studied.The instruction function is designed and the translated virtual instruction is opotimized.At last,a generic and hierarchy-independent instruction simulator is implemented.Thirdly,to facilitate the software development,simulation debugging is implemented and several debug modes are provided and the timing analyse.Finally the test of MCU software simulator is done,the result shows that the MCU software simulator model and the design of virtual instruction both can satisfy the requirement of MCU software simulator.
Table of contents
Abstract 3-4
Abstract 4-9
first chapter 9-16
1.1 embedded systems with the MCU Overview 9
1.2 Background 9-10
1.3 subject source 10
1.4 Research 10-13
1.4.1 embedded software development methods 10-12
1.4.2 Research 12-13
1.5 emulator of the MCU software component-based model 13-14
1.6 content and structure of the paper 14-16
1.6.1 research 14
1.6.2 The paper is organized 14-16
Chapter II MCU software simulation technology 16-23
2.1 Simulation Technology Overview 16-18
2.1.1 the MCU software simulation technology 16-17
2.1.2 Simulation classification 17-18
2.2 component technology 18-20
2.2.1 Component Model 19
2.2.2 component dynamic combination of technology 19-20
2.2.3 component-based development of the status quo 20
2.3 virtual instruction technology 20-21
2.4 MVC design pattern 21-22
2.5 Summary 22-23
Chapter III of the design of component-based MCU emulator 23-31
3.1 common MCU structure analysis 23-24
3.1.1 common MCU structure 23-24
3.1.2 the MCU simulation 24
3.2 the MCU software emulator 24-26
3.2.1 the MCU software simulation model of the design 24-25
3.2.2 SSM model workflow 25-26
3.2.3 SSM model features 26
3.3 SSM design 26-28
3.3.1 MCU widget design is 26-27
3.3.2 Other components of the design 27-28
3.4 SSM model the logical relationship 28-29
3.5 SSM model scalability analysis 29-30
3.6 Summary 30-31
MCU software emulator implementation 31-48
4.1 MCU component structure 31-32
4.2 MCU components to achieve 32-39
4.2.1 register component realization 32-34
4.2.2 pipeline component realization 34-36
4.2.3 exception handling simulation 36-38
4.2.4 MCU components to achieve 38-39
4.2.5 MCU other components to achieve 39
4.3 the MMU components to achieve 39-42
4.3.1 of the MMU's principle 39-41
4.3.2 the MMU to achieve 41-42
4.4 Cache component to achieve 42-43
4.4.1 Cache structure design 42
4.4.2 Cache the work process 42-43
4.4.3 the Cache implementation 43
4.5 WriteBuffer component implementation 43-44
4.6 other components to achieve 44-45
4.7 MCU and other components of the interface 45-46
4.7.1 with on-chip component interface 45
4.7.2-chip component interface 45-46
4.8 Summary 46-48
virtual instruction set design and 48-66
5.1 processor architecture comparison 48-52
5.1.1 ARM architecture 48-49
5.1.2 the HCS12 system structure 49-50
5.1.3 Coldfire system structure 50-52
5.2 virtual instruction set design 52-57
5.2.1 virtual instruction concept of 52-53
5.2.2 virtual instruction set 53-54
5.2.3 virtual instruction set 54-57
5.3 translates the instructions of the design 57-63
5.3.1 instruction translation technology 57-58
5.3.2 virtual instruction translation 58-61
5.3.3 translation optimization technology 61-63
5.4 instruction emulation to achieve 63-64
5.4.1 virtual instruction match 63
5.4.2 instruction execution function of the design 63-64
5.5 Summary 64-66
Chapter VI of the debug module design and verification 66-79
6.1 Analysis of the debug module 66-70
6.1.1 debug module introduces 66
6.1.2 debug information to obtain 66-67
6.1.3 symbol table handling 67-70
6.2 MCU simulation debug module design and 70-75
6.2.1 the MCU simulation debugging module is designed 70-71
6.2.2 simulation debugging module 71-72
6.2.3 Debug module to achieve 72-73
6.2.4 Timing Analysis 73-75
6.3 MCU emulator verify 75-77
6.3.1 verify 75-77
6.3.2 results 77
6.4 Summary 77-79
Chapter VII Conclusion 79-81
References 81-83
during the master's degree to participate in research projects and published papers 83-84
thank 84-85
detailed summary 85-87
Related dissertations
- Research on the Network Control Andkey Components in the Time-Triggered Ethernet
- Research of Ontology-based Component Description and Intelligent Retrieval
- Application Research on the Kernel Fisher Method and Its Component in Image Recognition
- The Design and Implementation of Information Dissemination Terminal Module Component Based
- Research on facet reusable component library based on
- Development and Application of Component Based on JSF2and HTML5
- Research of Component Supported Digital Media Middleware Technology
- On the Component of the Crime of Concealing or Disguising Criminal Gains and Relationship with the Upstream Crime
- Morphology of Aircraft and in Sculpture Sci-Fi Art
- Study on Chinese Characters in Chinese Characters a Systematic Approach
- The Research on Component, Function and in Vitro Culture of Hemocytes from the Mitten Crab, Eriochier sinensis
- Study on Kitchen and Bathroom Applications in Industrialization of Residential Interior Decoration
- A Study on the Structural Carpentry System of the Main Hall of Mei Temple in Zhaoqing
- Component Based Highway E-information Management System
- Modified Bitumen of Natural Asphalt's Pavement Performance Research
- Study on the Comprehensive Performance of Road Asphalt
- The Design of Satellite ACS Software Architecture and Key Component Based on Software Bus
- Research of ERP System for Small and Medium-sized Manufacture Enterprises Based on Component and Business Process Driven
- Structure Design and Performance Study of Three-layer PI/TiO2Composite Films
- Study of the Synthesis and Photoluminescence of Quantum Dots with Multiple Components