Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Emulator with program counter value settable

A technology of program pointers and emulators, which is applied in the direction of program control devices, software simulation/interpretation/simulation, etc., can solve time-consuming and labor-intensive problems, improve versatility, reduce development complexity and cost, and improve program efficiency Effect

Inactive Publication Date: 2014-03-26
SHANGHAI HUAHONG INTEGRATED CIRCUIT
View PDF5 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This work is very time-consuming and labor-intensive, and if the processor core of the product is a hard core (that is, the chip manufacturer cannot modify it), then it is impossible to modify the processor core design and add instructions to write PC values ​​to make the corresponding emulator and The emulation chip supports the debugging function of modifying the PC value

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
  • Emulator with program counter value settable

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0017] Referring to the drawings, the emulator 1 that can set the value of the program pointer in this embodiment includes an emulation chip 3, a debugging module 5, a memory 6, and an integrated development environment 2 on the user's computer. The emulation chip 3 is connected with the debugging module 5 through the debugging channel 9 . There is a processor core 4 consistent with the product chip in the emulation chip 3 . There are two address areas in the memory 6, which are the user program and data memory area 7 and the monitoring program memory area 8 respectively. The debugging module 5 controls the emulation chip 3 to be in the monitoring mode or the user mode through the debugging channel 9 . In the monitoring mode, the debugging module 5 controls the emulation chip 3 to execute a program at a certain address in the monitoring program memory area 8 in the memory 6 .

[0018] There is a PC value monitoring program for modifying the PC value in the monitoring program...

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 an emulator with the program counter value settable. The emulator comprises an emulation chip, a debugging module and a storage. A user program and data storage area and a monitoring program storage area are arranged inside the storage. The debugging module controls the emulation chip to be in a monitoring mode or in a user mode, and in the monitoring mode, the emulation chip is controlled to execute a program at the position of a corresponding address in the monitoring program storage area, wherein a PC value correcting monitoring program is stored in the monitoring program storage area. When a return statement of the PC value correcting monitoring program is executed, the current PC value automatically becomes an address value stored in a stack. Under the situation that a processor core of the emulation chip does not support PC value instruction writing, the emulator can still provide the debugging function of correcting PC values; the user program debugging efficiency is improved, meanwhile, the dependence of emulation debugging function realization on the functions of the processor core is lowered, the development complexity and the cost of the emulation chip are lowered, and the universality of emulator design is improved.

Description

technical field [0001] The invention relates to a processor chip emulator, in particular to an emulator capable of setting program pointer values. Background technique [0002] There is a user program developed by the user in the processor chip. In the writing and debugging of the user program, the tool used is generally a processor chip emulator. The emulator uses an emulation chip containing various functions of the product processor chip to simulate the working behavior of the product processor chip, which is very close to the product processor chip in terms of function and performance; the emulation chip cooperates with the emulator host to realize the user program Simulation running and various debugging functions. Therefore, emulation chips are generally designed on the basis of product chips. While using almost all functional modules and processor cores of product chips, some modules that are not related to user program debugging, such as security inspection modules,...

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): G06F9/455
Inventor 许国泰
Owner SHANGHAI HUAHONG INTEGRATED CIRCUIT
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products