Microprocessor chip emulator and breakpoint setting method

A microprocessor and emulator technology, applied in the field of microprocessor chip emulators, can solve problems such as inconvenient debugging work, reduce program debugging efficiency, etc., and achieve the effect of improving debugging work efficiency and improving interactive communication debugging.

Inactive Publication Date: 2010-06-23
SHANGHAI HUAHONG INTEGRATED CIRCUIT
View PDF0 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Use the existing emulator to cooperate with the target system to debug the user program. After executing the user program at full speed and interacting with the target system, if you need to set a breakpoint, you must stop executing the user program, set the breakpoint, and then restart the emulation chip to continue execution. User program; the time required for this process must exceed the response time requirement of the target system, so that the user program cannot continue to run from the stop, and the previous communication process must be executed again from the beginning
This is very inconvenient for debugging and greatly reduces the efficiency of program debugging

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Microprocessor chip emulator and breakpoint setting method
  • Microprocessor chip emulator and breakpoint setting method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0015] As shown in the figure, the microprocessor chip emulator 1 of the present invention includes an emulation chip 2 , an emulation management module 3 , a user program memory 4 and a monitoring program memory 5 . There is a simulation management interface 8 between the simulation chip 2 and the simulation management module 3, and the simulation management module 3 controls the simulation chip 2 to work in the monitoring mode or the user mode through the simulation management interface 8. When the simulation chip 2 works in the monitoring mode, the simulation management module 3 can provide breakpoint information to the simulation chip 2 through the simulation management interface 8, and the simulation chip 2 executes the monitoring program to complete the setting of the breakpoint. When the simulation chip 2 switches from the user mode to the monitoring mode, the simulation management module 3 can record the position where the user program execution stops; when the simulati...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a microprocessor chip emulator which comprises an emulation chip, an emulation management module, a user program memory and a monitoring program memory. The emulation management module controls the emulation chip to work in a monitoring mode or in a user mode through the emulation management interface. When the emulation chip works in the monitoring mode, the emulation management module can provides the breakpoint information to the emulation chip through the emulation management interface, and the emulation chip executes a monitoring program to set breakpoints. When controlling the emulation chip to be switched from the user mode to the monitoring mode, the emulation management module records a position at which the execution of the user program is stopped; and when the emulation chip is switched back to the user mode, the emulation management module controls the emulation chip to continue to execute the user program from the stop position. The invention also discloses a method for setting the breakpoints when the user program is operated at full speed. The method can still set the breakpoints when the user program is operated at full speed, thereby improving the debugging efficiency of the program.

Description

technical field [0001] The invention relates to a microprocessor chip emulator. The invention also relates to a method for setting a breakpoint when running a user program at full speed. Background technique [0002] When developing and debugging user programs in microprocessor chips, the tools used by program developers are emulators matched with microprocessor chips. Different from the product chip, the emulator chip is used in the emulator. The emulator chip works in user mode or monitor mode, and always switches between these two modes. When the emulation chip works in user mode, execute the user program to simulate the actual working state of the product chip; when the emulation chip works in monitoring mode, execute the unique monitoring program of the emulator, and observe, Set and modify the status and parameters of the chip. [0003] When using the emulator to debug user programs, it is often necessary to use breakpoints, a very common debugging method. The main ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36
Inventor 许国泰
Owner SHANGHAI HUAHONG INTEGRATED CIRCUIT
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products