CN112255534B - IP core module debugging system based on FPGA - Google Patents

IP core module debugging system based on FPGA Download PDF

Info

Publication number
CN112255534B
CN112255534B CN202011099186.2A CN202011099186A CN112255534B CN 112255534 B CN112255534 B CN 112255534B CN 202011099186 A CN202011099186 A CN 202011099186A CN 112255534 B CN112255534 B CN 112255534B
Authority
CN
China
Prior art keywords
core
data storage
module
unit
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.)
Active
Application number
CN202011099186.2A
Other languages
Chinese (zh)
Other versions
CN112255534A (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.)
Tianjin Jinhang Computing Technology Research Institute
Original Assignee
Tianjin Jinhang Computing Technology Research Institute
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 Tianjin Jinhang Computing Technology Research Institute filed Critical Tianjin Jinhang Computing Technology Research Institute
Priority to CN202011099186.2A priority Critical patent/CN112255534B/en
Publication of CN112255534A publication Critical patent/CN112255534A/en
Application granted granted Critical
Publication of CN112255534B publication Critical patent/CN112255534B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/28Testing of electronic circuits, e.g. by signal tracer
    • G01R31/317Testing of digital circuits
    • G01R31/3181Functional testing
    • G01R31/3185Reconfiguring for testing, e.g. LSSD, partitioning
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/28Testing of electronic circuits, e.g. by signal tracer
    • G01R31/317Testing of digital circuits
    • G01R31/31705Debugging aspects, e.g. using test circuits for debugging, using dedicated debugging test circuits
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/28Testing of electronic circuits, e.g. by signal tracer
    • G01R31/317Testing of digital circuits
    • G01R31/3181Functional testing
    • G01R31/3185Reconfiguring for testing, e.g. LSSD, partitioning
    • G01R31/318516Test of programmable logic devices [PLDs]
    • G01R31/318519Test of field programmable gate arrays [FPGA]

Abstract

The invention relates to an IP core module debugging system based on an FPGA (field programmable gate array), belonging to the field of digital integrated circuits. The auxiliary debugging unit can switch the IP core to be tested into a debugging mode and read the information and the capturing condition preset in the data storage unit, so that the functional performance of the IP core at the beginning in a state specified by a designer is observed, and the data of the IP core to be tested can be stored in the data storage unit, so that the IP core module can be debugged simply and conveniently at low cost. Further, by customizing the capture conditions, the IP core module may be debugged in various forms. Therefore, the problems that the existing IP core module based on the FPGA is complex and tedious to debug, high in cost, resource-occupied, not flexible enough and the like are solved.

Description

