Method for realizing online debugging on application codes of 51 soft core

A technology of application code and soft core, applied in the field of single-chip debugging, can solve problems such as difficulty in finding software errors, errors in single-chip code, file conversion errors, etc., and achieve the effect of shortening the cycle of system development

Inactive Publication Date: 2014-08-13
UNIV OF ELECTRONICS SCI & TECH OF CHINA
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0010] It can be seen from the above development process that the development process of the MC8051 core in practical applications is time-consuming and laborious:
[0011] 1) Any small change in the code requires the developer to start over from the first step to generate the hex file;
[0012] 2) There are too many intermediate steps. If there is an error, it is difficult to judge which step in the development process is wrong.
It may also be an error in the MCU code, or a file conversion error, or an error in the FPGA code
[0013] 3) Developers cannot monitor the changes of 8051 internal registers and variables in real time, which makes it difficult to find software errors
[0014] 4) The requirements for developers are high, and developers need to master not only the use of 51 development tools, but also the use of FPGA development tools
And 51 soft cores such as MC8051 core are different from the 51 single-chip microcomputers of general entities because they are the nature of the soft MCU core. The existing Monitor-51 online debugging method for 51 single-chip microcomputers cannot be used for 51 soft cores

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
  • Method for realizing online debugging on application codes of 51 soft core
  • Method for realizing online debugging on application codes of 51 soft core

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] Taking the MC8051 core as an example, in order to realize the online simulation debugging of the MC8051 core, the following four aspects of work need to be completed:

[0033] 1. Change the Harvard structure to the von Leumann structure: Since the essence of online simulation is to monitor the operation of user code through the Monitor-51 code, a readable and writable code space is required. The ordinary MC8051 core is a Harvard structure in which the read-only code space and the readable and writable data space are separated, so the storage structure of the MC8051 core will be modified to a Von Leumann structure, that is, the combined code space and data space are unified and readable storage space for writing.

[0034] 2. Modification of Monitor-51: Modify the serial port baud rate used in Monitor-51; allocate RAMx, the external storage space of 51 soft core, divide the user program space and user external data space, monitor-51 monitoring program and monitoring progr...

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 provides a method for realizing 51 soft-core online application code debugging. By modifying 51 soft-core and Monitor-51, the independent external data space and code space of 51 soft-core are merged to form a unified readable and writable The external storage space RAMx generates FPGA configuration data files containing 51 soft cores; downloads the FPGA configuration data files containing 51 soft cores to the FPGA to realize online debugging of 51 soft core application codes, which is feasible and greatly shortens the The soft-core programmable system-on-chip development cycle is applicable to MC8051 core and other 51 soft cores.

Description

technical field [0001] The invention relates to electronic computer technology, in particular to single-chip microcomputer debugging technology. Background technique [0002] With the development of Field Programmable Logic Array (FPGA) and Electronic Design Automation (EDA) technologies, million-gate FPGAs, reconfigurable embedded MCUs, complex IP cores (Intellectual Property cores) and various functions The emergence of powerful EDA tools has made it possible to integrate MCU, memory and some peripheral circuits into one chip. With the application of IP core technology in FPCA, especially the development of MCU IP core technology. Various embedded MCU soft cores with different performances have appeared. [0003] MCS-51 series MCU is currently the most powerful 8-bit MCU with the longest application time, the most popular, and the most available application materials. The establishment of 8051MCU's comprehensive IP core has greatly promoted the application of various em...

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/26
Inventor 唐续王嘉蒲晓蓉魏平董平
Owner UNIV OF ELECTRONICS SCI & TECH OF CHINA
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