SmartSimular: embedded systems based on the virtual instruction set simulator
- Author
- JiangXuFeng
- Advisor
- WuChaoZuo , ZhaoMinDe
- School
- Zhejiang University
- Major
- Applied Computer Technology
- Classification
- TP391.9 Computer simulation
- Degree
- Master's thesis
- Year
- 2006
- Downloads
- 199
- Citations
- 7
Abstract
Simulator is a very important research realm in the computer technology. When designing an embedded system, test and validation is very important. Co-design can accelerate the development efficiency.The processor is the core of an embedded system. An embedded system also contains memory device, IO and other communication interface. An entire model for the system will be more helpful. Develop a system simulator for test is very useful.An embedded software simulator can run the user application. Nowadays, there are so many different processors and peripheral equipment. Just afford a processor simulator can’t integrate with other components. Each model takes the response of their own function and designed under the uniform architecture so that each model can integrate with other components.The design of the system simulator engine is based on the study of traditional simulator. It focuses on auto generation technology. It puts forward component based system integration architecture. The system uses the Inverse of Control design pattern. It uses config file to fulfill the system integration. The system is an open architecture and has well-defined interface.The system simulator engine use Object-Oriented architecture. Each part treats as an object. It has a well-defined hierarchy. It is very easy to extends the system by inherit the Class define by the simulator engine. It gives the user a clear view of the system.The design of the core instruction simulator is referred to the JAVA virtual machine. It defines a virtual instruction set. The source machine instructions are translated to the middle language before execution. The middle language is not fixed. The simulator designs an open architecture to execute the virtual instruction as well.The simulator engine is developed by JAVA. It fulfils the core system framework. On the framework, it develops a universal instruction simulator core and system inter-connection model, processor model, memory model, device model and debug model.Finally, the system fulfils a sample processor for test. It proves that the system simulator engine can simulate the function of the system well.
Table of contents
Summary 2-3
Abstract 3-6
Chapter 1 Introduction 6-16
1.1 Introduction 6-7
the 1.1.1 system developed 6
1.1.2 reverse engineering 6-7
1.2 system simulation technology 7-12
1.2.1 the emulator automatically generated technology 10-12
1.2.2 component-based embedded software simulation 12
1.3 SmartEngineer system framework 12-14
1.4 This study focused 14
1.5 This article structure 14-16
Chapter 2 instruction set simulation principle 16-22
2.1 instruction set The basic concept of the emulator 17-19
2.1.1 Instruction Set Simulator classified 17-18
2.1.2 functional simulation are found; 18-19
2.1.3 Performance Simulation 19
2.2 instruction set emulator to achieve 19-22
2.2.1 static translation 20
2.2 .2 the dynamic translator 20-22
Chapter 3 system overall framework the 22-37 3.1 virtual instruction set
23-24
3.2 system interoperability even the model the 24-27 3.2.1 executing entities
the bus
3.2.2 interconnects, 24-25 25-27
3.3 processor model 27-28
3.4 memory model 28-30
3.5 device model 30-31
3.5.1-chip device model 30-31
the 3.5.2-chip device model 31
3.6 debug model the 31-32 3.7 loader
32-33
3.8 component-based systems integration 33-37
Chapter 4 virtual instruction set design 37-51
4.1 processor architecture 37-42
4.1.1 PowerPC architecture 37-38
4.1.2 ARM architecture 38-41
4.1.3 the HCS12 architecture of 41-42
4.2 virtual instruction set design the 42-43 4.3 instruction format
43-48
the 4.4 source language to the virtual instruction set conversion 48-51
Chapter 5, the design of the processor model to 5.1 CPU model framework 51-63
51-53
5.2 register model 53-54
5.2.1 register classification the 53-54
5.2.2 register model to achieve 54
5.3 Address Translation model 54 -55
5.4 instruction set model 55-59
5.4.1 fetch and instruction conversion model 55-57
5.4.2 ALU model 57-58
5.4.3 instruction execution model 58-59
5.5 interrupt model 59-61
5.5.1 interrupt model design 59-60
5.5.2 interrupt model implementation and interface definitions 60-61
5.6 program flow and data flow tracking analysis 61-63
5.6. program flow analysis 61-62
5.6.2 Data flow analysis 62-63
Chapter 6 memory model of the design and realization of 63-70
6.1 memory model framework the the 63-65 physical
6.2 storage organizational structure is 65-67
6.2.1 storage area 65-66
6.2.2 storage block the 66-67 6.3 Access Control
the 67-70
6.3.1 Access Controller 68
6.3.2 access control listener 68-70
Chapter 7 Design and Implementation of the debug model 70-78
7.1 system debugging model 70-74 <br / > 7.1.1 Break Point model 71-72
7.1.2 Watch Point model 72-74
7.2 debug interface 74-78
7.2 .1 debug server 74-75
7.2.2 commissioning services 75-76
7.2.3 debug agent 76
7.2.4 debug command 76-78
Chapter 8 simulator application instance 78-83
8.1 C166S architecture design and implementation 78-81
8.1 .1 C166S system processor model 78-80
8.1.2 C166S instruction set of the system model 80-81
8.2 C166S architecture test and demonstration nbsp ; 81-83
Chapter 9 Summary and Outlook 83-85
9.1 work summary nbsp the; the 83-84
9.2 Job Outlook 84-85 the
References 85-88
Acknowledgements 88-89
Appendix 89-90