IP core module debugging system based on FPGA
Technical Field
The invention belongs to the technical field of digital integrated circuits, and particularly relates to an IP core module debugging system based on an FPGA.
Background
In the prior art, the debugging work of the IP core module based on the FPGA is complex and tedious, and a large amount of professional personnel and development time are required to be invested. The existing FPGA debugging methods mainly comprise two methods, one is to connect signals needing to be checked in the FPGA to FPGA pins, and then to analyze the signals output by the pins by adopting expensive equipment such as a logic analyzer and the like; another method is that an external cable is connected to the FPGA through a JTAG interface, a trigger condition is set through a software logic analyzer provided by FPGA manufacturers such as Xilinx, and when a certain signal reaches the trigger condition, an IP core designer can be helped to analyze existing problems by capturing a waveform. However, both of these methods have certain problems, the first method requires expensive test equipment and is relatively high in cost, and the second method requires inserting a logic analysis unit provided by an FPGA manufacturer into an FPGA logic, which occupies BRAM resources inside the FPGA and can only store a very small amount of field data.
The patent with the application number of 201110413599.8 discloses an FPGA debugging method, which is used for positioning problems by adding a trigger condition circuit unit for debugging and a signal acquisition unit for acquiring key signals. This method has some problems:
1) Because the trigger conditions are different, if all possible trigger conditions are covered, a great deal of workload is needed, and if only a part of conditions are covered, the flexibility is not enough.
2) The trigger condition is for the physical layer signal logic such as level, which can help the designer to understand the problem of the underlying timing, but if the designer is concerned about the problem of the higher level logic, it is difficult and tedious to set the condition trigger.
Disclosure of Invention
Technical problem to be solved
The technical problem to be solved by the invention is how to provide an IP core module debugging system based on FPGA, so as to solve the problems of complex and tedious debugging, higher cost, resource occupation, inflexibility and the like of the existing IP core module based on FPGA.
(II) technical scheme
In order to solve the technical problem, the invention provides an IP core module debugging system based on an FPGA, which comprises: the device comprises an auxiliary debugging unit and a data storage unit, wherein the auxiliary debugging unit comprises a mode switching module, a custom capturing module, a data storage module and a data loading module, the data storage unit comprises a data storage area of an IP core register and a buffer area, a debugging mode register and buffer area preset value area and a custom capturing condition area, and the IP core to be tested comprises the auxiliary debugging unit, a register unit and a buffer area unit for caching data;
the mode switching module is used for switching the IP core to be tested between a normal operation mode and a debugging mode;
the data loading module is responsible for loading preset information in a preset numerical value area and a user-defined capturing condition area of a debugging mode register and a buffer area in the data storage unit into an IP core register unit, an IP core buffer area unit and the user-defined capturing module;
the data storage module is responsible for storing data in an IP core register unit and an IP core buffer area unit into data storage areas of an IP core register and a buffer area in the data storage unit, and when the data storage is controlled by the self-defined capture module;
and the custom capturing module loads custom capturing conditions.
(III) advantageous effects
The invention provides an IP core module debugging system based on FPGA, which is characterized in that an auxiliary debugging unit is added in an IP core to be debugged, a data storage unit is arranged outside the IP core to be debugged, a data storage area, a preset data area and a self-defined capture condition area are arranged in the data storage unit, the auxiliary debugging unit can switch the IP core to be debugged into a debugging mode and read the preset information and capture conditions in the data storage unit, so that the functional performance of the IP core at the beginning in a state appointed by a designer is observed, and the data of the IP core to be debugged can be stored in the data storage unit, so that the IP core module can be debugged simply and conveniently at low cost. Further, by customizing the capture conditions, the IP core module may be debugged in various forms. Therefore, the problems that the existing IP core module based on the FPGA is complex and tedious to debug, high in cost, resource-occupied, not flexible enough and the like are solved.
Drawings
FIG. 1 is a schematic diagram of a debugging system according to the present invention;
FIG. 2 is a diagram of an auxiliary debug unit according to the present invention.
Detailed Description
In order to make the objects, contents and advantages of the present invention clearer, the following detailed description of the embodiments of the present invention will be made in conjunction with the accompanying drawings and examples.
The invention provides a debugging system and a method of an IP core module based on FPGA, wherein the system comprises: supplementary debugging unit, data memory cell, DMA control unit, wherein, supplementary debugging unit includes: the system comprises a mode switching module, a user-defined capturing module, a data storage module and a data loading module. The DMA control unit is connected to the auxiliary debugging unit and the data storage unit. The data storage unit comprises an IP core register and a data storage area of a buffer area, a debugging mode register and buffer area preset value area and a user-defined capture condition area, and the IP core to be tested comprises the auxiliary debugging unit, a register unit and a buffer area unit for caching data;
the mode switching module is used for switching the IP core to be tested between a normal operation mode and a debugging mode;
the data loading module is responsible for loading preset information in a preset numerical value area and a user-defined capturing condition area of a debugging mode register and a buffer area in the data storage unit into an IP core register unit, an IP core buffer area unit and the user-defined capturing module;
the data storage module is responsible for storing data in an IP core register unit and an IP core buffer area unit into data storage areas of an IP core register and a buffer area in the data storage unit, and when the data storage is controlled by the self-defined capture module;
and the custom capturing module loads custom capturing conditions.
Further, the data storage unit is a DDR.
Further, in the debug mode, the user stores configuration information in the data storage unit.
Furthermore, the data loading module stores the data storage area of the IP core register and the buffer area, and the start address of the custom capture condition area in the data storage unit.
Further, the data storage module stores the start address of the data storage area of the IP core register and the buffer in the data storage unit.
Further, the custom capture condition is determined by a specific combination of values of the IP core registers, buffers.
Further, custom capture conditions can set the number of cycles for which capture continues.
Further, the system also includes a DMA control unit connected to the auxiliary debugging unit and the data storage unit.
Further, the debug mode includes: the method comprises the steps of firstly, storing information in a register and a buffer area unit in an IP core to a data storage unit, secondly, loading the information in the data storage unit to the register or the buffer area of the IP core, and thirdly, loading a custom capture condition to a custom capture module of an auxiliary debugging unit.
The key points of the invention are as follows:
(1) And adding an auxiliary debugging unit in the IP core to be tested for realizing the function of the debugging system. Any IP core can be abstracted as a logical module including a register unit and a buffer unit for caching data.
(2) And the mode switching module in the auxiliary debugging unit can switch the IP core to be tested between a normal operation mode and a debugging mode. The normal operation mode is a mode when the IP core works normally, and the debugging mode is a mode used in a debugging state.
(3) In debug mode, the user may store configuration information in a data store, typically a DDR (other stores capable of providing the same functionality are possible).
(4) The data storage unit comprises a data storage area of an IP core register and a buffer area, a preset numerical value area of a debugging mode register and the buffer area, a self-defined capture condition area and the like.
(5) The debugging mode mainly comprises three functions, namely, the storage of information in a register and a buffer area unit in the IP core to a data storage unit, the loading of the information in the data storage unit to the register or the buffer area of the IP core, and the loading of a custom capture condition to a custom capture module of the auxiliary debugging unit.
(6) The data loading module is responsible for managing how to load the preset information in the data storage unit into the IP core register unit, the IP core buffer unit and the custom capture module, and stores the initial address of the information in the data storage unit. This function is mainly used to observe the functional behavior of the IP core at the beginning in the state specified by the designer.
(7) And the data storage module is used for managing how to store the data in the IP core register unit and the IP core buffer area into the data storage unit, controlling when the data is stored by the custom capture module, and storing the initial addresses of the IP core register and the IP core buffer area in the data storage unit.
(8) The custom capture module is loaded with custom capture conditions, the custom capture conditions are determined by specific numerical value combination of the IP core register and the buffer area, and the number of capture continuous cycles can be set, namely, the data of the IP core register and the buffer area in one time or a period of time can be recorded.
The above description is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, several modifications and variations can be made without departing from the technical principle of the present invention, and these modifications and variations should also be regarded as the protection scope of the present invention.

