Method for realizing 8-bit embedded CPU (central processing unit) simulation running environment by aid of Java

An operating environment, embedded technology, applied in software simulation/interpretation/simulation, program control devices, etc., can solve the problems of 8-bit embedded system design, development and maintenance difficulties, improve the efficiency of design, development and debugging, easy to deploy Effect

CN102508697AActive Publication Date: 2012-06-20武汉武钢绿色城市技术发展有限公司
4 Cites 8 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Publication Date
2012-06-20

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
Patent Text Reader

Abstract

A method for realizing an 8-bit embedded CPU (central processing unit) simulation running environment by the aid of Java comprises an embedded system program code instruction interpreter, a virtual embedded processor, a virtual memory, a virtual stack manager and virtual input and output equipment. The virtual embedded processor is realized based on corresponding Java function codes. Simultaneously, an embedded system program instruction stack is realized by the aid of the Java and is used for managing execution sequence of embedded system programs, and finally, a visual embedded system simulation running result is provided for a user by the aid of a Java graphical user interface. The method supports Windows / Linux / Unix operation environments, and can be easily deployed in a PC (personal computer), online debugging is carried out via a network by the aid of advantages of the Java network, design, development and debugging efficiency of an embedded system is greatly improved, and the method is widely applicable to design, development, debugging and maintenance of industrial automatic embedded systems, and is an effective technical means for simulation development and testing.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The present invention relates to a method for realizing 8-bit embedded CPU simulation operating environment through Java, so as to directly execute embedded program code specially written for 8-bit embedded CPU, and its execution effect is like a real 8-bit embedded CPU hardware Same. Background technique

[0002] In industry, manufacturing and other industries, embedded systems are widely used to realize automatic production control and process automation. Embedded systems use a large number of 8-bit embedded CPU environments (single-chip microcomputers). When developing programs for these embedded systems, running tracking and debugging are more complicated, and special hardware development boards and other equipment are required, which is costly and not easy. Installation and deployment, which brings great difficulties to the design, development and maintenance of embedded systems. Therefore, being able to provide an 8-bit CPU embedded system sim...

Examples

Embodiment Construction

[0025] In the method, an instruction interpreter, a virtual processor, a virtual memory, a virtual stack manager, a virtual input and output device, and a Java graphical user interface of an 8-bit embedded CPU system are respectively generated on the virtual machine through Java class files.

[0026] The instruction interpreter completes the translation of the embedded system program code, and converts it into the corresponding equivalent Java function code that can be executed in the memory of the Java virtual machine. Virtual processor is used to simulate stack data management and input and output device management in virtual machine memory; virtual memory is used to simulate memory read and write functions in virtual machine memory, simulating the physical operation effect of embedded system memory; virtual stack management The device is used to simulate the stack operation in the virtual machine memory, and simulate the physical operation effect of the embedded system stack...