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

An emulator and method supporting nvm soft breakpoint debugging

An emulator and soft breakpoint technology, applied in the field of emulators that support NVM soft breakpoint debugging, can solve the problems of slow breakpoint debugging, stalls, and complicated emulator design, and achieve the effect of improving operation speed

Active Publication Date: 2017-07-11
BEIJING CEC HUADA ELECTRONIC DESIGN CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Since the chip program memory is usually NVM, a few hard breakpoints are difficult to meet the needs of engineers for in-depth debugging. It is hoped that the emulator supports NVM soft breakpoint debugging
In order to solve the problem that NVM cannot set soft breakpoints, some emulators have realized the function of setting soft breakpoints on FLASH. The realization principle is to set soft breakpoints to perform erasing and writing operations on Flash, which requires the emulator to have the Flash programming function, and Ability to write breakpoint instructions in the shortest possible time
Since it takes a certain amount of time to erase and write Flash, you will feel a pause when the Flash breakpoint is executed, and the user experience is not good.
In addition, because the FLASH erasing program and download data are cached in the chip RAM, it is necessary to download the erasing program every time a breakpoint operation is performed to protect the user RAM data, which makes the emulator design complicated.
[0005] In order to solve the problem that the breakpoint debugging speed of the above solution is slow and the chip RAM data needs to be protected, the present invention proposes an emulator that uses hardware circuits to support NVM chip soft breakpoint debugging

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
  • An emulator and method supporting nvm soft breakpoint debugging
  • An emulator and method supporting nvm soft breakpoint debugging
  • An emulator and method supporting nvm soft breakpoint debugging

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] The emulator of the present invention will be described in detail below in conjunction with the accompanying drawings.

[0039] 1. If figure 1As shown, it is a chip function module supporting the MMU function, including a CPU 5, a function module 6, a chip MMU8, a chip NVM 10, and a chip RAM 11, which are used to simulate the functions of a real chip. The CPU 5 realizes the access and authority management of the memory chip NVM 10 and the chip RAM 11 through the chip MMU 8 .

[0040] 2. If figure 2 As shown, based on the chip function module supporting the MMU function, the debugging circuit is added, and an emulator supporting NVM soft breakpoint debugging is realized. The added debugging circuit includes: emulator debugging module 2, chip function debugging module 4, MMU selection module 7, RAM selection module 9, and debugging RAM 12. The debugging RAM 12 is composed of a program RAM 13 for erasing and writing and a breakpoint storage RAM 14 . Figure 5 , Figu...

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 introduces an emulator and method supporting NVM soft breakpoint debugging, and relates to the technical field of chip emulation. The emulator includes an emulator debugging module and emulator hardware. The emulator hardware mainly includes modules such as a chip function debugging module, a CPU, a chip MMU, a chip NVM, a chip RAM, and a debugging RAM. The emulator debugging module writes the erasing program and breakpoint data into the erasing program RAM and breakpoint storage RAM of the debugging RAM respectively, and backs up the code of the chip NVM breakpoint address to the breakpoint storage RAM according to the breakpoint data, and controls The CPU executes the erasing program to write the code of the NVM breakpoint address as a breakpoint instruction to realize the breakpoint setting function; change the chip NVM breakpoint instruction back to the breakpoint storage RAM backup code to realize the breakpoint clearing function.

Description

technical field [0001] The invention relates to a chip emulator, in particular to an emulator and method supporting NVM soft breakpoint debugging. Background technique [0002] Breakpoint debugging is the main debugging method of the smart card chip emulator. The emulator usually supports hard breakpoint debugging. Due to the limitation of the number of hard breakpoint registers in the CPU debugging module, the number of hard breakpoints supported by the emulator is small, such as ARM7 core Up to two hard breakpoints are supported. [0003] Soft breakpoints are implemented by setting characteristic values ​​in the code, which are usually called breakpoint instructions. When it is necessary to set a soft breakpoint at a certain address code, the emulator will first backup and protect the code here, and then write the preset breakpoint instruction into this address to overwrite the original code data. When the program runs to the breakpoint instruction, an interrupt will be ...

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 BEIJING CEC HUADA ELECTRONIC DESIGN CO LTD
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