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

A special function, microprocessor technology, applied in the field of enhanced microprocessor on-chip dynamic tracking, which can solve the problems of occupying more resources, changing the processor core greatly, and being inconvenient to implement.

Inactive Publication Date: 2009-07-08
SHANGHAI UNIV +2
View PDF4 Cites 0 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
  • Enhancement type microprocessor piece on-chip dynamic state tracking method with special function register breakpoints
  • Enhancement type microprocessor piece on-chip dynamic state tracking method with special function register breakpoints

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

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

[0041] The on-chip dynamic trace method of this microprocessor adopts the following workflow through an enhanced on-chip debug module (Enhanced OCD module with SFR Breakpoint Function: E-OCD-SFR-B) with special function register breakpoint function (See figure 1 ) to realize the dynamic tracking of the processor running process:

[0042] a) If the debug enable signal DBG_en 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_e as high level.

[0043] 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, i...

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 an enhanced on-chip dynamic tracing method with special function register breakpoints. This method can set some positions or special function registers in the program execution process as breakpoints through an independent enhanced on-chip debugging module with SFR breakpoint function integrated in the microprocessor, and then these breakpoints The information of the internal registers at the location is tracked, recorded and output in real time. And by adding a debug enable signal to realize the switching between the debug mode and the normal operation mode. The method of the invention can be applied to the field of 8051 series microprocessors, and can also be applied to the fields of other microprocessors.

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 Patents(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