Enhancement type microprocessor piece on-chip dynamic state tracking method with special function register breakpoints

A microprocessor and dynamic tracking technology, applied in the direction of software testing/debugging, etc., can solve the problems of occupying more resources, inconvenient implementation, and large changes to the processor core.

Inactive Publication Date: 2008-05-14
SHANGHAI UNIV +2
View PDF0 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The existing on-chip debugging technology relies on the realization of a specific structure, which requires a lot of changes to the processor core and requires more resources, so it is not convenient to implement; at the same time, the existing on-chip debugging technology can generally only realize program address breakpoints and single-step Execution and other debugging functions, and the special function register (SFR-special function register) is an important part of the microprocessor and plays an important role in the microprocessor. It is very important for the user to know the running status of the special function register in real time. Therefore, it is necessary to realize the SFR breakpoint

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
  • Enhancement type microprocessor piece on-chip dynamic state tracking method with special function register breakpoints

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] A preferred embodiment of the present invention is described in detail as follows in conjunction with accompanying drawing:

[0040] The on-chip dynamic tracking method of this microprocessor adopts the following workflow (see Figure 1) to realize the dynamic tracking of the processor running process:

[0041] a) If the debug enable signal (DBG_enable) is kept at a low level, the debug command register (DBG_command) does not work at this time, and the microprocessor operates normally. If you want to debug, set the debug enable signal (DBG_enable) to a high level.

[0042] b) Write the initial value to the debug command register (DBG_command), and the format description of the debug command register is shown in Table 1 of the accompanying drawing. In this design, the start flag bit start is defined first, if the flag position is 1, it indicates the start of debugging. The reason for setting the start flag is: if there is no debug start flag, because the default value ...

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 relates to a dynamic tracing method on the strengthening type card of a register breakpoint with particular function. The invention can set a certain positions or a register with particular functions to be breakpoints during the procedure executing process by unattached debugs module with SFR breakpoint function which is arranged on a strengthening type piece and is integrated in a microprocessor, then traces, records and outputs the information of the inside register at the breakpoints in real-time. The invention realizes to switch the debugging mode and the normal running mode though adding debugging signal. The method of the invention can be applied in the 8051 serials microprocessor field and also can be applied in other microprocessor fields.

Description

technical field [0001] The invention relates to an enhanced on-chip dynamic tracking method of a microprocessor with special function register breakpoints, which supports online debugging functions, including single-step debugging, setting and detection of address breakpoints and SFR special function register breakpoints, and microprocessing View and modify the internal registers of the device, etc. It can be applied to single-chip microprocessors of 8051 series, and can also be applied to other microprocessors and microprocessor fields. Background technique [0002] Dynamic Trace (Dynamic Trace) refers to the process of recording the track information of program running in real time, and transmitting this information to an external debugging tool for analysis and debugging by some means. In most devices such as logic analyzers and in-circuit emulators, there are tracking components used to dynamically track the running track of the processor, which are used to monitor vari...

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 UNIV
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