Claims (9)

1. An IP core module debugging system based on FPGA, which is characterized by comprising: the device comprises an auxiliary debugging unit and a data storage unit, wherein the auxiliary debugging unit comprises a mode switching module, a custom capture module, a data storage module and a data loading module, the data storage unit comprises a data storage area of an IP core register and a buffer area, a debugging mode register and buffer area preset value area and a custom capture condition area, and the IP core to be tested comprises the auxiliary debugging unit, a register unit and a buffer area unit for caching data;
the mode switching module is used for switching the IP core to be tested between a normal operation mode and a debugging mode;
the data loading module is responsible for loading preset information in a preset numerical value area and a user-defined capturing condition area of a debugging mode register and a buffer area in the data storage unit into an IP core register unit, the IP core buffer area unit and the user-defined capturing module respectively;
the data storage module is responsible for storing data in an IP core register unit and an IP core buffer area unit into data storage areas of an IP core register and a buffer area in the data storage unit, and when the data storage is controlled by the self-defined capture module;
and the custom capturing module loads custom capturing conditions.
2. The FPGA-based IP core module debugging system of claim 1 wherein the data storage unit is a DDR.
3. The FPGA-based IP core module debugging system of claim 1 wherein, in a debugging mode, a user stores configuration information in the data storage unit.
4. The FPGA-based IP core module debugging system of claim 1 wherein the data loading module stores the starting address of the data storage area of the IP core registers and buffers, the custom capture condition area in the data storage unit.
5. The FPGA-based IP core module debugging system of claim 1, wherein the data storage module stores a starting address of a data storage area of IP core registers and buffers in the data storage unit.
6. The FPGA-based IP core module debugging system of claim 1, wherein custom capture conditions are determined by specific numerical combinations of IP core registers, buffers.
7. The FPGA-based IP core module debugging system of claim 1 wherein the custom capture condition sets a number of cycles for a duration of capture.
8. The FPGA-based IP core module debugging system of claim 1 further comprising a DMA control unit coupled to the auxiliary debugging unit and the data storage unit.
9. The FPGA-based IP core module debugging system of any one of claims 1-8, wherein the debugging mode comprises: the method comprises the steps of firstly, storing information in a register and a buffer area unit in an IP core into a data storage unit, secondly, loading the information in the data storage unit into the register or the buffer area of the IP core, and thirdly, loading a custom capture condition into a custom capture module of an auxiliary debugging unit.
CN202011099186.2A 2020-10-14 2020-10-14 IP core module debugging system based on FPGA Active CN112255534B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011099186.2A CN112255534B (en) 2020-10-14 2020-10-14 IP core module debugging system based on FPGA

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011099186.2A CN112255534B (en) 2020-10-14 2020-10-14 IP core module debugging system based on FPGA

