Hardware system detection method and device, equipment and storage medium

By receiving and processing the original input signals, generating target signal combinations for calculations, the problem of poor detection accuracy of FPGA hardware system is solved, and real-time and accurate detection of hardware system functions is achieved.

CN119003252APending Publication Date: 2024-11-22BEIJING URBAN CONSTR INTELLIGENT CONTROL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410875900.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-02
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

The detection method based on FPGA hardware system in the prior art is poor in accuracy, and it is impossible to effectively judge the reliability of the hardware system in different environments, especially the influence of factors such as temperature, humidity, electromagnetic and vibration.

Method used

By receiving the original input signal, determining the optional value of the self-test signal, and generating a target signal combination based on these signal combinations, performing target operations, obtaining the target operation results of the field programmable logic gate array, and sending them to the processor to judge the hardware system's Whether there is any abnormality in the function.

Benefits of technology

Real-time detection of FPGA hardware system is realized, the accuracy of detection is improved, and the reliability of the hardware system can be effectively judged in different environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119003252A_ABST
    Figure CN119003252A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of system testing, and provides a hardware system detection method, device and equipment and a storage medium, the method is applied to a field programmable logic gate array in a hardware system detection system, the hardware system detection system comprises the field programmable logic gate array and a processor, and the method comprises the following steps: receiving an original input signal; determining an optional value of the self-check signal based on the original input signal; determining at least one target signal combination according to selectable values of the original input signal and the self-checking signal, and determining a target operation result of the field programmable logic gate array according to each target signal combination; the target operation result is sent to the processor, and the target operation result is used for the processor to determine whether the function of the hardware system is abnormal or not according to the target operation result. According to the invention, the accuracy of hardware system detection is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of system testing, and in particular to a hardware system testing method, device, equipment and storage medium. Background Art

[0002] Field Programmable Gate Array (FPGA) is an integrated circuit with programmable characteristics. It has the characteristics of high performance, reconfigurability, concurrent execution and short development cycle. Because it is highly flexible and scalable, it can implement algorithm iteration at a low cost and can better realize the calculation, control and upgrade functions of new scenarios. It is known as the "universal chip" in the chip field and is widely used in industrial control, aerospace, network communications, consumer electronics, data centers, automotive electronics and artificial intelligence.

[0003] Nowadays, various fields have higher and higher requirements for system reliability, especially hardware system reliability. However, the reliability of FPGA-based hardware systems is greatly affected by factors such as temperature, humidity, electromagnetic and vibration. Therefore, how to detect the reliability of FPGA hardware systems in different environments is a critical issue.

[0004] In the prior art, the self-test method for detecting the FPGA hardware system mainly includes detecting and displaying the status through a light emitting diode (LED) running light. However, the detection result of the LED running light detection method can only indicate whether the hardware system is working, but it is impossible to judge whether the internal functions are running normally, resulting in poor accuracy in detecting the hardware system. Summary of the invention

[0005] In view of the problems existing in the prior art, the present invention provides a hardware system detection method, device, equipment and storage medium, which improve the accuracy of hardware system detection.

[0006] In a first aspect, the present invention provides a hardware system detection method, which is applied to a field programmable logic gate array in a hardware system detection system, wherein the hardware system detection system includes the field programmable logic gate array and a processor, and the method includes: receiving an original input signal; Determining a selectable value of a self-test signal based on the original input signal; Determine at least one target signal combination according to the optional values ​​of the original input signal and the self-test signal, and determine a target operation result of the field programmable logic gate array according to each of the target signal combinations; The target operation result is sent to the processor; the target operation result is used by the processor to determine whether there is an abnormality in the function of the hardware system according to the target operation result.

[0007] Optionally, the field programmable logic gate array includes a state machine, a first functional unit and a second functional unit; the first functional unit and the second functional unit are parallel functional units, and the same target operation is performed in the first functional unit and the second functional unit; the number of optional values ​​of the self-test signal is a preset number; each of the target signal combinations includes a first input signal input into the first functional unit and a second input signal input into the second functional unit; the determining of at least one target signal combination according to the optional values ​​of the original input signal and the self-test signal includes: Determine the original input signal as the first input signal; Determining the second input signal according to a preset number of optional values ​​of the self-test signals; Using the state machine, combining the first input signal and the second input signal to obtain the at least one target signal combination; and / or,

[0008] Determining the first input signal according to a preset number of optional values ​​of the self-test signals; Determine the original input signal as the second input signal; The first input signal and the second input signal are combined by using the state machine to obtain the at least one target signal combination.

[0009] Optionally, determining a target operation result of the field programmable logic gate array according to each target signal combination includes: For each of the target signal combinations, using the first functional unit to perform the target operation on the first input signal in each of the target signal combinations, to obtain a first operation result of the first functional unit corresponding to each of the target signal combinations; Using the second functional unit to perform the target operation on the second input signal in each of the target signal combinations, to obtain a second operation result of the second functional unit corresponding to each of the target signal combinations; The first operation result of the first functional unit and the second operation result of the second functional unit corresponding to each target signal combination are determined as the target operation result of the field programmable logic gate array.

[0010] Optionally, sending the target operation result to the processor includes: The target operation result, each of the target signal combinations, the signal type flag of the first input signal in each of the target signal combinations, and the signal type flag of the second input signal in each of the target signal combinations are sent to the processor.

[0011] In a second aspect, the present invention further provides a hardware system detection system, the hardware system detection system comprising a field programmable logic gate array and a processor; The field programmable logic gate array is used to receive an original input signal; determine an optional value of a self-test signal based on the original input signal; determine at least one target signal combination according to the original input signal and the optional value of the self-test signal, and determine a target operation result of the field programmable logic gate array according to each target signal combination; and send the target operation result to the processor; The processor is used to determine whether there is an abnormality in the function of the hardware system according to the target operation result.

[0012] Optionally, the field programmable logic gate array includes a state machine, a first functional unit and a second functional unit; the first functional unit and the second functional unit are parallel functional units, and the same target operation is performed in the first functional unit and the second functional unit; the target signal combination is determined by using the state machine, and each target signal combination includes a first input signal input to the first functional unit and a second input signal input to the second functional unit; each target operation result is determined based on a first operation result of the first functional unit and a second operation result of the second functional unit corresponding to each target signal combination; Optionally, the processor is specifically configured to: For any of the target signal combinations, when the first input signal in the target signal combination is determined according to a preset number of optional values ​​of the self-test signals, a first operation result of the first functional unit is compared with a preset operation result to obtain a first comparison result; the preset operation result is determined by using a target operation tool according to the preset number of optional values ​​of the self-test signals; Determining whether there is an abnormality in the function of the hardware system according to the first comparison result; In the case where the second input signal in the target signal combination is determined according to the selectable values ​​of a preset number of the self-test signals, comparing the second operation result of the second functional unit with the preset operation result to obtain a second comparison result; According to the second comparison result, it is determined whether there is any abnormality in the function of the hardware system.

[0013] In a third aspect, the present invention further provides a hardware system detection device, which is applied to a field programmable logic gate array in a hardware system detection system, wherein the hardware system detection system includes the field programmable logic gate array and a processor, and the device includes: A receiving module, configured to receive an original input signal; and determine an optional value of a self-test signal based on the original input signal; a determination module, configured to determine at least one target signal combination according to the original input signal and the optional values ​​of the self-test signal, and determine a target operation result of the field programmable logic gate array according to each target signal combination; The sending module is used to send the target operation result to the processor; the target operation result is used by the processor to determine whether there is an abnormality in the function of the hardware system according to the target operation result.

[0014] In a fourth aspect, the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the hardware system detection method described above is implemented in any one of the above-described methods.

[0015] In a fifth aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the hardware system detection methods described above.

[0016] In a sixth aspect, the present invention further provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the hardware system detection method as described above is implemented.

[0017] The hardware system detection method, device, equipment and storage medium provided by the present invention are applied to a field programmable logic gate array in a hardware system detection system. The hardware system detection system includes a field programmable logic gate array and a processor. First, an original input signal is received, and an optional value of a self-test signal is determined based on the original input signal; then, according to the optional values ​​of the original input signal and the self-test signal, at least one target signal combination is determined, and a target operation result of the field programmable logic gate array is determined according to each target signal combination; then, the target operation result is sent to the processor, wherein the target operation result is used for the processor to determine whether there is an abnormality in the function of the hardware system according to the target operation result.

[0018] The field programmable logic gate array in the present invention determines at least one target signal combination according to the optional values ​​of the original input signal and the self-test signal, and determines the target operation result based on the target signal combination. Then, after receiving the target operation result, the processor determines whether there is an abnormality in the function of the hardware system according to the target operation result, thereby realizing real-time detection of whether the function of the hardware system is normal and improving the accuracy of hardware system detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0020] Figure 1 This is one of the flow charts of the hardware system detection method provided by the present invention.

[0021] Figure 2 It is one of the structural schematic diagrams of the hardware system detection system provided by the present invention.

[0022] Figure 3 It is a schematic diagram of the effect of the target signal combination provided by the present invention.

[0023] Figure 4 It is a schematic diagram of the principle of the hardware system detection method provided by the present invention.

[0024] Figure 5 This is the second structural diagram of the hardware system detection system provided by the present invention.

[0025] Figure 6 It is a structural schematic diagram of the hardware system detection device provided by the present invention.

[0026] Figure 7 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0027] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0028] Combine the following Figure 1-Figure 7 The hardware system detection method, device, equipment and storage medium of the present invention are described.

[0029] Figure 1 It is one of the flow charts of the hardware system detection method provided by the present invention. The method is applied to a field programmable logic gate array in a hardware system detection system. The hardware system detection system includes a field programmable logic gate array and a processor, such as Figure 1 As shown, the method includes steps 101 to 104.

[0030] Step 101: receiving an original input signal; Specifically, the execution subject of the present invention is a field programmable gate array (FPGA) in a hardware system detection system. Figure 2 It is one of the structural diagrams of the hardware system detection system provided by the present invention. The hardware system detection system 200 includes a field programmable logic gate array 210 and a processor 220. The field programmable logic gate array 210 receives the original input signal, and the field programmable logic gate array 210 interacts with the processor to control and status.

[0031] The method comprises: firstly, a field programmable logic gate array receives an original input signal, wherein the original input signal can be analog quantities such as sampled hardware system voltage and current, or can be a signal such as a data stream.

[0032] Step 102: determining an optional value of a self-test signal based on an original input signal; Specifically, the optional value of the self-test signal is determined based on the original input signal. For example, the typical value of the original input signal sig is selected as the optional value of the self-test signal. This solution is described in detail by taking two typical values ​​as an example. The two typical values ​​are a0 and a1 respectively.

[0033] Step 103: determining at least one target signal combination according to the optional values ​​of the original input signal and the self-test signal, and determining a target operation result of the field programmable logic gate array according to each target signal combination; Specifically, after receiving the original input signal and determining the optional value of the self-test signal, the field programmable gate array FPGA determines at least one target signal combination based on the original input signal. It can be understood that the target signal combination is used to characterize how the optional values ​​of the original input signal and the self-test signal are input into the functional unit, and the functional unit is used to perform specific processing on the input signal, such as algorithm processing, data processing, data parsing, etc. of the target operation. For example, the target signal combination includes a first input signal and a second input signal, the first input signal is determined based on the original input signal, and the second input signal is determined based on the optional value of the self-test signal, or the first input signal is determined based on the optional value of the self-test signal, and the second input signal is determined based on the original input signal.

[0034] After at least one target signal combination is determined, a target operation is performed on each target signal combination to obtain a target operation result of each target signal combination. Further, the target operation result of each target signal combination is determined as a target operation result of a field programmable gate array FPGA.

[0035] Step 104: Send the target operation result to the processor; the target operation result is used by the processor to determine whether there is any abnormality in the function of the hardware system according to the target operation result.

[0036] Specifically, after determining the target operation result, the field programmable gate array FPGA sends the target operation result to the processor.

[0037] After receiving the target operation result, the processor uses the target operation result to determine whether there is an abnormality in the function of the hardware system based on the target operation result. Exemplarily, the target operation result is compared with a preset comparison result to determine whether there is an abnormality in the function of the hardware system. If the target operation result is consistent with the preset comparison result, it is determined that the function of the hardware system is normal. If the target operation result is inconsistent with the preset comparison result, it is determined that there is an abnormality in the function of the hardware system.

[0038] In the method provided in this embodiment, the method is applied to a field programmable logic gate array in a hardware system detection system, and the hardware system detection system includes a field programmable logic gate array and a processor. First, an original input signal is received, and an optional value of a self-test signal is determined based on the original input signal; then, according to the optional values ​​of the original input signal and the self-test signal, at least one target signal combination is determined, and a target operation result of the field programmable logic gate array is determined according to each target signal combination; then, the target operation result is sent to the processor, wherein the target operation result is used for the processor to determine whether there is an abnormality in the function of the hardware system according to the target operation result.

[0039] The field programmable logic gate array in the present invention determines at least one target signal combination according to the optional values ​​of the original input signal and the self-test signal, and determines the target operation result based on the target signal combination. Then, after receiving the target operation result, the processor determines whether there is an abnormality in the function of the hardware system according to the target operation result, thereby realizing real-time detection of whether the function of the hardware system is normal and improving the accuracy of hardware system detection.

[0040] Optionally, the field programmable logic gate array includes a state machine, a first functional unit and a second functional unit; the first functional unit and the second functional unit are parallel functional units, and the same target operation is performed in the first functional unit and the second functional unit; the number of optional values ​​of the self-test signal is a preset number; each target signal combination includes a first input signal input into the first functional unit and a second input signal input into the second functional unit; and at least one target signal combination is determined according to the optional values ​​of the original input signal and the self-test signal, including: Determine the original input signal as the first input signal; Determining a second input signal according to a preset number of selectable values ​​of the self-test signals; Using a state machine, combining the first input signal and the second input signal to obtain at least one target signal combination; and / or,

[0041] Determining a first input signal according to a preset number of selectable values ​​of self-test signals; determining the original input signal as a second input signal; The first input signal and the second input signal are combined by using a state machine to obtain at least one target signal combination.

[0042] Specifically, in some embodiments, the field programmable gate array FPGA includes a state machine, a first functional unit and a second functional unit, wherein the state machine is used to switch the original input signal and the self-test signal, thereby outputting different target signal combinations to the functional unit.

[0043] Further, it can be understood that the functional unit is a module that performs specific processing on the original input signal when the field programmable logic gate array FPGA is working normally, wherein, for example, the functional unit of the field programmable logic gate array FPGA is instantiated twice as the first functional unit and the second functional unit, respectively, the first functional unit and the second functional unit are parallel functional units, and the first functional unit and the second functional unit perform the same target operation or the same data processing. That is to say, based on the parallelism of the FPGA, the two functional units run at the same time and have exactly the same functions, except that the input signals are different.

[0044] Furthermore, the number of optional values ​​of the self-test signal input to the state machine is a preset number, for example, two typical values ​​a0 and a1 of the original input signal, and for another example, two typical values ​​a0, a1, a2, and a3 of the original input signal. After the state machine receives the self-test signal and the original input signal, it switches the self-test signal and the original input signal to obtain different target signal combinations, that is, to switch to different states of the state machine. Each target signal combination includes a first input signal input to the first functional unit and a second input signal input to the second functional unit.

[0045] The following takes the two typical values ​​a0 and a1 of the self-test signal as the original input signal as an example to illustrate the process of determining the combination of each target signal according to the optional values ​​of the original input signal and the self-test signal: First, the original input signal sig is determined as the first input signal; then, the second input signal is determined according to a preset number of optional values ​​of the self-test signal, for example, the optional value of the self-test signal is two, which are two typical values ​​a0 and a1 of the original input signal, and the second input signal is a0 and a1. The first input signal and the second input signal are combined by the state machine to obtain at least one target signal combination.

[0046] Exemplarily, target signal combination 1: “first input signal: original input signal sig; second input signal: a0”; target signal combination 2: “first input signal: original input signal sig; second input signal: a1”.

[0047] And / or, determining the target signal combination as follows: First, the first input signal is determined according to a preset number of optional values ​​of the self-test signal. For example, if the optional value of the self-test signal is two, which are two typical values ​​a0 and a1 of the original input signal, then the second input signal is a0 and a1. Then, the original input signal sig is determined as the second input signal. Further, the first input signal and the second input signal are combined by using a state machine to obtain at least one target signal combination.

[0048] Exemplarily, target signal combination 3: "first input signal: a0; second input signal: original input signal sig"; target signal combination 4: "first input signal: a1; second input signal: original input signal sig."

[0049] Further, after determining the first input signal and the second input signal in the target signal combination, the first input signal is input to the first functional unit, and the second input signal is input to the second functional unit, and specific target operations are performed respectively.

[0050] For example, Figure 3 is a schematic diagram of the effect of the target signal combination provided by the present invention, such as Figure 3 As shown, there are four target signal combinations, namely s0, s1, s2, and s3, that is, the four states of the state machine are s0, s1, s2, and s3. Among them, the four target signal combinations are as follows: s0: in1=sig, in2=a0; s1: in1=a0, in2=sig; s2: in1=a1, in2=sig; s3:in1=sig,in2=a1.

[0051] Among them, in1 represents the first input signal, which is subsequently input to the first functional unit for target operation to obtain the first operation result, and in2 represents the second input signal, which is subsequently input to the second functional unit for target operation to obtain the second operation result.

[0052] It should be noted that the state machine switching conditions 0 to 3 may be periodic automatic switching or may be switched by receiving an external command, which is not limited in this embodiment.

[0053] In the method provided in this embodiment, the field programmable logic gate array includes a state machine, a first functional unit and a second functional unit. The state machine is used to switch the state, i.e., the target signal combination, so that the functional unit is used to perform a target operation on the input signal. The first functional unit and the second functional unit are parallel functional units, and each target signal combination includes a first input signal input to the first functional unit and a second input signal input to the second functional unit. According to the optional values ​​of the original input signal and the self-test signal, at least one target signal combination can be determined, so that different target signal combinations are input to the functional unit to perform a specific target operation, and then the target operation result is sent to the processor, so that the processor determines whether the function of the hardware system based on the field programmable logic gate array is abnormal based on the target operation result, thereby improving the accuracy of hardware system detection.

[0054] Optionally, determining a target operation result of a field programmable logic gate array according to each target signal combination includes: For each target signal combination, using the first functional unit to perform a target operation on the first input signal in each target signal combination, to obtain a first operation result of the first functional unit corresponding to each target signal combination; Using the second functional unit to perform a target operation on the second input signal in each target signal combination, to obtain a second operation result of the second functional unit corresponding to each target signal combination; The first operation result of the first functional unit and the second operation result of the second functional unit corresponding to each target signal combination are determined as the target operation result of the field programmable logic gate array.

[0055] Specifically, after obtaining each target signal combination, the first input signal in each target signal combination is input to the first functional unit, and the second input signal is input to the second functional unit, and the first functional unit and the second functional unit are used to process the respective input signals. In some embodiments, the process of determining the target operation result of the field programmable logic gate array in step 102 is exemplified as follows: First, for each target signal combination, the first functional unit is used to perform a target operation on the first input signal in each target signal combination, and the first operation result of the first functional unit corresponding to each target signal combination is obtained; at the same time, the second functional unit is used to perform a target operation on the second input signal in each target signal combination, and the second operation result of the second functional unit corresponding to each target signal combination is obtained. It can be understood that because the optional value of the self-test signal is a typical value predetermined by the original input signal, the result of passing through the functional unit is known and determined when the hardware system functions normally. The comparison result of the self-test signal passing through the functional unit is calculated, for example, by the computing tool matlab, and the comparison result of the self-test signal passing through the functional unit and the actual calculation result of the self-test signal are used as a control group to determine whether the function of the hardware system is abnormal.

[0056] Furthermore, the first operation result of the first functional unit and the second operation result of the second functional unit corresponding to each target signal combination are determined as the target operation result of the field programmable logic gate array.

[0057] Exemplarily, when the first input signal is a self-test signal, the first operation result of the first functional unit is compared with the control result of the self-test signal after passing through the functional unit to determine whether the two are consistent. If the two are consistent, it is determined that the function of the hardware system is normal; if the two are inconsistent, it is determined that the function of the hardware system is abnormal.

[0058] When the second input signal is a self-test signal, the second operation result of the second functional unit is compared with the control result of the self-test signal after the functional unit to determine whether the two are consistent. If the two are consistent, it is determined that the function of the hardware system is normal; if the two are inconsistent, it is determined that the function of the hardware system is abnormal.

[0059] Figure 4 FIG. 1 is a schematic diagram showing the principle of the hardware system detection method provided by the present invention, which shows the process of determining the target operation result by the field programmable logic gate array. Figure 4 As shown, the method includes: First, the optional value a of the self-test signal and the original input signal sig are input into the state machine of the programmable logic gate array FPGA; Then, the state machine switches the original input signal sig and the optional value a of the self-test signal, outputs different target signal combinations to the functional units, the target signal combination includes the first input signal in1 and the second input signal in2, inputs the first input signal to the first functional unit, and inputs the second input signal to the second functional unit; Furthermore, the operation results of the first functional unit and the second functional unit, that is, the FPGA state, are output to the processor, and the input is controlled according to the feedback result of the processor.

[0060] In the method provided in this embodiment, for each target signal combination, a first functional unit is used to perform a target operation on the first input signal in each target signal combination to obtain a first operation result of the first functional unit corresponding to each target signal combination, and a second functional unit is used to perform a target operation on the second input signal in each target signal combination to obtain a second operation result of the second functional unit corresponding to each target signal combination. Then, the first operation result of the first functional unit and the second operation result of the second functional unit corresponding to each target signal combination are determined as the target operation result of the field programmable logic gate array, and the target operation result is sent to the processor, so that the processor determines whether the function of the hardware system based on the field programmable logic gate array is abnormal based on the comparison result of the target operation result and the self-test signal through the functional unit, thereby improving the accuracy of hardware system detection.

[0061] Optionally, sending the target operation result to the processor includes: The target operation result, each target signal combination, the signal type flag of the first input signal in each target signal combination, and the signal type flag of the second input signal in each target signal combination are sent to the processor.

[0062] Specifically, in some embodiments, the process of sending the target operation result to the processor can be implemented by the following steps: The target operation result, each target signal combination, the signal type flag of the first input signal in each target signal combination, and the signal type flag of the second input signal in each target signal combination are sent to the processor. The target operation result is obtained after the target operation is performed on each target signal combination (the first input signal and the second input signal), and the target operation result includes the first operation result and the second operation result. The first operation result is obtained by the first functional unit performing the target operation on the first input signal, and the second operation result is obtained by the second functional unit performing the target operation on the second input signal. The first input signal and the second input signal each have a corresponding signal type flag. For example, the signal type flag of the first input signal is the original input signal, and the signal type flag of the second input signal is an optional value of the self-test signal (for example, a typical value of the original input signal). For another example, the signal type flag of the first input signal is an optional value of the self-test signal (for example, a typical value of the original input signal), and the signal type flag of the second input signal is the original input signal.

[0063] It can be understood that, since the optional value of the self-test signal (such as the typical value of the original input signal) is a predetermined typical value, the result after passing through the functional unit is known and determined, and the processor can determine whether the function of the corresponding functional unit is abnormal through the operation result of the optional value of the self-test signal after passing through the corresponding functional unit. Furthermore, since the first functional unit and the second functional unit are parallel functional units, the processor can determine whether the function of the parallel functional units is normal, and further determine whether the function of the FPGA-based hardware system is normal, thereby achieving accuracy in hardware system detection.

[0064] In the method provided in this embodiment, the FPGA sends the target operation result, each target signal combination, the signal type flag of the first input signal in each target signal combination, and the signal type flag of the second input signal in each target signal combination to the processor, so that the processor can judge whether there is any abnormality in the function of the FPGA-based hardware system according to the target operation result and the signal type flag in each target signal combination, thereby improving the reliability and security of the system.

[0065] Figure 5 This is the second structural diagram of the hardware system detection system provided by the present invention, such as Figure 5 As shown, the hardware system detection system 500 includes a field programmable logic gate array 510 and a processor 520; The field programmable logic gate array 510 is used to receive an original input signal; determine an optional value of a self-test signal based on the original input signal; determine at least one target signal combination according to the original input signal and the optional value of the self-test signal, and determine a target operation result of the field programmable logic gate array according to each target signal combination; and send the target operation result to the processor; The processor 520 is used to determine whether there is an abnormality in the function of the hardware system according to the target operation result.

[0066] Specifically, it should be noted that the hardware system detection system in the present invention is used to detect the hardware system and improve the accuracy of hardware system detection. The hardware system detection system 500 includes a field programmable logic gate array 510 and a processor 520, wherein the functions of each module are as follows: The field programmable logic gate array 510 is used to receive the original input signal; determine the optional value of the self-test signal based on the original input signal; wherein the original input signal can be a sampled hardware system voltage, current and other analog quantities, or a data stream and other signals, and the optional value of the self-test signal is determined based on the original input signal. For example, the typical value of the original input signal sig is selected as the optional value of the self-test signal. This scheme is detailed by taking the selection of two typical values ​​as an example, and the two typical values ​​are a0 and a1 respectively.

[0067] Then, according to the optional values ​​of the original input signal and the self-test signal, at least one target signal combination is determined, and the target operation result of the field programmable logic gate array is determined according to each of the target signal combinations. Specifically, after receiving the optional values ​​of the original input signal and the self-test signal, the field programmable logic gate array FPGA determines at least one target signal combination based on the input signal. It can be understood that the target signal combination is used to characterize how the optional values ​​of the original input signal and the self-test signal are input into the functional unit, and the functional unit is used to perform specific processing on the input signal, such as algorithm processing, data processing, data parsing, etc. of the target operation. For example, the target signal combination includes a first input signal and a second input signal, the first input signal is determined based on the original input signal, and the second input signal is determined based on the optional value of the self-test signal, or the first input signal is determined based on the optional value of the self-test signal, and the second input signal is determined based on the original input signal. After determining at least one target signal combination, the target operation is performed on each target signal combination to obtain the target operation result of each target signal combination. Further, the target operation result of each target signal combination is determined as the target operation result of the field programmable logic gate array FPGA.

[0068] Furthermore, after determining the target operation result, the field programmable gate array FPGA sends the target operation result to the processor.

[0069] The processor 520 is used to determine whether there is an abnormality in the function of the hardware system according to the target operation result. Specifically, after the processor receives the target operation result, the target operation result is used by the processor to determine whether there is an abnormality in the function of the hardware system based on the target operation result. Exemplarily, the target operation result is compared with a preset control result to determine whether there is an abnormality in the function of the hardware system. When the target operation result is consistent with the preset control result, it is determined that the function of the hardware system is normal. When the target operation result is inconsistent with the preset control result, it is determined that there is an abnormality in the function of the hardware system.

[0070] The hardware system detection system provided in this embodiment includes a field programmable logic gate array 510 and a processor 520. The field programmable logic gate array 510 is first used to receive an original input signal and determine an optional value of a self-test signal based on the original input signal; then, according to the original input signal and the optional value of the self-test signal, at least one target signal combination is determined, and according to each target signal combination, a target operation result of the field programmable logic gate array is determined; then, the target operation result is sent to the processor. The processor 520 is used to determine whether there is an abnormality in the function of the hardware system according to the target operation result.

[0071] The field programmable logic gate array in the present invention determines at least one target signal combination according to the optional values ​​of the original input signal and the self-test signal, and determines the target operation result based on the target signal combination. Then, after receiving the target operation result, the processor determines whether there is an abnormality in the function of the hardware system according to the target operation result, thereby realizing real-time detection of whether the function of the hardware system is normal and improving the accuracy of hardware system detection.

[0072] Optionally, the field programmable logic gate array includes a state machine, a first functional unit and a second functional unit; the first functional unit and the second functional unit are parallel functional units, and the same target operation is performed in the first functional unit and the second functional unit; the target signal combination is determined by using the state machine, and each target signal combination includes a first input signal input to the first functional unit and a second input signal input to the second functional unit; each target operation result is determined based on a first operation result of the first functional unit and a second operation result of the second functional unit corresponding to each target signal combination; Specifically, in some embodiments, a field programmable gate array FPGA includes a state machine, a first functional unit and a second functional unit. The state machine is used to switch the original input signal and the self-test signal, thereby outputting different target signal combinations to the functional unit. The first functional unit and the second functional unit are parallel functional units, and the same target operation or the same data processing is performed in the first functional unit and the second functional unit. That is to say, based on the parallelism of the FPGA, the two functional units run simultaneously and have exactly the same functions, except that the input signals are different.

[0073] The above-mentioned target signal combination is determined by using a state machine, and each target signal combination represents a different state of the state machine. Each target signal combination includes a first input signal input into the first functional unit and a second input signal input into the second functional unit. Each target operation result is determined based on the first operation result of the first functional unit and the second operation result of the second functional unit corresponding to each target signal combination.

[0074] In the system provided by the present embodiment, the field programmable logic gate array includes a state machine, a first functional unit and a second functional unit, the first functional unit and the second functional unit are parallel functional units, the same target operation is performed in the first functional unit and the second functional unit, the target signal combination is determined by the state machine, each target signal combination includes a first input signal input to the first functional unit and a second input signal input to the second functional unit, and each target operation result is determined based on the first operation result of the first functional unit and the second operation result of the second functional unit corresponding to each target signal combination. The processor determines whether the hardware system is abnormal based on the target operation result corresponding to the target signal combination, realizes real-time detection of whether the function of the hardware system is normal, and improves the accuracy of hardware system detection.

[0075] Optionally, the processor 520 is specifically configured to: For any target signal combination, when the first input signal in the target signal combination is determined according to the optional values ​​of a preset number of self-test signals, a first operation result of the first functional unit is compared with a preset operation result to obtain a first comparison result; the preset operation result is determined by using a target operation tool according to the optional values ​​of a preset number of self-test signals; Determining whether there is an abnormality in the function of the hardware system according to the first comparison result; In the case where the second input signal in the target signal combination is determined according to the selectable values ​​of a preset number of self-test signals, comparing the second operation result of the second functional unit with the preset operation result to obtain a second comparison result; According to the second comparison result, it is determined whether there is any abnormality in the function of the hardware system.

[0076] Specifically, in some embodiments, the process of the processor 520 determining whether the function of the hardware system is abnormal based on the target operation result is exemplified as follows: For any target signal combination, when the first input signal in the target signal combination is determined based on the optional values ​​of a preset number of self-test signals, the first operation result of the first functional unit is compared with the preset operation result to obtain a first comparison result; the optional value of the self-test signal is, for example, a typical value of the original input signal, and the operation result of the optional value of the self-test signal after specific processing is known and determined, that is, the comparison result of the self-test signal after the functional unit is the preset budget result, and the preset operation result is determined by using the target operation tool based on the optional values ​​of the preset number of self-test signals.

[0077] It is understandable that the first operation result of the first functional unit is compared with the preset operation result to obtain a first comparison result, and the first comparison result includes two situations: consistency or inconsistency. According to the first comparison result, it can be determined whether there is an abnormality in the function of the hardware system. For example, if the two are consistent, it is determined that there is no abnormality in the function of the hardware system; if the two are inconsistent, it is determined that there is an abnormality in the function of the hardware system.

[0078] Correspondingly, when the second input signal in the target signal combination is determined according to the optional value of a preset number of self-test signals, the second operation result of the second functional unit is compared with the preset operation result to obtain a second comparison result, and according to the second comparison result, it is determined whether there is an abnormality in the function of the hardware system. The second comparison result includes two situations: consistent or inconsistent, and it can be determined whether there is an abnormality in the function of the hardware system according to the second comparison result. For example, when the two are consistent, it is determined that there is no abnormality in the function of the hardware system; when the two are inconsistent, it is determined that there is an abnormality in the function of the hardware system.

[0079] In the system provided by the present embodiment, the field programmable logic gate array includes a state machine, a first functional unit and a second functional unit, the first functional unit and the second functional unit are parallel functional units, the same target operation is performed in the first functional unit and the second functional unit, the target signal combination is determined by the state machine, each target signal combination includes a first input signal input to the first functional unit and a second input signal input to the second functional unit, and each target operation result is determined based on the first operation result of the first functional unit and the second operation result of the second functional unit corresponding to each target signal combination. The processor determines whether the hardware system is abnormal based on the target operation result corresponding to the target signal combination, realizes real-time detection of whether the function of the hardware system is normal, and improves the accuracy of hardware system detection.

[0080] The hardware system detection device provided by the present invention is described below. The hardware system detection device described below and the hardware system detection method described above can be referenced to each other.

[0081] Figure 6 It is a structural schematic diagram of the hardware system detection device provided by the present invention. The hardware system detection device 600 is applied to the field programmable logic gate array in the hardware system detection system. The hardware system detection system includes the field programmable logic gate array and a processor. The hardware system detection device 600 includes a receiving module 610, a determining module 620 and a sending module 630.

[0082] The receiving module 610 is used to receive an original input signal; A determination module 620, configured to determine an optional value of a self-test signal based on the original input signal; determine at least one target signal combination according to the original input signal and the optional value of the self-test signal, and determine a target operation result of the field programmable logic gate array according to each target signal combination; The sending module 630 is used to send the target operation result to the processor; the target operation result is used by the processor to determine whether there is an abnormality in the function of the hardware system according to the target operation result.

[0083] In the device provided in this embodiment, the device is applied to a field programmable logic gate array in a hardware system detection system, and the hardware system detection system includes a field programmable logic gate array and a processor. First, the receiving module 610 is used to receive the original input signal; then, the determination module 620 determines the optional value of the self-test signal based on the original input signal, determines at least one target signal combination according to the optional values ​​of the original input signal and the self-test signal, and determines the target operation result of the field programmable logic gate array according to each target signal combination; then, the sending module 630 is used to send the target operation result to the processor, wherein the target operation result is used for the processor to determine whether there is an abnormality in the function of the hardware system according to the target operation result.

[0084] The field programmable logic gate array in the present invention determines at least one target signal combination according to the optional values ​​of the original input signal and the self-test signal, and determines the target operation result based on the target signal combination. Then, after receiving the target operation result, the processor determines whether there is an abnormality in the function of the hardware system according to the target operation result, thereby realizing real-time detection of whether the function of the hardware system is normal and improving the accuracy of hardware system detection.

[0085] Optionally, the field programmable logic gate array includes a state machine, a first functional unit and a second functional unit; the first functional unit and the second functional unit are parallel functional units, and the same target operation is performed in the first functional unit and the second functional unit; the number of optional values ​​of the self-test signal is a preset number; each of the target signal combinations includes a first input signal input to the first functional unit and a second input signal input to the second functional unit; the determination module 620 is specifically used to: Determine the original input signal as the first input signal; Determining the second input signal according to a preset number of optional values ​​of the self-test signals; Using the state machine, combining the first input signal and the second input signal to obtain the at least one target signal combination; and / or,

[0086] Determining the first input signal according to a preset number of optional values ​​of the self-test signals; Determine the original input signal as the second input signal; The first input signal and the second input signal are combined by using the state machine to obtain the at least one target signal combination.

[0087] Optionally, the determining module 620 is further configured to: For each of the target signal combinations, using the first functional unit to perform the target operation on the first input signal in each of the target signal combinations, to obtain a first operation result of the first functional unit corresponding to each of the target signal combinations; Using the second functional unit to perform the target operation on the second input signal in each of the target signal combinations, to obtain a second operation result of the second functional unit corresponding to each of the target signal combinations; The first operation result of the first functional unit and the second operation result of the second functional unit corresponding to each target signal combination are determined as the target operation result of the field programmable logic gate array.

[0088] Optionally, the sending module 630 is specifically configured to: The target operation result, each of the target signal combinations, the signal type flag of the first input signal in each of the target signal combinations, and the signal type flag of the second input signal in each of the target signal combinations are sent to the processor.

[0089] Figure 7 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 7 As shown, the electronic device may include: a processor (processor) 710, a communication interface (Communications Interface) 720, a memory (memory) 730 and a communication bus 740, wherein the processor 710, the communication interface 720, and the memory 730 communicate with each other through the communication bus 740. The processor 710 may call the logic instructions in the memory 730 to execute the hardware system detection method, which is applied to the field programmable logic gate array in the hardware system detection system, and the hardware system detection system includes the field programmable logic gate array and the processor, and the method includes: receiving an original input signal; Determining a selectable value of a self-test signal based on the original input signal; Determine at least one target signal combination according to the optional values ​​of the original input signal and the self-test signal, and determine a target operation result of the field programmable logic gate array according to each of the target signal combinations; The target operation result is sent to the processor; the target operation result is used by the processor to determine whether there is an abnormality in the function of the hardware system according to the target operation result.

[0090] In addition, the logic instructions in the above-mentioned memory 730 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0091] On the other hand, the present invention further provides a computer program product, the computer program product includes a computer program, the computer program can be stored on a non-transitory computer-readable storage medium, when the computer program is executed by a processor, the computer can execute the hardware system detection method provided by the above methods, the method is applied to a field programmable logic gate array in a hardware system detection system, the hardware system detection system includes the field programmable logic gate array and a processor, the method includes: receiving an original input signal; Determining a selectable value of a self-test signal based on the original input signal; Determine at least one target signal combination according to the optional values ​​of the original input signal and the self-test signal, and determine a target operation result of the field programmable logic gate array according to each of the target signal combinations; The target operation result is sent to the processor; the target operation result is used by the processor to determine whether there is an abnormality in the function of the hardware system according to the target operation result.

[0092] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the hardware system detection method provided by the above methods is implemented. The method is applied to a field programmable logic gate array in a hardware system detection system. The hardware system detection system includes the field programmable logic gate array and a processor. The method includes: receiving an original input signal; Determining a selectable value of a self-test signal based on the original input signal; Determine at least one target signal combination according to the optional values ​​of the original input signal and the self-test signal, and determine a target operation result of the field programmable logic gate array according to each of the target signal combinations; The target operation result is sent to the processor; the target operation result is used by the processor to determine whether there is an abnormality in the function of the hardware system according to the target operation result.

[0093] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0094] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0095] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A hardware system detection method, characterized in that: A field programmable logic gate array applied to a hardware system detection system, the hardware system detection system comprising the field programmable logic gate array and a processor, the method comprising: receiving an original input signal; Determining a selectable value of a self-test signal based on the original input signal; Determine at least one target signal combination according to the optional values ​​of the original input signal and the self-test signal, and determine a target operation result of the field programmable logic gate array according to each of the target signal combinations; The target operation result is sent to the processor; the target operation result is used by the processor to determine whether there is an abnormality in the function of the hardware system according to the target operation result.

2. The hardware system detection method according to claim 1, characterized in that: The field programmable logic gate array includes a state machine, a first functional unit and a second functional unit; the first functional unit and the second functional unit are parallel functional units, and the same target operation is performed in the first functional unit and the second functional unit; the number of optional values ​​of the self-test signal is a preset number; each of the target signal combinations includes a first input signal input to the first functional unit and a second input signal input to the second functional unit; The determining at least one target signal combination according to the optional values ​​of the original input signal and the self-test signal comprises: Determine the original input signal as the first input signal; Determining the second input signal according to a preset number of optional values ​​of the self-test signals; Using the state machine, combining the first input signal and the second input signal to obtain the at least one target signal combination; and / or, Determining the first input signal according to a preset number of optional values ​​of the self-test signals; Determine the original input signal as the second input signal; The first input signal and the second input signal are combined by using the state machine to obtain the at least one target signal combination.

3. The hardware system detection method according to claim 2, characterized in that: Determining the target operation result of the field programmable logic gate array according to each target signal combination includes: For each of the target signal combinations, using the first functional unit to perform the target operation on the first input signal in each of the target signal combinations, to obtain a first operation result of the first functional unit corresponding to each of the target signal combinations; Using the second functional unit to perform the target operation on the second input signal in each of the target signal combinations, to obtain a second operation result of the second functional unit corresponding to each of the target signal combinations; The first operation result of the first functional unit and the second operation result of the second functional unit corresponding to each target signal combination are determined as the target operation result of the field programmable logic gate array.

4. The hardware system detection method according to claim 2, characterized in that: The sending the target operation result to the processor includes: The target operation result, each of the target signal combinations, the signal type flag of the first input signal in each of the target signal combinations, and the signal type flag of the second input signal in each of the target signal combinations are sent to the processor.

5. A hardware system detection system, characterized in that: The hardware system detection system includes a field programmable logic gate array and a processor; The field programmable logic gate array is used to receive an original input signal; determine an optional value of a self-test signal based on the original input signal; determine at least one target signal combination according to the original input signal and the optional value of the self-test signal, and determine a target operation result of the field programmable logic gate array according to each target signal combination; and send the target operation result to the processor; The processor is used to determine whether there is an abnormality in the function of the hardware system according to the target operation result.

6. The hardware system detection system according to claim 5, characterized in that: The field programmable logic gate array includes a state machine, a first functional unit and a second functional unit; the first functional unit and the second functional unit are parallel functional units, and the same target operation is performed in the first functional unit and the second functional unit; the target signal combination is determined by using the state machine, and each target signal combination includes a first input signal input into the first functional unit and a second input signal input into the second functional unit; each target operation result is determined based on the first operation result of the first functional unit and the second operation result of the second functional unit corresponding to each target signal combination.

7. The hardware system detection system according to claim 6, characterized in that: The processor is specifically used for: For any of the target signal combinations, when the first input signal in the target signal combination is determined according to a preset number of optional values ​​of the self-test signals, a first operation result of the first functional unit is compared with a preset operation result to obtain a first comparison result; the preset operation result is determined by using a target operation tool according to the preset number of optional values ​​of the self-test signals; Determining whether there is an abnormality in the function of the hardware system according to the first comparison result; In the case where the second input signal in the target signal combination is determined according to the selectable values ​​of a preset number of the self-test signals, comparing the second operation result of the second functional unit with the preset operation result to obtain a second comparison result; According to the second comparison result, it is determined whether there is any abnormality in the function of the hardware system.

8. A hardware system detection device, characterized in that: A field programmable logic gate array used in a hardware system detection system, the hardware system detection system comprising the field programmable logic gate array and a processor, the device comprising: A receiving module, used for receiving an original input signal; a determination module, configured to determine an optional value of a self-test signal based on the original input signal; determine at least one target signal combination according to the original input signal and the optional value of the self-test signal, and determine a target operation result of the field programmable logic gate array according to each of the target signal combinations; The sending module is used to send the target operation result to the processor; the target operation result is used by the processor to determine whether there is an abnormality in the function of the hardware system according to the target operation result.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the hardware system detection method according to any one of claims 1 to 4 is implemented.

10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the hardware system detection method according to any one of claims 1 to 4 is implemented.

11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the hardware system detection method according to any one of claims 1 to 4 is implemented.