CN101770417A - Hardware fault injection system and fault injection method based on JTAG - Google Patents
Hardware fault injection system and fault injection method based on JTAG Download PDFInfo
- Publication number
- CN101770417A CN101770417A CN 201010300340 CN201010300340A CN101770417A CN 101770417 A CN101770417 A CN 101770417A CN 201010300340 CN201010300340 CN 201010300340 CN 201010300340 A CN201010300340 A CN 201010300340A CN 101770417 A CN101770417 A CN 101770417A
- Authority
- CN
- China
- Prior art keywords
- data
- module
- jtag
- protocol conversion
- fault
- 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
Links
- 238000002347 injection Methods 0.000 title claims abstract description 46
- 239000007924 injection Substances 0.000 title claims abstract description 46
- 238000000034 method Methods 0.000 title claims abstract description 32
- 238000006243 chemical reaction Methods 0.000 claims abstract description 68
- 230000003139 buffering effect Effects 0.000 claims abstract description 7
- 238000012856 packing Methods 0.000 claims description 13
- 239000013078 crystal Substances 0.000 claims description 9
- 238000004891 communication Methods 0.000 claims description 6
- 230000007547 defect Effects 0.000 abstract 1
- 230000005540 biological transmission Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 3
- 238000012360 testing method Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 1
- 230000008676 import Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
- 239000000523 sample Substances 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Images
Landscapes
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
The invention provides a hardware fault injection system and a fault injection method based on JTAG, which relate to a fault injection system and a fault injection method. The invention solves the problems that various protocols and various chips can not be effectively supported in the existing fault injection device and the fault injection method. The hardware fault injection system comprises a host computer, a USB interface module, a protocol conversion module and a hardware fault injection module. The fault injection method comprises the following processes: an application layer software module in the host computer generates fault data to be injected and protocol conversion control data and sends the fault data to be injected and the protocol conversion control data to the protocol conversion module through the USB interface module after combining the fault data to be injected and the protocol conversion control data; the protocol conversion module carries out USB buffering and USB protocol analysis on the combined data, and then carries out ITP protocol package; and finally, the hardware fault injection module injects the JTAG fault data into the target chip from a JTAG port after carrying out the ITP protocol analysis on the data. The invention overcomes the defects in the prior art, and can be used in the technical filed of fault injection of different chips supported by different regulation protocols.
Description
Technical field
The present invention relates to a kind of hardware fault injected system and fault filling method.
Background technology
It is the important technical of carrying out product test and system verification that fault is injected, and comes the accelerated test process by conscious to system's injection fault.It generally all is the fault injection of pin level that hardware fault is injected, and reaches to system by the curtage that changes pin and injects fault, has the time precision height, is easy to advantages such as control.Lack the fault injector that effectively to support the various protocols various chips in the market.
Summary of the invention
The objective of the invention is to solve the problem that effectively to support various protocols, various chips in present fault injector and the fault filling method, a kind of hardware fault injected system and fault filling method based on JTAG is provided.
Hardware fault injected system based on JTAG, it comprises host computer, usb interface module, protocol conversion module and hardware fault injection module, described host computer is connected with protocol conversion module by usb interface module, and the ITP port of described protocol conversion module is connected with the hardware fault injection module.
Fault filling method based on JTAG, it utilizes the hardware fault injected system based on JTAG to realize, described hardware fault injected system based on JTAG comprises host computer, usb interface module, protocol conversion module and hardware fault injection module, described host computer is connected with protocol conversion module by usb interface module, the ITP port of described protocol conversion module is connected with the hardware fault injection module, and host computer is embedded in to be useful on and generates the fault data to be injected and the application layer software module of protocol conversion control data;
Based on the fault filling method of JTAG, its detailed process is:
The application layer software module that is embedded with in step 1, the host computer generates fault data and protocol conversion control data to be injected, and according to protocol analysis and conversion sequence fault data described to be injected and protocol conversion control data are made up, the data after will making up then are sent to protocol conversion module by usb interface module;
Fault injector of the present invention and the method for carrying out the fault injection have the advantage of supporting various protocols and various chips.
Description of drawings
Fig. 1 is the structural representation of the hardware fault injected system of embodiment one; Fig. 2 is the structural representation of the hardware fault injected system of embodiment two; Fig. 3 is the structural representation of the hardware fault injected system of embodiment three; Fig. 4 is the schematic block circuit diagram of the hardware fault injected system of embodiment four; Fig. 5 is the process flow diagram of the fault filling method of embodiment five; Fig. 6 is the process flow diagram of step 2 in the embodiment six.
Embodiment
Embodiment one: present embodiment is described in conjunction with Fig. 1, the hardware fault injected system based on JTAG of present embodiment, it comprises host computer 1, usb interface module 2, protocol conversion module 3 and hardware fault injection module 4, described host computer 1 is connected with protocol conversion module 3 by usb interface module 2, and the ITP port of described protocol conversion module 3 is connected with hardware fault injection module 4.
Protocol conversion module in the present embodiment can adopt the CPLD chip to realize.
Hardware fault injection module 4 is used for the data that receive are carried out obtaining JTAG fault data and order data behind the ITP protocol analysis, and is used for according to described order data the JTAG fault data being exported from jtag port.
Described protocol conversion control data comprises: protocol conversion module and ITP port communication control data, ITP agreement control data and standard JTAG agreement control data.Described protocol conversion control data is used to point out protocol conversion module 3 and 4 pairs of data of hardware fault injection module to carry out the command type data of respective handling, and it is the control type data.
Objective chip is Pentium IV processor chips.Carry out because fault is injected to be under the running status in objective chip, so connect outside with objective chip pin line on the basis of mainboard commonly used, adopt hardware to realize operation and debugging module, the JTAG data that are used under the ITP agreement are imported.Fault is injected data and is comprised 4 classes: protocol conversion module and ITP port communication control data, ITP agreement control data, standard JTAG agreement control data and based on the JTAG fault injection data of pin level.Wherein, protocol conversion module and ITP port communication control data are used for the 8 bit parallel data of importing from the USB buffer chip are controlled, and serial sends to the ITP port; ITP agreement control data is used for passing on the control order that jtag port is carried out or interrupted to objective chip JTAG debugging end; Standard JTAG agreement control data is used for sending order to the JTAG debugging interface, the transmission of control JTAG data; JTAG fault based on the pin level is injected data, imports in the hardware chip pin under JTAG order control.
Hardware fault injection module 4, comprise ITP interface that is connected with protocol conversion module and the CPU base that lays respectively at the circuit board front and back, the front base inserts CPU, by circuit pin is connected to back side base, and back side base inserts in the CPU socket of general mainboard by contact pin.
Wherein, ITP is the abbreviation abbreviation of In-Target Probe; JTAG is that the abbreviation of Joint Test Action Group is called for short.
In the present embodiment, the ITP agreement can also be other debugging agreements based on JTAG of this area, so the capable of supporting several protocols and various chips of the fault injector of present embodiment.
The present invention is by the setting of host computer end software parameter and carry out protocol conversion by FPGA (Field Programmable Gate Array) in protocol conversion module, has realized the pin level fault injector of a universal flexible.
Embodiment two: in conjunction with Fig. 2 present embodiment is described, different with embodiment one is that the protocol conversion module 3 of present embodiment is made up of crystal oscillator 31, first chip 32, second chip 33 and ITP interface unit 34;
The clock signal output terminal of described crystal oscillator 31 connects the clock signal input terminal of first chip 32, the usb data serial port of described first chip 32 is connected with the usb data serial port of usb interface module 2, the parallel data port of first chip 32 is connected with the parallel data port of second chip 33, and second chip 33 is connected with hardware fault injection module 4 by ITP interface unit 34.
Described crystal oscillator 31 is used to provide reference clock; First chip 32 is used to finish buffering and protocol analysis to usb data; Second chip 33 be used for the data that obtain after the usb protocol parsing are carried out the ITP protocol packing, and the data after will packing is exported to hardware fault injection module 4.
Embodiment three: present embodiment is described in conjunction with Fig. 3, different with embodiment two is, present embodiment also comprises JTAG download interface module 5, and the data input/output end port of described JTAG download interface module 5 is connected with the JTAG data download port of protocol conversion module 3.
Embodiment four: in conjunction with Fig. 4 present embodiment is described, present embodiment is a specific embodiment of embodiment three, and present embodiment also comprises reset circuit 6.
Present embodiment also comprises power supply, and described power supply is used to each circuit that working power is provided.In the present embodiment, first chip 32 is selected the FT245R chip for use, and second chip 33 is selected EPM240 type CPLD for use.
Embodiment five: present embodiment is described in conjunction with Fig. 5, the fault filling method based on JTAG of present embodiment, it utilizes the hardware fault injected system based on JTAG to realize, described hardware fault injected system based on JTAG comprises host computer 1, usb interface module 2, protocol conversion module 3 and hardware fault injection module 4, described host computer 1 is connected with protocol conversion module 3 by usb interface module 2, the ITP port of described protocol conversion module 3 is connected with hardware fault injection module 4, and host computer 1 is embedded in to be useful on and generates the fault data to be injected and the application layer software module of protocol conversion control data;
Based on the fault filling method of JTAG, its detailed process is:
The application layer software module that is embedded with in step 1, the host computer 1 generates fault data and protocol conversion control data to be injected, and according to protocol analysis and conversion sequence fault data described to be injected and protocol conversion control data are made up, the data after will making up then are sent to protocol conversion module 3 by usb interface module 2;
Data after step 2,3 pairs of combinations of protocol conversion module are carried out the USB buffering and usb protocol is resolved, and the data that obtain after then usb protocol being resolved are carried out the ITP protocol packing, and the data after will packing are again exported to hardware fault injection module 4;
Described objective chip is Pentium IV processor chips.Debugging module in the objective chip carries out the ITP protocol analysis to the data that receive, and the data behind the ITP protocol analysis is handled again.Objective chip utilizes the JTAG debug port to come the injection of control fault data and result's recovery, wherein removal process and above process contrary as a result, finally inject result data, carry out analyzing and processing again by host computer end application layer software module 1 read failure from usb interface module 2.
Embodiment six: present embodiment is described in conjunction with Fig. 6, present embodiment be to embodiment five based on the further specifying of the fault filling method of JTAG, described protocol conversion module 3 is by crystal oscillator 31, first chip 32, second chip 33 and ITP interface unit 34;
The detailed process of the described content of step 2 is:
Data transmission between described first chip 32 and second chip 33 realizes by the mode of shaking hands.
Embodiment seven: present embodiment be to embodiment five or six based on the further specifying of the fault filling method of JTAG, described protocol conversion control data comprises: protocol conversion module 3 and ITP port communication control data, ITP agreement control data and standard JTAG agreement control data.Wherein, protocol conversion module 3 and ITP port communication control data are used for the 8 bit parallel data of importing from the USB buffer chip are controlled, and serial sends to the ITP port; ITP agreement control data is used for passing on the control order that jtag port is carried out or interrupted to objective chip JTAG debugging end; Standard JTAG agreement control data is used for sending order to the JTAG debugging interface, the transmission of control JTAG data.
Claims (6)
1. based on the hardware fault injected system of JTAG, it is characterized in that it comprises host computer (1), usb interface module (2), protocol conversion module (3) and hardware fault injection module (4), described host computer (1) is connected with protocol conversion module (3) by usb interface module (2), and the ITP port of described protocol conversion module (3) is connected with hardware fault injection module (4).
2. the hardware fault injected system based on JTAG according to claim 1 is characterized in that described protocol conversion module (3) is made up of crystal oscillator (31), first chip (32), second chip (33) and ITP interface unit (34);
The clock signal output terminal of described crystal oscillator (31) connects the clock signal input terminal of first chip (32), the usb data serial port of described first chip (32) is connected with the usb data serial port of usb interface module (2), the parallel data port of first chip (32) is connected with the parallel data port of second chip (33), and second chip (33) is connected with hardware fault injection module (4) by ITP interface unit (34).
3. the hardware fault injected system based on JTAG according to claim 2, it is characterized in that it also comprises JTAG download interface module (5), the data input/output end port of described JTAG download interface module (5) is connected with the JTAG data download port of protocol conversion module (3).
4. based on the fault filling method of JTAG, it is characterized in that it utilizes the hardware fault injected system based on JTAG to realize, described hardware fault injected system based on JTAG comprises host computer (1), usb interface module (2), protocol conversion module (3) and hardware fault injection module (4), described host computer (1) is connected with protocol conversion module (3) by usb interface module (2), the ITP port of described protocol conversion module (3) is connected with hardware fault injection module (4), and host computer (1) is embedded in to be useful on and generates the fault data to be injected and the application layer software module of protocol conversion control data;
Based on the fault filling method of JTAG, its detailed process is:
The application layer software module that is embedded with in step 1, the host computer (1) generates fault data and protocol conversion control data to be injected, and according to protocol analysis and conversion sequence fault data described to be injected and protocol conversion control data are made up, the data after will making up then are sent to protocol conversion module (3) by usb interface module (2);
Step 2, protocol conversion module (3) carry out USB buffering and usb protocol parsing to the data after making up, and the data that obtain after then usb protocol being resolved are carried out the ITP protocol packing, and the data after will packing are again exported to hardware fault injection module (4);
Step 3, hardware fault injection module (4) carry out obtaining JTAG fault data and order data behind the ITP protocol analysis to the data that receive, and according to described order data the JTAG fault data are injected objective chip from jtag port.
5. the fault filling method based on JTAG according to claim 4 is characterized in that, described protocol conversion module (3) is made up of crystal oscillator (31), first chip (32), second chip (33) and ITP interface unit (34);
The detailed process of the described content of step 2 is:
Step 2 one, first chip (32) are finished the USB buffering and the usb protocol of the data after the described combination are resolved, be unit then with the byte, be beat and, usb protocol is resolved the data that the back obtains be sent to second chip (33) in the mode of 8 bit parallels with the clock of crystal oscillator (31);
Step 2 two, second chip (33) carry out the ITP protocol packing to the data that receive, and the data after will packing send to hardware fault injection module (4) by ITP interface unit (34).
6. according to claim 4 or 5 described fault filling methods, it is characterized in that described protocol conversion control data comprises: protocol conversion module (3) and ITP port communication control data, ITP agreement control data and standard JTAG agreement control data based on JTAG.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010300340 CN101770417B (en) | 2010-01-15 | 2010-01-15 | Hardware fault injection system and fault injection method based on JTAG |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010300340 CN101770417B (en) | 2010-01-15 | 2010-01-15 | Hardware fault injection system and fault injection method based on JTAG |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101770417A true CN101770417A (en) | 2010-07-07 |
CN101770417B CN101770417B (en) | 2013-04-10 |
Family
ID=42503290
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201010300340 Expired - Fee Related CN101770417B (en) | 2010-01-15 | 2010-01-15 | Hardware fault injection system and fault injection method based on JTAG |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101770417B (en) |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102270173A (en) * | 2011-07-21 | 2011-12-07 | 哈尔滨工业大学 | Fault injection tool based on SCSI (small computer system interface) driver layer |
CN102412909A (en) * | 2010-09-26 | 2012-04-11 | 北京旋极信息技术股份有限公司 | Fault injection equipment |
CN102594589A (en) * | 2012-02-01 | 2012-07-18 | 北京经纬恒润科技有限公司 | Ethernet fault injection method, device and system |
CN102624581A (en) * | 2011-12-15 | 2012-08-01 | 上海卫星工程研究所 | Connecting device of ground testing equipment of aircraft |
CN102769456A (en) * | 2011-05-06 | 2012-11-07 | 北京旋极信息技术股份有限公司 | Fault injection circuit capable of isolating input/output interface |
CN103001818A (en) * | 2011-09-16 | 2013-03-27 | 北京旋极信息技术股份有限公司 | Fault injection method and system |
CN103685292A (en) * | 2013-12-20 | 2014-03-26 | 哈尔滨工业大学 | Universal device and method for protocol conversion |
CN103913701A (en) * | 2014-04-18 | 2014-07-09 | 北京航空航天大学 | Method for manufacturing testability experiment circuit board for supporting direct fault injection |
CN106383303A (en) * | 2016-08-26 | 2017-02-08 | 哈尔滨工业大学 | Observation point and concurrence based fault injection simulation method and device |
CN107526351A (en) * | 2017-07-27 | 2017-12-29 | 中国航空综合技术研究所 | A kind of universal fault filling method and its device based on JTAG |
CN108107351A (en) * | 2017-12-06 | 2018-06-01 | 西安智多晶微电子有限公司 | Adjustment method, debugger and the system of JTAG debuggers |
CN109033891A (en) * | 2018-06-21 | 2018-12-18 | 北京智芯微电子科技有限公司 | Equipment and its security attack test method for SPI interface chip secure attack test |
CN112307695A (en) * | 2020-09-22 | 2021-02-02 | 北京九天翱翔科技有限公司 | FPGA-based universal digital circuit fault simulation injection system and method |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100351638C (en) * | 2003-05-01 | 2007-11-28 | 中兴通讯股份有限公司 | Boundary scan testing device for integrated circuit |
CN100428174C (en) * | 2006-10-31 | 2008-10-22 | 哈尔滨工业大学 | Embedded fault injection system and its method |
CN101334754A (en) * | 2008-08-05 | 2008-12-31 | 浙江大学 | Fault infusion based embedded system evaluation method |
-
2010
- 2010-01-15 CN CN 201010300340 patent/CN101770417B/en not_active Expired - Fee Related
Cited By (20)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102412909A (en) * | 2010-09-26 | 2012-04-11 | 北京旋极信息技术股份有限公司 | Fault injection equipment |
CN102769456A (en) * | 2011-05-06 | 2012-11-07 | 北京旋极信息技术股份有限公司 | Fault injection circuit capable of isolating input/output interface |
CN102769456B (en) * | 2011-05-06 | 2015-03-18 | 北京旋极信息技术股份有限公司 | Fault injection circuit capable of isolating input/output interface |
CN102270173A (en) * | 2011-07-21 | 2011-12-07 | 哈尔滨工业大学 | Fault injection tool based on SCSI (small computer system interface) driver layer |
CN103001818A (en) * | 2011-09-16 | 2013-03-27 | 北京旋极信息技术股份有限公司 | Fault injection method and system |
CN103001818B (en) * | 2011-09-16 | 2015-09-02 | 北京旋极信息技术股份有限公司 | A kind of fault filling method and system |
CN102624581A (en) * | 2011-12-15 | 2012-08-01 | 上海卫星工程研究所 | Connecting device of ground testing equipment of aircraft |
CN102624581B (en) * | 2011-12-15 | 2015-02-18 | 上海卫星工程研究所 | Connecting device of ground testing equipment of aircraft |
CN102594589B (en) * | 2012-02-01 | 2014-05-07 | 北京经纬恒润科技有限公司 | Ethernet fault injection method, device and system |
CN102594589A (en) * | 2012-02-01 | 2012-07-18 | 北京经纬恒润科技有限公司 | Ethernet fault injection method, device and system |
CN103685292A (en) * | 2013-12-20 | 2014-03-26 | 哈尔滨工业大学 | Universal device and method for protocol conversion |
CN103913701A (en) * | 2014-04-18 | 2014-07-09 | 北京航空航天大学 | Method for manufacturing testability experiment circuit board for supporting direct fault injection |
CN103913701B (en) * | 2014-04-18 | 2016-05-18 | 北京航空航天大学 | A kind of testability hookup board manufacturing method of supporting that fault is directly injected |
CN106383303A (en) * | 2016-08-26 | 2017-02-08 | 哈尔滨工业大学 | Observation point and concurrence based fault injection simulation method and device |
CN107526351A (en) * | 2017-07-27 | 2017-12-29 | 中国航空综合技术研究所 | A kind of universal fault filling method and its device based on JTAG |
CN108107351A (en) * | 2017-12-06 | 2018-06-01 | 西安智多晶微电子有限公司 | Adjustment method, debugger and the system of JTAG debuggers |
CN109033891A (en) * | 2018-06-21 | 2018-12-18 | 北京智芯微电子科技有限公司 | Equipment and its security attack test method for SPI interface chip secure attack test |
CN109033891B (en) * | 2018-06-21 | 2020-05-19 | 北京智芯微电子科技有限公司 | Equipment for security attack test of SPI interface chip and security attack test method thereof |
CN112307695A (en) * | 2020-09-22 | 2021-02-02 | 北京九天翱翔科技有限公司 | FPGA-based universal digital circuit fault simulation injection system and method |
CN112307695B (en) * | 2020-09-22 | 2024-03-08 | 北京九天翱翔科技有限公司 | FPGA-based universal digital circuit fault simulation injection system and method |
Also Published As
Publication number | Publication date |
---|---|
CN101770417B (en) | 2013-04-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101770417B (en) | Hardware fault injection system and fault injection method based on JTAG | |
US8281280B2 (en) | Method and apparatus for versatile controllability and observability in prototype system | |
CN102662835B (en) | A kind of program debugging method for embedded system and embedded system | |
CN105550119B (en) | A kind of simulator based on JTAG protocol | |
CN101963934B (en) | Method for debugging 8051 core-based system on chip (SOC) on line | |
CN203260029U (en) | System chip prototype verification debugging device based on field programmable gate array (FPGA) | |
CN108983077B (en) | Circuit board test system and test method based on JTAG link | |
CN102103535A (en) | Multicore processor, and system and method for debugging multicore processor | |
CN109885905B (en) | Verification system for improving function verification efficiency of digital circuit | |
CN101865976A (en) | Boundary scanning test system and test method | |
CN107331421A (en) | A kind of SD card test system and method based on FPGA | |
CN101114249A (en) | I2C bus testing apparatus of mainboard and method thereof | |
CN111008102B (en) | FPGA accelerator card high-speed interface SI test control device, system and method | |
WO2019173018A1 (en) | Non-intrusive on-chip debugger with remote protocol support | |
CN111090039A (en) | FPGA function test method and device | |
CN106709120A (en) | PCIE (peripheral component interface express) verification method | |
CN106681877A (en) | System and method for chip debugging and system chip | |
CN113364747B (en) | Debugging method, device and system and data set generation method and device | |
CN111060807B (en) | High-speed integrated circuit test platform based on SoC and test method thereof | |
CN104866640A (en) | Full FIFO (first in, first out) circuit design method and universal test bench of method | |
CN103257606A (en) | USB interface high-speed and real-time sampling logic analyzer | |
CN108107351A (en) | Adjustment method, debugger and the system of JTAG debuggers | |
CN107526351A (en) | A kind of universal fault filling method and its device based on JTAG | |
CN103823781A (en) | Downloading device for field-programmable gate array logical code | |
CN103425582A (en) | QPI (Quick Path Interconnect) bus signal integrity testing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20130410 |
|
CF01 | Termination of patent right due to non-payment of annual fee |