Publications (2)

Publication Number Publication Date
CN112255534A CN112255534A (en) 2021-01-22
CN112255534B true CN112255534B (en) 2023-03-24

Family

ID=74242208

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011099186.2A Active CN112255534B (en) 2020-10-14 2020-10-14 IP core module debugging system based on FPGA

Country Status (1)

Country Link
CN (1) CN112255534B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7536615B1 (en) * 2007-03-26 2009-05-19 Lattice Semiconductor Corporation Logic analyzer systems and methods for programmable logic devices
CN102841305A (en) * 2011-07-11 2012-12-26 北京飘石科技有限公司 System and method for debugging FPGA (field programmable gate array) in real time
CN111290889A (en) * 2018-11-21 2020-06-16 展讯通信(上海)有限公司 FPGA-based universal processor-oriented test method and system

Family Cites Families (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4147005B2 (en) * 1999-04-14 2008-09-10 株式会社ルネサステクノロジ Semiconductor integrated circuit, test method and manufacturing method thereof
TWI270769B (en) * 2004-11-15 2007-01-11 Sunplus Technology Co Ltd Trace, debug method and system for a processor
CN2739704Y (en) * 2004-11-19 2005-11-09 华南理工大学 PCI bus based IP nuclear simulating verification platform
US7627784B1 (en) * 2005-04-06 2009-12-01 Altera Corporation Modular processor debug core connection for programmable chip systems
CN101154183B (en) * 2006-09-29 2011-12-28 上海海尔集成电路有限公司 Microcontroller built-in type on-line simulation debugging system
CN101122880A (en) * 2007-09-17 2008-02-13 福建星网锐捷网络有限公司 Embedded type system of embed type debugging device and embedded type system debugging method
CN101458725B (en) * 2007-12-14 2012-01-25 上海海尔集成电路有限公司 Microcontroller chip and debug method thereof
CN101788644B (en) * 2009-12-30 2011-11-16 龙芯中科技术有限公司 Device and method for testing system-on-chip chip with multiple isomorphic IP cores
CN101915172A (en) * 2010-07-22 2010-12-15 中国船舶重工集团公司第七一一研究所 Digital to analog conversion IP core with flexible configuration
CN103000230B (en) * 2011-09-09 2016-04-13 上海华虹宏力半导体制造有限公司 A kind of test of nonvolatile memory IP core and checking development system
CN102495359B (en) * 2011-12-13 2014-04-23 曙光信息产业(北京)有限公司 System and method for debugging FPGA (field programmable gate array)
TWI472912B (en) * 2012-09-11 2015-02-11 Univ Nat Cheng Kung Debug control system and method by use of inside-core events served as trigger condition
CN105095040B (en) * 2014-05-08 2019-03-26 中国科学院微电子研究所 A kind of chip adjustment method and device
CN105024884A (en) * 2015-07-28 2015-11-04 深圳市同创国芯电子有限公司 System and method for debugging programmable logic device PLD
CN105787164A (en) * 2016-02-19 2016-07-20 深圳市同创国芯电子有限公司 Debugging method and system for programmable logic device
CN107290654A (en) * 2017-06-27 2017-10-24 济南浪潮高新科技投资发展有限公司 A kind of fpga logic test structure and method
CN107608846B (en) * 2017-08-30 2020-09-29 西安微电子技术研究所 Debugging link and debugging method for embedded TAP interface of FPGA
CN109240965B (en) * 2018-08-01 2021-02-12 清华大学 FPGA logic capturing processing display suite and use method thereof
CN111324493B (en) * 2018-12-13 2022-10-28 展讯通信(上海)有限公司 Development system and method for processor board level debugging
US10754743B2 (en) * 2018-12-17 2020-08-25 Arm Limited Apparatus and method using debug status storage element
CN109739705A (en) * 2018-12-29 2019-05-10 西安智多晶微电子有限公司 A kind of real-time debugging system of FPGA on piece and method
CN110032482A (en) * 2019-04-11 2019-07-19 盛科网络(苏州)有限公司 Sheet sand covered device and method
CN111123083B (en) * 2019-12-06 2022-04-29 国家电网有限公司 Test system and method for FPGA PLL IP core

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7536615B1 (en) * 2007-03-26 2009-05-19 Lattice Semiconductor Corporation Logic analyzer systems and methods for programmable logic devices
CN102841305A (en) * 2011-07-11 2012-12-26 北京飘石科技有限公司 System and method for debugging FPGA (field programmable gate array) in real time
CN111290889A (en) * 2018-11-21 2020-06-16 展讯通信(上海)有限公司 FPGA-based universal processor-oriented test method and system

Also Published As

Publication number Publication date
CN112255534A (en) 2021-01-22

Similar Documents

Publication Publication Date Title
US6122762A (en) Memory interface device and method for supporting debugging
US6854029B2 (en) DSP bus monitoring apparatus and method
JP6557220B2 (en) Programmable interface-based verification and debugging
US7610528B2 (en) Configuring flash memory
JP4335999B2 (en) Semiconductor integrated circuit device with built-in processor
US20040130944A1 (en) Programming flash memory via a boundary scan register
US7313730B1 (en) Configuration logic for embedded software
US5586279A (en) Data processing system and method for testing a data processor having a cache memory
CN109901059A (en) A kind of Complex Programmable Logic Devices repeats configuration test method and electronic equipment
US20040030970A1 (en) Test platform device and method for testing embedded memory of system on chip
US6421813B1 (en) Method and apparatus for providing visibility and control over components within a programmable logic circuit for emulation purposes
CN112255534B (en) IP core module debugging system based on FPGA
US7617428B2 (en) Circuits and associated methods for improved debug and test of an application integrated circuit
KR20200033881A (en) Logic analyzer for integrated circuits
US5941995A (en) Reloading state analyzer
US20050192791A1 (en) Method for emulating an integrated circuit and semiconductor chip for practicing the method
CN110717311A (en) FPGA internal access system and FPGA verification method
CN111913097B (en) Test circuit and test method for testing SoC function and SoC
JPH0863374A (en) Tracing function incorporated type lsi
US20070032999A1 (en) System and method for emulating hardware failures and method of testing system software incorporating the same
US20210173989A1 (en) Simulation signal viewing method and system for digital product
US20210173994A1 (en) Method and system for viewing simulation signals of a digital product
CN117076337B (en) Data transmission method and device, electronic equipment and readable storage medium
CN117234831B (en) Chip function test method and system based on multi-core CPU
CN209980233U (en) Simulation debugging device for debugging security check state of equipment

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