CN102222032A - Device and method for fault injection of 1394 bus - Google Patents
Device and method for fault injection of 1394 bus Download PDFInfo
- Publication number
- CN102222032A CN102222032A CN2011101325933A CN201110132593A CN102222032A CN 102222032 A CN102222032 A CN 102222032A CN 2011101325933 A CN2011101325933 A CN 2011101325933A CN 201110132593 A CN201110132593 A CN 201110132593A CN 102222032 A CN102222032 A CN 102222032A
- Authority
- CN
- China
- Prior art keywords
- module
- input
- fault
- fault injection
- output end
- 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 125
- 239000007924 injection Substances 0.000 title claims abstract description 125
- 238000000034 method Methods 0.000 title claims abstract description 28
- 238000004891 communication Methods 0.000 claims description 25
- 238000007405 data analysis Methods 0.000 claims description 17
- 238000011084 recovery Methods 0.000 claims description 15
- 230000008569 process Effects 0.000 claims description 11
- 239000000725 suspension Substances 0.000 claims 1
- 238000012360 testing method Methods 0.000 abstract description 7
- 238000011156 evaluation Methods 0.000 abstract description 4
- 230000005540 biological transmission Effects 0.000 description 11
- 238000006243 chemical reaction Methods 0.000 description 4
- 238000013461 design Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 230000002457 bidirectional effect Effects 0.000 description 3
- 238000010998 test method Methods 0.000 description 3
- 230000015572 biosynthetic process Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 239000013078 crystal Substances 0.000 description 1
- 230000001934 delay Effects 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000002474 experimental method Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000011158 quantitative evaluation Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 230000008054 signal transmission Effects 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Images
Landscapes
- Maintenance And Management Of Digital Transmission (AREA)
Abstract
一种1394总线的故障注入装置及方法,属于电子测试领域,本发明为解决现有技术的测试方法没有综合考虑故障模式各方面因素,因此其评价结果准确性差的问题。本发明的FPGA的逻辑保存输入输出端与EEPROM的输入输出端相连,FPGA的数据缓冲输入输出端与SRAM的输入输出端相连,FPGA的第一1394芯片输入输出端与第一物理层接口芯片的第一输入输出端相连,第一物理层接口芯片的第二输入输出端为第一1394总线接口,FPGA的第二1394芯片输入输出端与第二物理层接口芯片的第一输入输出端相连,第二物理层接口芯片的第二输入输出端为第二1394总线接口,FPGA通过RS232串行总线与宿主机相连。
A 1394 bus fault injection device and method, belonging to the field of electronic testing, the invention solves the problem that the testing method in the prior art does not comprehensively consider various factors of the fault mode, so the accuracy of the evaluation result is poor. The logical storage input and output terminals of FPGA of the present invention are connected with the input and output terminals of EEPROM, the data buffer input and output terminals of FPGA are connected with the input and output terminals of SRAM, and the first 1394 chip input and output terminals of FPGA are connected with the first physical layer interface chip. The first input and output terminals are connected, the second input and output terminals of the first physical layer interface chip are the first 1394 bus interface, the second 1394 chip input and output terminals of the FPGA are connected with the first input and output terminals of the second physical layer interface chip, The second input and output end of the second physical layer interface chip is the second 1394 bus interface, and the FPGA is connected to the host machine through the RS232 serial bus.
Description
技术领域technical field
本发明涉及一种1394总线的故障注入装置及方法,属于电子测试领域。The invention relates to a fault injection device and method for a 1394 bus, belonging to the field of electronic testing.
背景技术Background technique
随着电子技术的迅速发展、电子设备可靠性要求的提高,测试性成了新的研究点。测试性的内涵主要包括自动测试设备(ATE)和机内测试(BIT)两个方面。BIT是指系统或设备内部提供的检测和隔离故障的能力,为了评价BIT是否达到测试性设计指标要求,就必须对BIT的能力进行验证,而故障注入技术则是验证BIT测试性指标的有效手段。故障注入技术通过人为引入故障,观察BIT检测、隔离故障的能力,从而验证系统的测试性指标是否符合设计要求,并根据测试结果系统的设计做出改进。With the rapid development of electronic technology and the improvement of reliability requirements of electronic equipment, testability has become a new research point. The connotation of testability mainly includes two aspects of automatic test equipment (ATE) and built-in test (BIT). BIT refers to the ability to detect and isolate faults provided by the system or equipment. In order to evaluate whether BIT meets the requirements of testability design indicators, the ability of BIT must be verified, and fault injection technology is an effective means to verify BIT testability indicators. . Fault injection technology observes the ability of BIT to detect and isolate faults by artificially introducing faults, so as to verify whether the testability indicators of the system meet the design requirements, and make improvements to the system design according to the test results.
IEEE 1394前身是1986年由苹果电脑(Apple)公司起草的一项技术,苹果公司称其为火线(FireWire),1995年IEEE正式把它作为一种工业标准公布,官方名称为高性能串行总线IEEE 1394-1995标准。2000年IEEE协会又公布了针对IEEE 1394-1995标准的修订版——IEEE 1394a。目前最新的版本是2002年推出的IEEE 1394b标准。The predecessor of IEEE 1394 was a technology drafted by Apple Computer (Apple) in 1986. Apple called it FireWire (FireWire). In 1995, IEEE officially announced it as an industrial standard. The official name is high-performance serial bus. IEEE 1394-1995 standard. In 2000, the IEEE Association announced a revised version of the IEEE 1394-1995 standard——IEEE 1394a. The latest version is the IEEE 1394b standard launched in 2002.
但现有技术的测试方法没有综合考虑故障模式的完整性、注入的通用性、有效性和实用性等各方面因素,因此其评价结果准确性差。However, the test methods in the prior art do not comprehensively consider various factors such as the integrity of the failure mode, the versatility of the injection, the effectiveness, and the practicability, so the accuracy of the evaluation results is poor.
发明内容Contents of the invention
本发明目的是为了解决现有技术的测试方法没有综合考虑故障模式的完整性、注入的通用性、有效性和实用性等各方面因素,因此其评价结果准确性差的问题,提供了一种1394总线的故障注入装置及方法。The purpose of the present invention is to solve the problem that the test method in the prior art does not comprehensively consider the integrity of the failure mode, the versatility of the injection, the effectiveness, and the practicality, so the accuracy of the evaluation result is poor, and a 1394 test method is provided. Fault injection device and method for bus.
本发明所述一种1394总线的故障注入装置,它包括1394故障注入器和宿主机,1394故障注入器包括FPGA、第一物理层接口芯片、第二物理层接口芯片、SRAM和EEPROM,A kind of fault injection device of 1394 bus of the present invention, it comprises 1394 fault injectors and host machine, 1394 fault injectors comprise FPGA, the first physical layer interface chip, the second physical layer interface chip, SRAM and EEPROM,
FPGA的逻辑保存输入输出端与EEPROM的输入输出端相连,FPGA的数据缓冲输入输出端与SRAM的输入输出端相连,FPGA的第一1394芯片输入输出端与第一物理层接口芯片的第一输入输出端相连,第一物理层接口芯片的第二输入输出端为第一1394总线接口,FPGA的第二1394芯片输入输出端与第二物理层接口芯片的第一输入输出端相连,第二物理层接口芯片的第二输入输出端为第二1394总线接口,The logic storage input and output terminals of the FPGA are connected to the input and output terminals of the EEPROM, the data buffer input and output terminals of the FPGA are connected to the input and output terminals of the SRAM, and the first 1394 chip input and output terminals of the FPGA are connected to the first physical layer interface chip. The output end is connected, the second input and output end of the first physical layer interface chip is the first 1394 bus interface, the second 1394 chip input and output end of the FPGA is connected with the first input and output end of the second physical layer interface chip, and the second physical layer interface chip The second input and output end of the layer interface chip is the second 1394 bus interface,
FPGA通过RS232串行总线与宿主机相连。The FPGA is connected to the host machine through the RS232 serial bus.
基于所述一种1394总线的故障注入装置的故障注入方法,该方法包括以下步骤:The fault injection method based on the fault injection device of a kind of 1394 bus, the method may further comprise the steps:
步骤一、宿主机接收用户的输入命令,并将故障注入命令和故障参数发送给故障注入器;
宿主机发送给故障注入器的故障注入命令和故障参数的形成过程为:The formation process of the fault injection command and fault parameters sent by the host to the fault injector is:
步骤11、用户界面模块接收用户输入的故障注入命令和参数,并发送给参数收集模块;Step 11, the user interface module receives the fault injection command and parameters input by the user, and sends them to the parameter collection module;
步骤12、参数收集模块将收集到的故障注入命令和参数发送给故障注入模块;Step 12, the parameter collection module sends the collected fault injection command and parameters to the fault injection module;
步骤13、故障注入模块识别故障注入的命令和参数,并将其转化成数据流分别传输给通信模块和数据分析模块;Step 13, the fault injection module identifies commands and parameters for fault injection, and converts them into data streams and transmits them to the communication module and the data analysis module respectively;
步骤14、通信模块通过RS232串行总线将故障注入命令和参数发送给1394故障注入器,进行故障注入。Step 14, the communication module sends the fault injection command and parameters to the 1394 fault injector through the RS232 serial bus to perform fault injection.
步骤二、故障注入器将数据返回给宿主机,获取故障注入结果。Step 2: The fault injector returns the data to the host to obtain the fault injection result.
故障注入结果的获取过程为:The process of obtaining fault injection results is as follows:
步骤21、通信模块接收1394故障注入器的反馈数据,并发送给结果回收模块;Step 21, the communication module receives the feedback data of the 1394 fault injector, and sends it to the result recovery module;
步骤22、数据分析模块接收结果回收模块的发送的反馈数据,并和故障注入模块发送的故障注入的命令和参数进行对比分析,来验证故障注入的正确性,获取故障注入结果。Step 22, the data analysis module receives the feedback data sent by the result recovery module, and compares and analyzes it with the fault injection command and parameters sent by the fault injection module to verify the correctness of the fault injection and obtain the fault injection result.
本发明的优点:本发明是用来对IEEE 1394总线的BIT、ATE等进行实验验证。通过人为地将故障引入到IEEE 1394总线上,并观察、分析总线系统在被注入故障情况下的行为,为测试性实验提供定性或定量的评价结果,获取的评价结果准确。Advantages of the present invention: the present invention is used for carrying out experimental verification to BIT, ATE etc. of IEEE 1394 bus. By artificially introducing faults into the IEEE 1394 bus, and observing and analyzing the behavior of the bus system when the fault is injected, it provides qualitative or quantitative evaluation results for test experiments, and the obtained evaluation results are accurate.
附图说明Description of drawings
图1为本发明所述一种1394总线的故障注入装置的结构示意图;Fig. 1 is the structural representation of the fault injection device of a kind of 1394 bus of the present invention;
图2为FPGA的结构示意图;Fig. 2 is the structural representation of FPGA;
图3是宿主机的结构示意图;Fig. 3 is a structural schematic diagram of the host computer;
图4是FPGA与第一物理层接口芯片或第二物理层接口芯片的连接结构示意图;Fig. 4 is the schematic diagram of the connection structure of FPGA and the first physical layer interface chip or the second physical layer interface chip;
图5是本发明所述的一种1394总线的故障注入方法的流程图;Fig. 5 is the flow chart of the fault injection method of a kind of 1394 bus of the present invention;
图6是宿主机发送给故障注入器的故障注入命令和故障参数的形成过程的流程图;Fig. 6 is a flow chart of the forming process of the fault injection command and the fault parameter sent by the host computer to the fault injector;
图7是故障注入结果的获取过程的流程图。Fig. 7 is a flow chart of the process of acquiring fault injection results.
具体实施方式Detailed ways
具体实施方式一:下面结合图1说明本实施方式,本实施方式所述一种1394总线的故障注入装置,它包括1394故障注入器和宿主机6,1394故障注入器包括FPGA1、第一物理层接口芯片2、第二物理层接口芯片3、SRAM4和EEPROM5,Specific embodiment one: present embodiment is described below in conjunction with Fig. 1, the fault injection device of a kind of 1394 bus described in this embodiment, it comprises 1394 fault injectors and host computer 6, and 1394 fault injectors comprise FPGA1, the first physical
FPGA1的逻辑保存输入输出端与EEPROM5的输入输出端相连,FPGA1的数据缓冲输入输出端与SRAM4的输入输出端相连,FPGA1的第一1394芯片输入输出端与第一物理层接口芯片2的第一输入输出端相连,第一物理层接口芯片2的第二输入输出端为第一1394总线接口,FPGA1的第二1394芯片输入输出端与第二物理层接口芯片3的第一输入输出端相连,第二物理层接口芯片3的第二输入输出端为第二1394总线接口,The logic storage input and output terminals of FPGA1 are connected with the input and output terminals of EEPROM5, the data buffer input and output terminals of FPGA1 are connected with the input and output terminals of SRAM4, and the first 1394 chip input and output terminals of FPGA1 are connected with the first physical
FPGA1通过RS232串行总线与宿主机6相连。The FPGA1 is connected to the host computer 6 through the RS232 serial bus.
本发明的IEEE1394总线的故障注入装置在实际使用时,通过两个1394总线接口串联接入到1394串行总线中,在不注入故障的情况下,能够在物理层将1394总线上的数据进行接收、缓存和转发,使总线两端的设备能完成正常的总线通讯。同时,还可以向总线引入不同类型的故障。总线上基本的故障类型包括:物理故障和通信协议故障。物理故障与总线电气特性有关。IEEE 1394采用差分传输线,每个端口都有一个控制模块负责逻辑信号与物理双绞线信号(TPA和TPB)信号间的相互转换,而1394的物理双绞线最长可能达100米,传输线会受到周围环境的电气干扰。正因为如此,传输线上可能出现的电气故障模式包括:传输线之间的电压不稳或是电压超过了额定范围。同时,总线硬件固有的故障模式包括:信号开路、跳变、恒定为1或0。通信协议故障与总线协议相关,具体包括信号数据包丢失、损坏,传输延迟超标,缓冲区溢出等等。综合考虑故障模式的完整性、注入的通用性、有效性和实用性等各方面因素,本发明所能注入的故障为通信协议故障。The fault injection device for the IEEE1394 bus of the present invention is connected in series to the 1394 serial bus through two 1394 bus interfaces in actual use, and can receive data on the 1394 bus at the physical layer without injecting faults , caching and forwarding, so that the devices at both ends of the bus can complete normal bus communication. At the same time, different types of faults can be introduced into the bus. The basic types of faults on the bus include: physical faults and communication protocol faults. Physical faults are related to the electrical characteristics of the bus. IEEE 1394 uses differential transmission lines, and each port has a control module responsible for the mutual conversion between logical signals and physical twisted-pair signals (TPA and TPB). Electrical interference from the surrounding environment. Because of this, electrical failure modes that can occur on transmission lines include voltage instability between transmission lines or voltages that exceed ratings. At the same time, the inherent fault modes of the bus hardware include: signal open circuit, jump, constant 1 or 0. Communication protocol faults are related to the bus protocol, specifically including loss and damage of signal data packets, excessive transmission delay, buffer overflow, and so on. Comprehensively considering various factors such as the integrity of the failure mode, the versatility of injection, the effectiveness and practicability, the failures that can be injected by the present invention are communication protocol failures.
本发明包含两个部分:宿主机6和故障注入器,宿主机6中安装控制软件,故障注入器为实现注入的硬件,宿主机6的控制软件给用户提供友好的人际交互界面,可以接受用户的输入(鼠标、键盘等),并向故障注入器发送故障注入命令和参数来控制故障注入过程。故障注入命令包括注入开始、暂停和结束等;故障参数则包括故障持续时间、故障间隔时间、故障类型、故障注入时刻等。同时,宿主机端控制软件还接受故障注入器的反馈,以获得故障注入结果、总线系统状态等相关信息并以图表的形式显示。The present invention comprises two parts: the host computer 6 and the fault injector, the control software is installed in the host computer 6, the fault injector is the hardware for realizing injection, and the control software of the host computer 6 provides the user with a friendly human interaction interface, which can accept the user input (mouse, keyboard, etc.), and send fault injection commands and parameters to the fault injector to control the fault injection process. Fault injection commands include injection start, pause, and end; fault parameters include fault duration, fault interval time, fault type, fault injection time, etc. At the same time, the host-side control software also receives feedback from the fault injector to obtain fault injection results, bus system status and other relevant information and display them in the form of charts.
故障注入器是本发明的核心,提供了故障注入机制。注入器在宿主机的控制下,可以进行1394总线数据的接收、缓存和转发,还可以进行故障注入,使数据包丢失、损坏或者延迟。故障注入器从硬件上分为四个部分。The fault injector is the core of the present invention, providing a fault injection mechanism. Under the control of the host computer, the injector can receive, buffer and forward data on the 1394 bus, and can also perform fault injection to cause data packets to be lost, damaged or delayed. The fault injector is divided into four parts from the hardware.
FPGA及其外围电路。主要包括一片大容量高速FPGA1作为处理核心,FPGA1的逻辑保存在一片EEPROM5中,并配备了大容量SRAM4作为大量数据缓冲。FPGA and its peripheral circuits. It mainly includes a large-capacity high-speed FPGA1 as the processing core, the logic of the FPGA1 is stored in a piece of EEPROM5, and is equipped with a large-capacity SRAM4 as a large amount of data buffer.
1394接口芯片。主要包括第一物理层接口芯片2和第二物理层接口芯片3,完成数字信号/物理双绞线信号的转换、数据传输、设备连接和移除的监测,速度信号、挂起和恢复信号的传输等。1394 interface chip. It mainly includes the first physical
通信网络。定义故障注入器和宿主机的数据交换接口,常见的方式有RS232、USB和以太网等。在本发明中使用RS232方式。Communications network. Define the data exchange interface between the fault injector and the host computer. Common methods include RS232, USB, and Ethernet. The RS232 method is used in the present invention.
具体实施方式二:下面结合图2说明本实施方式,本实施方式对实施方式一作进一步说明,FPGA1包括主控模块1-1、FPGA故障注入模块1-2、SRAM控制器1-3、第一PHY/LINK接口模块1-4和第二PHY/LINK接口模块1-5,Specific embodiment two: below in conjunction with Fig. 2 illustrate this embodiment, this embodiment is further described to embodiment one, FPGA1 comprises main control module 1-1, FPGA fault injection module 1-2, SRAM controller 1-3, the first PHY/LINK interface modules 1-4 and second PHY/LINK interface modules 1-5,
FPGA故障注入模块1-2的第一输入输出端与主控模块1-1相连,主控模块1-1的通过RS232串行总线与宿主机6相连,The first input and output terminals of the FPGA fault injection module 1-2 are connected to the main control module 1-1, and the main control module 1-1 is connected to the host computer 6 through the RS232 serial bus,
FPGA故障注入模块1-2的第二输入输出端与SRAM控制器1-3的第一输入输出端相连,SRAM控制器1-3的第二输入输出端与SRAM4相连;The second input and output of FPGA fault injection module 1-2 is connected with the first input and output of SRAM controller 1-3, and the second input and output of SRAM controller 1-3 is connected with SRAM4;
FPGA故障注入模块1-2的第三输入输出端与第一PHY/LINK接口模块1-4的第一输入输出端相连,第一PHY/LINK接口模块1-4的第二输入输出端与第一物理层接口芯片2相连;The third input and output end of the FPGA fault injection module 1-2 is connected to the first input and output end of the first PHY/LINK interface module 1-4, and the second input and output end of the first PHY/LINK interface module 1-4 is connected to the second input and output end of the first PHY/LINK interface module 1-4. A physical
FPGA故障注入模块1-2的第四输入输出端与第二PHY/LINK接口模块1-5的第一输入输出端相连,第二PHY/LINK接口模块1-5的第二输入输出端与第二物理层接口芯片3相连。The fourth input and output end of the FPGA fault injection module 1-2 is connected with the first input and output end of the second PHY/LINK interface module 1-5, and the second input and output end of the second PHY/LINK interface module 1-5 is connected with the first input and output end of the second PHY/LINK interface module 1-5. The two physical
PHY/LINK为数字信号/物理双绞线信号的转换,双向转换。PHY/LINK is the conversion of digital signal/physical twisted pair signal, bidirectional conversion.
1)主控模块1-1:和宿主机6中的控制软件通信,接收命令和参数,以控制注入过程和结果的回收。1) Main control module 1-1: communicating with the control software in the host machine 6, receiving commands and parameters, so as to control the injection process and the recovery of the results.
2)FPGA故障注入模块1-2。受主控模块1-1的控制,进行1394总线数据的缓存、转发和故障注入过程。不注入故障时,其接受一端PHY/LINK接口模块的输入,将数据缓存到SRAM4中,然后取出数据传给另一端的PHY/LINK接口模块。需要注入故障时,FPGA故障注入模块1-2对取出数据进行修改、延迟以后再传给另一端的PHY/LINK接口模块。2) FPGA fault injection module 1-2. Under the control of the main control module 1-1, the process of caching, forwarding and fault injection of 1394 bus data is performed. When no fault is injected, it accepts the input of the PHY/LINK interface module at one end, caches the data in SRAM4, and then fetches the data and transmits it to the PHY/LINK interface module at the other end. When a fault needs to be injected, the FPGA fault injection module 1-2 modifies the retrieved data, delays it, and then transmits it to the PHY/LINK interface module at the other end.
3)第一PHY/LINK接口模块1-4和第二PHY/LINK接口模块1-5:受FPGA故障注入模块1-2的控制,用于完成链路层对第一物理层接口芯片2或第二物理层接口芯片3的访问。3) The first PHY/LINK interface module 1-4 and the second PHY/LINK interface module 1-5: controlled by the FPGA fault injection module 1-2, used to complete the link layer to the first physical
4)SRAM控制器1-3。受FPGA故障注入模块1-2的控制,用于完成对外部大容量SRAM4的读写访问。4) SRAM controllers 1-3. Controlled by the FPGA fault injection module 1-2, it is used to complete the read and write access to the external large-capacity SRAM4.
具体实施方式三:下面结合图3说明本实施方式,本实施方式对实施方式一作进一步说明,宿主机6包括用户界面模块6-1、数据分析模块6-2、参数收集模块6-3、故障注入模块6-4、结果回收模块6-5和通信模块6-6,Specific Embodiment Three: The present embodiment will be described below in conjunction with FIG. 3 . This embodiment will further describe
通信模块6-6的通信端通过RS232串行总线与1394故障注入器相连,通信模块6-6的故障命令输入端与故障注入模块6-4的第一故障命令输出端相连,通信模块6-6的返回数据输出端与结果回收模块6-5的输入端相连,结果回收模块6-5的输出端与数据分析模块6-2的第一输入端相连,故障注入模块6-4的第二故障命令输出端与数据分析模块6-2的第二输入端相连,数据分析模块6-2的输出端与用户界面模块6-1的数据显示输入端相连,用户界面模块6-1接收用户输入命令及参数,用户界面模块6-1的输出端与参数收集模块6-3的输入端相连,参数收集模块6-3的输出端与故障注入模块6-4的输入端相连。The communication end of the communication module 6-6 is connected with the 1394 fault injector through the RS232 serial bus, the fault command input end of the communication module 6-6 is connected with the first fault command output end of the fault injection module 6-4, and the communication module 6- The return data output terminal of 6 is connected with the input terminal of the result recovery module 6-5, the output terminal of the result recovery module 6-5 is connected with the first input terminal of the data analysis module 6-2, and the second input terminal of the fault injection module 6-4 The fault command output end is connected with the second input end of the data analysis module 6-2, the output end of the data analysis module 6-2 is connected with the data display input end of the user interface module 6-1, and the user interface module 6-1 receives user input For commands and parameters, the output end of the user interface module 6-1 is connected to the input end of the parameter collection module 6-3, and the output end of the parameter collection module 6-3 is connected to the input end of the fault injection module 6-4.
用户界面模块6-1:提供友好的人际交互界面,可以接受用户的输入(鼠标、键盘等),使用户能够进行故障类型选择、参数输入等操作;显示故障注入的结果和总线状态等信息。User interface module 6-1: Provides a friendly human interaction interface that can accept user input (mouse, keyboard, etc.), enabling users to perform operations such as fault type selection and parameter input; display fault injection results and bus status and other information.
数据分析模块6-2:分析用户设置的故障参数、注入器返回的注入结果和总线状态等信息,以验证故障注入的正确性。这些信息被进一步处理并发送给用户界面模块6-1显示。Data analysis module 6-2: analyze the fault parameters set by the user, the injection results returned by the injector, the bus status and other information to verify the correctness of the fault injection. These information are further processed and sent to the user interface module 6-1 for display.
参数收集模块6-3:从用户界面模块6-1接受用户的输入,收集故障注入命令和参数并发送给故障注入模块6-4。The parameter collection module 6-3: accepts user input from the user interface module 6-1, collects fault injection commands and parameters, and sends them to the fault injection module 6-4.
故障注入模块6-4:识别故障注入的命令和数据并将相应的参数转化成数据流传输到通信模块6-6和数据分析模块6-2,以控制注入器工作。Fault injection module 6-4: identify the commands and data for fault injection and convert the corresponding parameters into data streams for transmission to the communication module 6-6 and data analysis module 6-2 to control the work of the injector.
结果回收模块6-5:通过结果回收模块6-5从故障注入器6-4收集故障注入结果、总线状态等相关信息并反馈给数据分析模块6-1以供进一步的处理。Result recovery module 6-5: through the result recovery module 6-5, relevant information such as fault injection results and bus status are collected from the fault injector 6-4 and fed back to the data analysis module 6-1 for further processing.
具体实施方式四:下面结合图4说明本实施方式,本实施方式对实施方式一作进一步说明,第一物理层接口芯片2和第二物理层接口芯片3都选用TSB41AB3芯片。Embodiment 4: This embodiment will be described below in conjunction with FIG. 4 . This embodiment will further describe
FPGA1与第一物理层接口芯片2的连接关系与FPGA1与第二物理层接口芯片3的连接关系是相同的,都如图4所示。The connection relationship between FPGA1 and the first physical
本发明采用IEEE 1394物理层接口芯片TSB41AB3来降低FPGA逻辑设计的难度。TSB41AB3是支持3个线缆接口的物理层芯片,通过对24.576MHz晶振倍频作为时钟源,最高传输速率达400Mbps,支持标准的PHY/LINK接口。PHY/LINK接口主要依靠CTL[1:0]、D[7:0]、LREQ、LPS、LINKON和SCLK信号线来传输物理层和链路层模块之间的控制信号及多种数据包。接口主要信号定义如下:The invention adopts IEEE 1394 physical layer interface chip TSB41AB3 to reduce the difficulty of FPGA logic design. TSB41AB3 is a physical layer chip that supports 3 cable interfaces. By multiplying the frequency of 24.576MHz crystal oscillator as a clock source, the maximum transmission rate can reach 400Mbps, and it supports standard PHY/LINK interface. The PHY/LINK interface mainly relies on CTL[1:0], D[7:0], LREQ, LPS, LINKON and SCLK signal lines to transmit control signals and various data packets between the physical layer and link layer modules. The main signals of the interface are defined as follows:
1)D[7:0]:双向数据线。PHY/LINK接口支持100Mbps、200Mbps、400Mbps三种传输速度,根据传输速度分别使用D[7:6]、D[7:4]、D[7:0],未使用的数据线置0。1) D[7:0]: bidirectional data line. The PHY/LINK interface supports three transmission speeds of 100Mbps, 200Mbps, and 400Mbps. According to the transmission speed, D[7:6], D[7:4], and D[7:0] are used respectively, and the unused data lines are set to 0.
2)CTL[1:0]:双向控制线,用于确定D[7:0]的传输方向。2) CTL[1:0]: Bidirectional control line, used to determine the transmission direction of D[7:0].
3)LREQ:链路层使用LREQ给物理层发送一串比特流来请求对串行总线的访问,比特流定义了被发送的请求类型和数据包的传输速度,按请求类型不同,比特流长度为6~17bits不等。3) LREQ: The link layer uses LREQ to send a string of bit streams to the physical layer to request access to the serial bus. The bit stream defines the type of request to be sent and the transmission speed of the data packet. According to the type of request, the length of the bit stream It ranges from 6 to 17 bits.
4)LPS:指示链路层工作状态。4) LPS: Indicates the working status of the link layer.
5)LINKON:链路开启信号,通知链路层上电。链路层检测到LINKON信号后自动开始输出LPS信号。5) LINKON: Link open signal, which notifies the link layer to power on. The link layer automatically starts to output the LPS signal after detecting the LINKON signal.
具体实施方式五:下面结合图5说明本实施方式,基于实施方式一所述的一种1394总线的故障注入装置的故障注入方法,该方法包括以下步骤:Specific embodiment five: the present embodiment is described below in conjunction with Fig. 5, based on the fault injection method of the fault injection device of a kind of 1394 bus described in embodiment one, this method comprises the following steps:
步骤一、宿主机6接收用户的输入命令,并将故障注入命令和故障参数发送给故障注入器;
步骤二、故障注入器将数据返回给宿主机6,获取故障注入结果。Step 2: The fault injector returns the data to the host machine 6 to obtain the fault injection result.
具体实施方式六:本实施方式对实施方式五作进一步说明,步骤一中的故障注入命令包括注入开始、注入暂停和注入结束命令;故障参数包括故障持续时间、故障间隔时间、故障类型和故障注入时刻。Embodiment 6: This embodiment will further explain
具体实施方式七:下面结合图6说明本实施方式,本实施方式对实施方式五作进一步说明,宿主机6发送给故障注入器的故障注入命令和故障参数的形成过程为:Specific embodiment seven: the present embodiment is described below in conjunction with Fig. 6, and the embodiment five is further described in this embodiment, and the formation process of the fault injection command and the fault parameter sent by the host machine 6 to the fault injector is as follows:
步骤11、用户界面模块6-1接收用户输入的故障注入命令和参数,并发送给参数收集模块6-3;Step 11, the user interface module 6-1 receives the fault injection command and parameters input by the user, and sends them to the parameter collection module 6-3;
步骤12、参数收集模块6-3将收集到的故障注入命令和参数发送给故障注入模块6-4;Step 12, the parameter collection module 6-3 sends the collected fault injection command and parameters to the fault injection module 6-4;
步骤13、故障注入模块6-4识别故障注入的命令和参数,并将其转化成数据流分别传输给通信模块6-6和数据分析模块6-2;Step 13, the fault injection module 6-4 recognizes the commands and parameters of the fault injection, and converts them into data streams and transmits them to the communication module 6-6 and the data analysis module 6-2 respectively;
步骤14、通信模块6-6通过RS232串行总线将故障注入命令和参数发送给1394故障注入器,进行故障注入。Step 14, the communication module 6-6 sends the fault injection command and parameters to the 1394 fault injector through the RS232 serial bus to perform fault injection.
具体实施方式八:下面结合图7说明本实施方式,本实施方式对实施方式五作进一步说明,步骤二中的故障注入结果的获取过程为:Embodiment 8: This embodiment will be described below in conjunction with FIG. 7 . This embodiment will further describe
步骤21、通信模块6-6接收1394故障注入器的反馈数据,并发送给结果回收模块6-5;Step 21, the communication module 6-6 receives the feedback data of the 1394 fault injector, and sends it to the result recovery module 6-5;
步骤22、数据分析模块6-2接收结果回收模块6-5的发送的反馈数据,并和故障注入模块6-4发送的故障注入的命令和参数进行对比分析,来验证故障注入的正确性,获取故障注入结果。Step 22, the data analysis module 6-2 receives the feedback data sent by the result recovery module 6-5, and compares and analyzes the command and parameters of the fault injection sent by the fault injection module 6-4 to verify the correctness of the fault injection, Get fault injection results.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201110132593 CN102222032B (en) | 2011-05-20 | 2011-05-20 | Fault injection method of fault injection device of 1394 bus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201110132593 CN102222032B (en) | 2011-05-20 | 2011-05-20 | Fault injection method of fault injection device of 1394 bus |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102222032A true CN102222032A (en) | 2011-10-19 |
CN102222032B CN102222032B (en) | 2013-10-30 |
Family
ID=44778588
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201110132593 Active CN102222032B (en) | 2011-05-20 | 2011-05-20 | Fault injection method of fault injection device of 1394 bus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102222032B (en) |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104572389A (en) * | 2013-10-18 | 2015-04-29 | 神讯电脑(昆山)有限公司 | Automatic testing method of 1394 interface |
CN104778104A (en) * | 2015-04-20 | 2015-07-15 | 北京全路通信信号研究设计院有限公司 | Error check method of serial data communication bus and serial data communication bus |
CN105067933A (en) * | 2015-08-31 | 2015-11-18 | 中国人民解放军63908部队 | Universal system for electronic equipment testability validation and evaluation and testing method |
CN105823909A (en) * | 2015-01-07 | 2016-08-03 | 中国航空综合技术研究所 | Back-driving fault injection interface adapter applicable to electronic products |
CN107818271A (en) * | 2016-09-14 | 2018-03-20 | 国民技术股份有限公司 | Direct fault location analysis method and system based on chip layout |
CN108334060A (en) * | 2018-03-15 | 2018-07-27 | 北京润科通用技术有限公司 | A kind of bus failure injection device |
CN108494599A (en) * | 2018-03-29 | 2018-09-04 | 北京润科通用技术有限公司 | A kind of ARINC664 bus failures injected system and method |
CN108958997A (en) * | 2018-05-23 | 2018-12-07 | 哈尔滨工业大学 | Universal serial bus fault simulation system and analogy method |
CN109976960A (en) * | 2019-03-29 | 2019-07-05 | 北京润科通用技术有限公司 | A kind of bus test data method for implanting and device |
CN113064782A (en) * | 2021-03-22 | 2021-07-02 | 山东英信计算机技术有限公司 | Memory error injection automation system, use method and medium |
CN114915579A (en) * | 2022-03-15 | 2022-08-16 | 山东大学 | System and method for testing industrial Ethernet safety performance |
CN115079671A (en) * | 2022-06-30 | 2022-09-20 | 哈尔滨工业大学(威海) | A fault injection system of serial multi-bus |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1952905A (en) * | 2006-11-29 | 2007-04-25 | 哈尔滨工业大学 | Bridging type fault injection apparatus and method of fault-tolerant computer system |
CN101146131A (en) * | 2006-09-15 | 2008-03-19 | 中兴通讯股份有限公司 | 1000M and 10/100/1000M interface self-adapted Ethernet bridge |
CN101771663A (en) * | 2008-12-29 | 2010-07-07 | 上海华虹集成电路有限责任公司 | Verification system based on UCPS protocol |
CN101783184A (en) * | 2010-01-15 | 2010-07-21 | 哈尔滨工业大学 | Double data rate 2 (DDR2) memory failure injecting tool and injecting method based on field programmable gate array (FPGA) |
-
2011
- 2011-05-20 CN CN 201110132593 patent/CN102222032B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101146131A (en) * | 2006-09-15 | 2008-03-19 | 中兴通讯股份有限公司 | 1000M and 10/100/1000M interface self-adapted Ethernet bridge |
CN1952905A (en) * | 2006-11-29 | 2007-04-25 | 哈尔滨工业大学 | Bridging type fault injection apparatus and method of fault-tolerant computer system |
CN101771663A (en) * | 2008-12-29 | 2010-07-07 | 上海华虹集成电路有限责任公司 | Verification system based on UCPS protocol |
CN101783184A (en) * | 2010-01-15 | 2010-07-21 | 哈尔滨工业大学 | Double data rate 2 (DDR2) memory failure injecting tool and injecting method based on field programmable gate array (FPGA) |
Cited By (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104572389A (en) * | 2013-10-18 | 2015-04-29 | 神讯电脑(昆山)有限公司 | Automatic testing method of 1394 interface |
CN105823909B (en) * | 2015-01-07 | 2018-11-16 | 中国航空综合技术研究所 | A kind of rear-driving type direct fault location interface adapter suitable for electronic product |
CN105823909A (en) * | 2015-01-07 | 2016-08-03 | 中国航空综合技术研究所 | Back-driving fault injection interface adapter applicable to electronic products |
CN104778104A (en) * | 2015-04-20 | 2015-07-15 | 北京全路通信信号研究设计院有限公司 | Error check method of serial data communication bus and serial data communication bus |
CN104778104B (en) * | 2015-04-20 | 2018-12-04 | 北京全路通信信号研究设计院集团有限公司 | Error detection method of serial data communication bus and serial data communication bus |
CN105067933A (en) * | 2015-08-31 | 2015-11-18 | 中国人民解放军63908部队 | Universal system for electronic equipment testability validation and evaluation and testing method |
CN107818271A (en) * | 2016-09-14 | 2018-03-20 | 国民技术股份有限公司 | Direct fault location analysis method and system based on chip layout |
CN107818271B (en) * | 2016-09-14 | 2023-08-29 | 国民技术股份有限公司 | Fault injection analysis method and system based on chip layout |
CN108334060A (en) * | 2018-03-15 | 2018-07-27 | 北京润科通用技术有限公司 | A kind of bus failure injection device |
CN108494599A (en) * | 2018-03-29 | 2018-09-04 | 北京润科通用技术有限公司 | A kind of ARINC664 bus failures injected system and method |
CN108958997A (en) * | 2018-05-23 | 2018-12-07 | 哈尔滨工业大学 | Universal serial bus fault simulation system and analogy method |
CN108958997B (en) * | 2018-05-23 | 2022-03-04 | 哈尔滨工业大学 | Serial bus fault simulation system and simulation method |
CN109976960A (en) * | 2019-03-29 | 2019-07-05 | 北京润科通用技术有限公司 | A kind of bus test data method for implanting and device |
CN113064782A (en) * | 2021-03-22 | 2021-07-02 | 山东英信计算机技术有限公司 | Memory error injection automation system, use method and medium |
CN113064782B (en) * | 2021-03-22 | 2023-03-24 | 山东英信计算机技术有限公司 | Memory error injection automation system, use method and medium |
CN114915579A (en) * | 2022-03-15 | 2022-08-16 | 山东大学 | System and method for testing industrial Ethernet safety performance |
CN114915579B (en) * | 2022-03-15 | 2024-07-09 | 山东大学 | System and method for testing safety performance of industrial Ethernet |
CN115079671A (en) * | 2022-06-30 | 2022-09-20 | 哈尔滨工业大学(威海) | A fault injection system of serial multi-bus |
Also Published As
Publication number | Publication date |
---|---|
CN102222032B (en) | 2013-10-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102222032B (en) | Fault injection method of fault injection device of 1394 bus | |
CN104750588B (en) | A kind of method for testing pressure based on serial communication | |
CN102360329B (en) | Bus monitoring and debugging control device and methods for monitoring and debugging bus | |
CN103092119B (en) | A kind of bus state supervision method based on FPGA | |
TWI470242B (en) | Protocol-aware serial pattern generator | |
CN106292409B (en) | A real-time simulation system and its simulation method based on FPGA multi-rate optical fiber communication | |
CN103178872B (en) | Method and the device of USB system transfers distance is extended by Ethernet | |
CN103475523A (en) | CAN bus analysis system with bus error analysis function | |
CN103198001B (en) | Storage system capable of self-testing peripheral component interface express (PCIE) interface and test method | |
CN102214154A (en) | USB (Universal Serial Bus)-based communication module and communication method for alternating current servo driver | |
WO2014026600A1 (en) | Method and device for tracing and debugging chip of system on chip | |
CN103761185B (en) | A kind of automatization test system and method | |
WO2009031737A1 (en) | Universal high-speed real-time monitoring device for embedded systems | |
CN104506376A (en) | Multichannel redundant CAN (Controller Area Network) bus test system with frame start sensitive synchronous trigger function | |
CN111683310B (en) | Networking type data acquisition and analysis system and method | |
CN109462495A (en) | A kind of ship hardware and communication system detection system and method | |
CN107885517A (en) | Embedded system handles device program loaded circuit | |
CN104102160B (en) | Controller area network (CAN) bus signal transceiving analysis tool | |
TW201423413A (en) | Apparatus and method for monitoring signals transmitted in bus | |
CN202267954U (en) | Bus monitoring and debugging control device | |
CN103077144A (en) | Serial peripheral interface (SPI) communication interface for ensuring data integrity, and communication method thereof | |
TW201424295A (en) | Apparatus and method for monitoring signals transmitted in bus | |
CN113125943B (en) | FPGA radiation test module, ASIC chip radiation resistance performance evaluation system and method | |
CN201072431Y (en) | Broadband aviation electronic bus testing device | |
CN111008102A (en) | FPGA accelerator card high-speed interface SI test control device, system and 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 |