Processor chip emulator capable of setting program pointer value

A technology of program pointers and emulators, applied in the field of smart cards, can solve problems such as user program miswrite operations, user program execution confusion, etc., and achieve the effect of reliable debugging

Inactive Publication Date: 2012-05-23
SHANGHAI HUAHONG INTEGRATED CIRCUIT
View PDF6 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, if the PC pointer register is changed from the read-only attribute to the read-write attribute during the design of the emulation chip directly in the emulator, it is easy for the user program to miswrite the PC pointer register, causing confusion when the user program is executed.
Therefore, there is a need for a processor chip emulator that can set the value of the PC pointer to provide the user with the function of setting the value of the PC pointer register through the emulator, to meet the user's above-mentioned debugging needs, and it will not occur due to the possible error of the PC pointer when the user program is running. Misoperation of the register, which causes confusion in the execution of the user program

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
  • Processor chip emulator capable of setting program pointer value
  • Processor chip emulator capable of setting program pointer value

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0014] What needs to be understood first is that the working state of the emulator is divided into two states: running and debugging, and the switching of the working state of the emulator is controlled by the user. When the user controls the emulator to enter the running state, the emulation chip in the emulator runs the user program at full speed. At this time, the integrated development environment debugging software will not interfere with the emulator's execution of the user program. The user program is executed on the actual product processor chip. The effect is basically the same; when the user controls the emulator to stop running the user program, the emulator exits the running state and enters the debugging state, and the emulator no longer executes the user program. At this time, the user can initiate observation / modification of the program code through the integrated development environment debugging software , memory data and other debugging operations.

[0015] A...

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 processor chip emulator capable of setting a program pointer value, which comprises an emulator and integrated development environment debugging software. An emulation chip comprises a PC (personal computer) pointer register and an emulation logic module, wherein the emulation logic module and the PC pointer register are connected through a register access bus; the emulation logic module can execute data write or read operation on the PC pointer register through the register access bus; and the emulation chip can not write data into the PC pointer register by executing a user program. By using the invention, in the user program development process, the user can enable the next program statement to be executed to be executed from the user program statement in the position designated by the user by setting the PC pointer register value in a debugging state; and when the user program is in the operation state, even if a user program miswrites the PC pointer register, no user program execution disorder condition can occur, so that the user can debug the user program efficiently and reliably.

Description

technical field [0001] The invention relates to the field of smart cards, in particular to a processor chip emulator capable of setting the value of a current Program Counter (PC or PC pointer) by a user. 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 tools used are generally the processor chip emulator and the debugging software on the user's computer—integrated development environment. 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. [0003] The Program Counter (PC or PC pointer for short) value is stored in the PC pointer register of the processor chip, which is the address value of the program statement that the user program needs to execute in the next step, and is the i...

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