CN110162438A - Artificial debugging device and emulation debugging method - Google Patents

Artificial debugging device and emulation debugging method Download PDF

Info

Publication number
CN110162438A
CN110162438A CN201910461616.1A CN201910461616A CN110162438A CN 110162438 A CN110162438 A CN 110162438A CN 201910461616 A CN201910461616 A CN 201910461616A CN 110162438 A CN110162438 A CN 110162438A
Authority
CN
China
Prior art keywords
cid
module
integrated development
development environment
debugging
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910461616.1A
Other languages
Chinese (zh)
Other versions
CN110162438B (en
Inventor
许国泰
周伟
程德怿
陈兵
余景原
王子玮
金豪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Information Network Co Ltd
Original Assignee
Shanghai Information Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Information Network Co Ltd filed Critical Shanghai Information Network Co Ltd
Priority to CN201910461616.1A priority Critical patent/CN110162438B/en
Publication of CN110162438A publication Critical patent/CN110162438A/en
Application granted granted Critical
Publication of CN110162438B publication Critical patent/CN110162438B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • G06F11/261Functional testing by simulating additional hardware, e.g. fault simulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • G06F11/273Tester hardware, i.e. output processing circuits

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a kind of artificial debugging devices, comprising: Integrated Development Environment module and the emulator being mounted on user computer;It is equipped with a CID in the Integrated Development Environment module and checks module, an emulation chip is equipped in the emulator, is equipped with a management module and a CID register in the emulation chip;The CID register is connected by artificial debugging channel with Integrated Development Environment module, and the management module is connected by register read/write channel with CID register.The invention also discloses a kind of emulation debugging methods.When the present invention can ensure that user starts user program debugging efforts by Integrated Development Environment software, emulator, emulation chip have entered normal operating conditions, and the connection of artificial debugging channel is normal, communication is stablized, and improves debugging efforts efficiency.

Description

Artificial debugging device and emulation debugging method
Technical field
The present invention relates to processor chips to emulate field, more particularly to a kind of artificial debugging device.The invention further relates to A kind of emulation debugging method.
Background technique
There is the user program of User Exploitation in processor chips, in the writing and debug of user program, used work Tool is usually artificial debugging device.The emulation chip comprising product treatment device chip various functions is used in artificial debugging device, For the work behavior of analog equipment processor chips, emulation chip and artificial debugging device other component (storage user program Program storage, store the data storages of data, debug channel, and the Integrated Development Environment being mounted on user computer Module etc.) cooperation realizes the simulation run and every debugging function of user program, for simulate actual product processor chips into Row debugging, test and inspection, preliminary examination of testing agency etc..
After existing artificial debugging device powers on, the Integrated Development Environment module being initially mounted on user computer passes through debugging The CID (chip identity Chip Identification) in emulator in emulation chip is read in channel, if read CID is judged as Integrated Development Environment module and emulator has been successfully established communication connection, accessible emulation chip, start into The downloading and debugging of row user program.But since emulator and emulation chip belong to developing instrument, generally also it is common to more The debugging of money multi-series processor chips is not a kind of unique genuine products processor chips of model, will not be by manufacturer point With CID of the specification with certain format is met, so passing through tune in Integrated Development Environment module in existing artificial debugging device Channel access emulation chip is tried, CID is read, when establishing communication connection, the CID that emulation chip only feeds back a random number is given Integrated Development Environment module, and general Integrated Development Environment software considers to judge the numerical value of CID based on versatility, only The CID for reading any number is judged as being successfully established the connection in debugging channel, can enter under normal user program It carries and debugs.
In fact, having fed back the CID of an exception to Integrated Development Environment if emulator or emulation chip go wrong Module, or abnormal or unstable, Integrated Development Environment module is read CID and emulation core are connected since debugging channel exists The CID that piece generates is not identical, since Integrated Development Environment module does not judge the correctness of CID, sentences as long as reading CID Open close letter is normally established, and user can continue subsequent user program downloading and debugging behaviour in Integrated Development Environment module Make.But at this point, since emulator or emulation chip are there are problem, or debugging channel exist connect it is abnormal or unstable, after Continuous user program debugging process necessarily will appear many exceptions;Simultaneously as user program is in exploitation debugging stage, user Program itself be also it is jejune, there are great user program code errors to cause a possibility that abnormal, and user is again back The problem of lookup and exclusion are emulator, emulation chip or debugging channel or user program code itself, which have mistake, to be caused The problem of, the complexity for the problem of substantially increasing affects the efficiency of debugging efforts.
Summary of the invention
The technical problem to be solved in the present invention is to provide a kind of artificial debugging devices, it can be ensured that user passes through Integrated Development When environment software starts user program debugging efforts, emulator, emulation chip have entered normal operating conditions, and artificial debugging is logical Road connection is normal, communication is stablized, and improves debugging efforts efficiency;For this purpose, the present invention also provides a kind of emulation debugging method.
In order to solve the above technical problems, artificial debugging device of the invention, comprising:
Integrated Development Environment module and the emulator being mounted on user computer;It is equipped in the Integrated Development Environment module One CID checks module, and an emulation chip is equipped in the emulator, a management module is equipped in the emulation chip and a CID is posted Storage;
The CID register is connected by artificial debugging channel with Integrated Development Environment module, and the management module is logical Register read/write channel is crossed to be connected with CID register;
After the emulator powers on, the management module of emulation chip can generate one group and meet the CID of specified format, and pass through CID register is written in register read/write channel;The Integrated Development Environment module is read by artificial debugging channel from CID register Take CID;CID in the Integrated Development Environment module checks that module checks the CID read, judges whether it meets The CID of specified format, if meeting the CID of specified format, the CID checks that module notifies Integrated Development Environment module, emulation Debugging channel, which has had been established, to be stably connected with, and emulator and emulation chip have all entered normal operating conditions.
The another technical solution that the artificial debugging device uses is, comprising: user computer and emulator;The user It is equipped with a CID in computer and checks module, an emulation chip is equipped in the emulator, is equipped with a management module in the emulation chip With a CID register;It states CID register and is connected by artificial debugging channel with user computer, the management module is by posting Storage read/write channel is connected with CID register.
One Integrated Development Environment module is installed, the CID checks that module setting integrated is opened at this on the user computer It sends out in environment module, the CID register is connected by artificial debugging channel with Integrated Development Environment module.
Emulation debugging method of the invention adopts the following technical scheme that existing: after emulator powers on every time, emulation chip Management module will generate one group of CID for meeting specified format, and the CID of emulation chip is written by register read/write channel Register;The Integrated Development Environment module being mounted on user computer is read by artificial debugging channel from the CID register 4 CID;CID in the Integrated Development Environment module 5 checks that module checks whether judge it to the CID read first It is the CID for meeting specified format, if meeting specified format, CID checks that module notifies Integrated Development Environment module, Integrated Development Emulator that environment module is connected, emulation chip have all entered normal operating conditions, and stabilization has had been established in artificial debugging channel Connection.
Using artificial debugging device and method of the invention, after emulator powers on every time, all automatically generate with specified lattice The CID of formula determines emulator and emulation chip after Integrated Development Environment module obtains by artificial debugging channel and checks CID Whether work normally, whether artificial debugging channel, which has been established, is stably connected with.Ensure that user is opened by Integrated Development Environment module When beginning user program debugging efforts, emulator and emulation chip enter normal operating conditions, and the connection of artificial debugging channel it is normal, Communication is stablized.Only emulator has worked normally, and artificial debugging channel is stably connected with, and user could pass through Integrated Development Environment mould The downloading of BOB(beginning of block) user program and debugging efforts.When there is user program code debugging exception, user is helped to eliminate in advance Emulator, artificial debugging channel suspection of problems and possibility, reduce the complex nature of the problem, user only needs to pay close attention to User program code issue assists in the efficiency that user improves user program debugging efforts.
Detailed description of the invention
The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments:
Fig. 1 is the structural schematic diagram of the artificial debugging device.
Specific embodiment
As shown in Figure 1, the artificial debugging device 1 is in the following embodiments, comprising: the collection being mounted on user computer Development environment module 5 and emulator 8.An emulation chip 2 is equipped in the emulator 8.In the Integrated Development Environment module 5 There is CID to check module 6 equipped with one.A management module 3 and a CID register 4 are equipped in the emulation chip 2.The CID deposit Device 4 is connected by artificial debugging channel 7 with Integrated Development Environment module 5, and the management module 3 passes through register read/write channel 9 are connected with CID register 4.
After the emulator 8 powers on every time, the management module 3 of emulation chip 2 will generate one group and meet specified format CID, and CID register 4 is written by register read/write channel 9.The Integrated Development Environment module 5 passes through artificial debugging channel 7 read CID from CID register 4.CID in the Integrated Development Environment module 5 check module 6 first to the CID read into Row checks, judges whether it is the CID for meeting specified format, if meeting specified format, CID checks that the notice of module 6 is integrated and opens Environment module 5 is sent out, emulator 8 that Integrated Development Environment module 5 is connected, emulation chip 2 have all entered normal operating conditions, imitative True debugging channel 7, which has had been established, to be stably connected with, and normal and stable user program downloading and debugging can be started.
In this way, only emulator 8 has worked normally, artificial debugging channel 7 is stably connected with, and user could pass through Integrated Development Environment module 5 starts downloading and the debugging efforts of user program.It is abnormal there is user program code debugging in debugging process When, user is without suspecting that there are problems for emulator 8, artificial debugging channel 7, reduce the complex nature of the problem, user only needs to close Infuse user program code issue.
The emulation chip 2 can still use FPGA (Field Programmable Gate Array, field-programmable Gate array) chip and netlist realize;Register resources or logical resource realization in FPGA can be used in the CID register 4; The realization of the logical resource in FPGA can be used in the management module 3;The Integrated Development Environment module 5 can use generic set The dedicated Integrated Development Environment software realization of development environment, such as KEIL, ADS, MDK etc. or customized exploitation.Artificial debugging The debugging channel of standard debugging agreement, the debugging channel realization of such as JTAG etc. or custom protocol can be used in channel 7.CID Check that module 6 can be real using the extended debugging interface and independently developed software module that general IDE software provides It is existing, such as the AGDI interface and independently developed DLL dynamic link library of KIEL.The specified format that the CID needs to meet can be with It is that one group of specified data or one group of data add the modes such as matching check value (obtaining using general checking algorithm) certainly Definition is realized, such as 16 data add the check value based on CRC16 algorithm to constitute one group of CID etc..
Above by specific embodiment, invention is explained in detail, but these are not constituted to of the invention Limitation.Without departing from the principles of the present invention, those skilled in the art can also make many modification and improvement, these It should be regarded as protection scope of the present invention.

Claims (10)

1. a kind of artificial debugging device characterized by comprising
Integrated Development Environment module and the emulator being mounted on user computer;One is equipped in the Integrated Development Environment module CID checks module, and an emulation chip is equipped in the emulator, and a management module is equipped in the emulation chip and a CID is deposited Device;
The CID register is connected by artificial debugging channel with Integrated Development Environment module, and the management module is by posting Storage read/write channel is connected with CID register;
After the emulator powers on, the management module of emulation chip can generate one group and meet the CID of specified format, and pass through deposit CID register is written in device read/write channel;The Integrated Development Environment module passes through artificial debugging channel from CID register read CID;CID in the Integrated Development Environment module checks that module checks the CID read, judges whether it meets finger The CID for the formula that fixes, if meeting the CID of specified format, the CID checks that module notifies Integrated Development Environment module, and emulation is adjusted It pings to have had been established and be stably connected with, emulator and emulation chip have all entered normal operating conditions.
2. device as described in claim 1, it is characterised in that: only the emulator and emulation chip have entered normal work State, artificial debugging channel, which has had been established, to be stably connected with, and user could start user program by Integrated Development Environment module Downloading and debugging efforts.
3. device as described in claim 1, it is characterised in that: the CID of the specified format is one group of specified data, either One group of data adds matching check value.
4. a kind of artificial debugging device characterized by comprising user computer and emulator;One is equipped in the user computer CID checks module, and an emulation chip is equipped in the emulator, and a management module is equipped in the emulation chip and a CID is deposited Device;
The CID register is connected by artificial debugging channel with user computer, and the management module is read and write by register Channel is connected with CID register.
5. device as claimed in claim 4, it is characterised in that: be equipped with an Integrated Development Environment mould on the user computer Block, the CID check that module is arranged in the Integrated Development Environment module, the CID register by artificial debugging channel with Integrated Development Environment module is connected.
6. device as claimed in claim 4, it is characterised in that: the management module is constituted using fpga chip.
7. device as claimed in claim 4, it is characterised in that: the Integrated Development Environment module uses general Integrated Development ring Border module.
8. a kind of emulation debugging method, it is characterised in that: after emulator powers on every time, the management module of emulation chip will be generated One group meets the CID of specified format, and passes through the CID register of register read/write channel write-in emulation chip;It is mounted on user Integrated Development Environment module on computer reads CID from the CID register 4 by artificial debugging channel;The Integrated Development CID in environment module 5 checks that module first checks the CID read, judges whether it meets specified format CID, if meeting specified format, CID checks that module notifies that Integrated Development Environment module, Integrated Development Environment module are connected Emulator, emulation chip have all entered normal operating conditions, and artificial debugging channel, which has had been established, to be stably connected with.
9. method according to claim 8, it is characterised in that: only the emulator and emulation chip have worked normally, and imitate True debugging channel is stably connected with, and user could start downloading and the debugging efforts of user program by Integrated Development Environment module.
10. method according to claim 8, it is characterised in that: the CID of the specified format is one group of specified data, or It is one group of data plus matching check value.
CN201910461616.1A 2019-05-30 2019-05-30 Simulation debugging device and simulation debugging method Active CN110162438B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910461616.1A CN110162438B (en) 2019-05-30 2019-05-30 Simulation debugging device and simulation debugging method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910461616.1A CN110162438B (en) 2019-05-30 2019-05-30 Simulation debugging device and simulation debugging method

Publications (2)

Publication Number Publication Date
CN110162438A true CN110162438A (en) 2019-08-23
CN110162438B CN110162438B (en) 2024-03-26

Family

ID=67630080

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910461616.1A Active CN110162438B (en) 2019-05-30 2019-05-30 Simulation debugging device and simulation debugging method

Country Status (1)

Country Link
CN (1) CN110162438B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070180509A1 (en) * 2005-12-07 2007-08-02 Swartz Alon R Practical platform for high risk applications
CN101197191A (en) * 2001-09-13 2008-06-11 株式会社瑞萨科技 Memory card and its initial setting method
CN101315796A (en) * 2007-05-30 2008-12-03 日立环球储存科技荷兰有限公司 Content data management system and method
CN103207832A (en) * 2012-01-13 2013-07-17 上海华虹集成电路有限责任公司 Emulator capable of automatically judging steady state of emulation chip
CN103746882A (en) * 2014-01-14 2014-04-23 国家电网公司 Test method for intelligent substation station-control layer
CN105895158A (en) * 2016-04-23 2016-08-24 华为技术有限公司 Chip and DIE ID readout circuit in chip
CN106528414A (en) * 2016-11-03 2017-03-22 上海华虹集成电路有限责任公司 Processor chip simulator
CN207302033U (en) * 2017-09-26 2018-05-01 上海市信息网络有限公司 Processor chips emulator with random UID

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101197191A (en) * 2001-09-13 2008-06-11 株式会社瑞萨科技 Memory card and its initial setting method
US20070180509A1 (en) * 2005-12-07 2007-08-02 Swartz Alon R Practical platform for high risk applications
CN101315796A (en) * 2007-05-30 2008-12-03 日立环球储存科技荷兰有限公司 Content data management system and method
CN103207832A (en) * 2012-01-13 2013-07-17 上海华虹集成电路有限责任公司 Emulator capable of automatically judging steady state of emulation chip
CN103746882A (en) * 2014-01-14 2014-04-23 国家电网公司 Test method for intelligent substation station-control layer
CN105895158A (en) * 2016-04-23 2016-08-24 华为技术有限公司 Chip and DIE ID readout circuit in chip
CN106528414A (en) * 2016-11-03 2017-03-22 上海华虹集成电路有限责任公司 Processor chip simulator
CN207302033U (en) * 2017-09-26 2018-05-01 上海市信息网络有限公司 Processor chips emulator with random UID

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
H-JTAG: "H-JTAG用户使用手册", pages 1 - 76 *

Also Published As

Publication number Publication date
CN110162438B (en) 2024-03-26

Similar Documents

Publication Publication Date Title
CN106940428B (en) Chip verification method, device and system
US6678625B1 (en) Method and apparatus for a multipurpose configurable bus independent simulation bus functional model
US8402438B1 (en) Method and system for generating verification information and tests for software
US7127649B2 (en) Smartcard test system and related methods
CN111339731B (en) FPGA (field programmable Gate array) verification platform and method for SoC (System on chip)
CN104407980A (en) Mobile application automated testing device and method
CN111428431B (en) Automatic test and recording method and system supporting EDA software
CN113407393B (en) Chip verification method, terminal device, verification platform and storage medium
CN109933521A (en) Automated testing method, device, computer equipment and storage medium based on BDD
US6339837B1 (en) Hybrid method for design verification
CN111832237A (en) Intellectual property right verification method and system
CN115952758A (en) Chip verification method and device, electronic equipment and storage medium
Goli et al. Automatic protocol compliance checking of SystemC TLM-2.0 simulation behavior using timed automata
CN115496018A (en) Multi-version verification method, device and equipment for SoC (System on chip)
CN112286750A (en) GPIO (general purpose input/output) verification method and device, electronic equipment and medium
CN117094269B (en) Verification method, verification device, electronic equipment and readable storage medium
CN110515755A (en) Interface function verification method, device, equipment and computer readable storage medium
CN116681013B (en) Simulation verification method, platform, device, equipment and medium of network chip
CN110162438A (en) Artificial debugging device and emulation debugging method
CN112885403B (en) Function test method, device and equipment of Flash controller
CN113177388B (en) Device, system and method for testing and verifying IP (Internet protocol) core
CN108802600A (en) A kind of integrated circuit verification system and method based on FPGA
CN112464500B (en) Backup cell replacement circuit verification method, device, storage medium and terminal
CN207302033U (en) Processor chips emulator with random UID
CN109669872A (en) A kind of verification method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant