Detection method and device, electronic equipment and computer readable medium
By acquiring the target working scenarios and determining the target masking rules in the configuration storage unit, the detection strategies for different frame addresses solve the problem of high false alarm rate of existing soft failure detection methods, and improve the accuracy and efficiency of detection.
Patent Information
- Application Number
- CN202411309324.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-19
- Publication Date
- 2025-02-25
AI Technical Summary
The existing soft failure error reporting methods will generate false alarms during device application, and the accuracy of soft failure detection needs to be improved.
By obtaining the target work scenario where the storage unit is configured, the target masking rules are determined based on the target work scenario. Among the multiple frame addresses of the configuration storage unit, bitstream data detection is not performed for the frame addresses that meet the target masking rules, and the target masking rules is not met. The regular frame address performs bitstream data detection.
It improves the accuracy and efficiency of soft failure detection, reduces the need to detect all bitstream data, and avoids false positives.
Smart Images

Figure CN119512803A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of integrated circuit technology, and more specifically, to a detection method, device, electronic device and computer-readable medium. Background Art
[0002] When high-energy subatomic particles travel through the silicon in large-scale circuit storage units, they are accompanied by the generation of free charges. These charges will accumulate in the circuit nodes in a very short time interval. When the charge accumulation exceeds a certain level, the stored bit stream data will change, causing system errors. Since the damage to the circuit caused by this change is not permanent, this phenomenon is called soft failure. Existing soft failure error reporting methods will produce false alarms during device application, and the accuracy of soft failure detection needs to be improved. Summary of the invention
[0003] The present application proposes a detection method, device, electronic device and computer-readable medium to improve the above-mentioned defects.
[0004] In a first aspect, the present application provides a detection method applied to the detection of a configuration storage unit, the method comprising: obtaining a target working scenario of the configuration storage unit; determining a target shielding rule based on the target working scenario; among multiple frame addresses of the configuration storage unit, not performing bit stream data detection for frame addresses that satisfy the target shielding rule, and performing bit stream data detection for frame addresses that do not satisfy the target shielding rule.
[0005] Optionally, for a possible implementation, among the multiple frame addresses of the configuration storage unit, bitstream data detection is not performed for the frame addresses that meet the target shielding rule, and bitstream data detection is performed for the frame addresses that do not meet the target shielding rule, including: determining the current frame address to be detected from the multiple frame addresses of the configuration storage unit as a reference frame address; judging whether the reference frame address meets the target shielding rule; if the target shielding rule is met, determining the next frame address to be detected, obtaining a new reference frame address, returning to execute judging whether the reference frame address meets the target shielding rule and subsequent steps; if the target shielding rule is not met, detecting the bitstream data of the reference frame address.
[0006] Optionally, for a possible implementation, determining the target shielding rules based on the target working scene includes: obtaining prior data, the prior data including standard working scenes and corresponding standard shielding rules; selecting a standard working scene that is the same as the target working scene from the prior data as a reference working scene; and using the standard shielding rules corresponding to the reference working scene as target shielding rules.
[0007] Optionally, for a possible implementation, before obtaining the prior data, it also includes: obtaining a standard working scene; obtaining a first detection result corresponding to each frame address in a configuration storage unit located in the standard working scene, and a second detection result of a logic block corresponding to each frame address; if the first detection result is an error, and the corresponding second detection result is correct, then the first detection result is determined to be a false alarm; using the frame address for which the first detection result is a false alarm as a shielded frame address, and saving it in a standard shielding rule corresponding to the standard working scene; determining the prior data based on the standard working scene and the corresponding standard shielding rule.
[0008] Optionally, for a possible implementation, the target shielding rule includes at least one shielding frame address, and before determining whether the reference frame address satisfies the target shielding rule, it also includes: determining whether there is a shielding frame address in the target shielding rule that is the same as the reference frame address; if there is a shielding frame address that is the same as the reference frame address, determining that the reference frame address satisfies the target shielding rule; if there is no shielding frame address that is the same as the reference frame address, determining that the reference frame address does not satisfy the target shielding rule.
[0009] Optionally, for a possible implementation, if the target shielding rule is not satisfied, after detecting the bit stream data of the reference frame address, it also includes: judging whether it is necessary to stop detecting; if it is necessary to stop detecting, stopping detecting the bit stream data of the reference frame address; if it is not necessary to stop detecting, adding one to the reference frame address to obtain a new reference frame address, and returning to execute judging whether the reference frame address satisfies the target shielding rule and subsequent steps.
[0010] Optionally, for a possible implementation, if the target shielding rule is not satisfied, then after detecting the bit stream data of the reference frame address, it also includes: determining whether there are multiple bits of continuous error data in the bit stream data in the configuration storage unit; if there are multiple bits of continuous error data, stopping detecting the data of the reference frame address; and sending the reference frame address corresponding to the multiple bits of continuous error data to a control end, wherein the control end is used to execute a maintenance strategy based on the reference frame address.
[0011] In the second aspect, the present application also provides a detection device, which is used for detecting a configuration storage unit, and the device includes: an acquisition unit, which is used to obtain a target working scenario of the configuration storage unit; a calculation unit, which is used to determine a target shielding rule based on the target working scenario; and a detection unit, which is used to not perform bit stream data detection on a frame address that meets the target shielding rule among multiple frame addresses of the configuration storage unit, and to perform bit stream data detection on a frame address that does not meet the target shielding rule.
[0012] In a third aspect, the present application also provides an electronic device, comprising: one or more processors; a memory; one or more applications, wherein the one or more applications are stored in the memory, the one or more applications are configured to be executed by the one or more processors, and the one or more applications are configured to execute the above method.
[0013] In a fourth aspect, the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a program code executable by a processor, and when the program code is executed by the processor, the processor executes the above method.
[0014] The solution provided in the present application is, first, to obtain the target working scenario of the configuration storage unit; second, to determine the target shielding rule based on the target working scenario; finally, among the multiple frame addresses of the configuration storage unit, bit stream data detection is not performed for the frame addresses that meet the target shielding rule, and bit stream data detection is performed for the frame addresses that do not meet the target shielding rule.
[0015] The present application proposes a detection method, which obtains the target working scenario of the configuration storage unit; determines the target shielding rule based on the target working scenario; among the multiple frame addresses of the configuration storage unit, does not perform bit stream data detection for the frame addresses that meet the target shielding rule, and performs bit stream data detection for the frame addresses that do not meet the target shielding rule. That is, by distinguishing the target working scenario of the configuration storage unit, determining the target shielding rule based on the target working scenario, and then performing detection based on the target shielding rule, it is possible to avoid detecting all bit stream data, thereby improving the efficiency of detection.
[0016] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0018] Figure 1 A method flow chart of the detection method provided in an embodiment of the present application is shown;
[0019] Figure 2 A method flow chart of a detection method provided by another embodiment of the present application is shown;
[0020] Figure 3 A method flow chart of a detection method provided by another embodiment of the present application is shown;
[0021] Figure 4 A method flow chart of a detection method provided by another embodiment of the present application is shown;
[0022] Figure 5 A method flow chart of a detection method provided by another embodiment of the present application is shown;
[0023] Figure 6 A method flow chart of a detection method provided by another embodiment of the present application is shown;
[0024] Figure 7 A method flow chart of a detection method provided by another embodiment of the present application is shown;
[0025] Figure 8 A method flow chart of a detection method provided by another embodiment of the present application is shown;
[0026] Fig. 9 A method flow chart of a detection method provided by another embodiment of the present application is shown;
[0027] Fig.10 The structure block diagram of the detection method device provided by the embodiment of the present application is shown;
[0028] Fig.11 A structural block diagram of an electronic device provided in an embodiment of the present application is shown;
[0029] Fig.12 A structural block diagram of another electronic device provided in an embodiment of the present application is shown;
[0030] Fig.13 A structural block diagram of a computer-readable storage medium provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0031] In order to make those skilled in the art better understand the present application scheme, the technical scheme in the present application embodiment will be clearly and completely described below in conjunction with the drawings in the present application embodiment. Obviously, the described embodiment is only a part of the present application embodiment, rather than all the embodiments. The components of the present application embodiment usually described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the present application for protection, but merely represents the selected embodiment of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0032] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0033] When high-energy subatomic particles travel through the silicon in large-scale circuit storage units, they are accompanied by the generation of free charges. These charges will accumulate in the circuit nodes in a very short time interval. When the charge accumulation exceeds a certain level, the stored bit stream data will change, causing system errors. Since the damage to the circuit caused by this change is not permanent, this phenomenon is called soft failure. Existing soft failure error reporting methods will produce false alarms during device application, and the accuracy of soft failure detection needs to be improved.
[0034] Therefore, in the embodiments of the present application, a detection method, device, electronic device and computer-readable medium are provided to solve or partially solve the above-mentioned problems.
[0035] See also Figure 1 , which shows a method flow chart of a detection method provided in an embodiment of the present application, which is applied to the detection of a configuration storage unit, and the method specifically includes steps S110 to S130.
[0036] Step S110: Acquire the target working scenario of the configuration storage unit.
[0037] It should be noted that the configuration storage unit is a memory of a programmable logic device, which is used to store configuration data of the programmable logic device. The programmable logic device may be a field programmable gate array (FPGA), a programmable array logic or a complex programmable logic device, and the configuration storage unit may be a static random access memory, a flash memory or a dynamic random access memory.
[0038] Exemplarily, after power-on, the FPGA reads configuration data from the configuration storage unit to configure internal logic blocks and I / O pins.
[0039] When the programmable logic device is put into use, the target working scenario of the configuration storage unit can be determined based on the application scenario of the programmable logic device. The target working scenarios include low-voltage differential signal transmission (LVDS), high-speed data transmission, navigation positioning, and flight control.
[0040] In one implementation environment, the user terminal issues an instruction to enable the programmable logic device to perform a task, that is, the target working scenario of the configuration storage unit can be determined according to the task performed by the programmable logic device.
[0041] Step S120: determining a target shielding rule based on the target working scenario.
[0042] It is important to know that in the aerospace field, in addition to soft failures, there are also noise and interference. Therefore, in different target working scenarios, the noise and interference faced may be different, and different noise and interference correspond to different shielding rules.
[0043] To this end, it is necessary to determine the target shielding rules based on the target working scenario.
[0044] Specifically, the target shielding rules can be determined from the prior data and the target working scene. For details, please refer to the subsequent embodiments.
[0045] Step S130: among the plurality of frame addresses configuring the storage unit, bit stream data detection is not performed for frame addresses satisfying the target masking rule, and bit stream data detection is performed for frame addresses not satisfying the target masking rule.
[0046] It should be noted that the configuration storage unit is used to store configuration bit stream data, and the configuration storage unit corresponds to multiple consecutive frame addresses, and one frame address can correspond to multiple bit stream data. For frame addresses that meet the target shielding rules, bit stream data detection is not performed, that is, soft failure detection is not performed. For frame addresses that do not meet the target shielding rules, bit stream data detection is performed, that is, soft failure detection is performed.
[0047] Specifically, there are multiple methods for soft failure detection.
[0048] In an optional embodiment, erroneous data may be detected by an error correction code (ECC) checking method, which detects bit stream data by adding redundant information to the original data.
[0049] Specifically, before the configuration storage unit obtains the configuration bit stream data, at the transmitting end of the configuration bit stream data, the configuration bit stream data is encoded into a data block, the data block includes the configuration bit stream data and a check bit, and the check bit is obtained by performing a mathematical operation on the information bit of the configuration bit stream data. When detecting the bit stream data, the decoder uses the same mathematical operation to calculate the check bit for the bit stream data stored in the configuration storage unit, and compares it with the received check bit. If the calculated check bit does not match the received check bit, it is said that there is erroneous data in the bit stream data stored in the configuration storage unit.
[0050] In an optional embodiment, erroneous data in the configuration storage unit can be detected by a cyclic redundancy check (CRC) method. The CRC check method detects errors in bit stream data by adding a check code before data is sent.
[0051] In an optional embodiment, the detection of erroneous data in the configuration bit stream data in the configuration storage unit may be implemented by a functional abnormality detection module of a programmable logic device.
[0052] Since the damage caused by soft failure to the circuit is not permanent, the error caused by soft failure can be repaired by reconfiguring the configuration bit stream data. The existing soft failure detection method is to detect all bit stream data in the configuration storage unit, which not only has low accuracy but also low detection efficiency.
[0053] The present application proposes a detection method, which obtains the target working scenario of the configuration storage unit; determines the target shielding rule based on the target working scenario; among the multiple frame addresses of the configuration storage unit, does not perform bit stream data detection for the frame addresses that meet the target shielding rule, and performs bit stream data detection for the frame addresses that do not meet the target shielding rule. That is, by distinguishing the target working scenario of the configuration storage unit, determining the target shielding rule based on the target working scenario, and then performing detection based on the target shielding rule, it is possible to avoid detecting all bit stream data, thereby improving the efficiency of detection.
[0054] See also Figure 2 , which shows a method flow chart of a detection method provided in an embodiment of the present application, which is applied to the detection of a configuration storage unit, and the method specifically includes steps S210 to S260.
[0055] Step S210: Acquire the target working scenario of the configuration storage unit.
[0056] Step S220: determining a target shielding rule based on the target working scenario.
[0057] Among them, step S210 and step S220 have been introduced in detail in the above embodiments and will not be repeated here.
[0058] Step S230: determining a frame address to be detected currently from the multiple frame addresses of the configuration storage unit as a reference frame address.
[0059] The configuration storage unit stores a plurality of frame addresses corresponding to the bit stream data, and determines a frame address to be detected currently as a reference frame address.
[0060] Step S240: Determine whether the reference frame address satisfies the target masking rule.
[0061] Specifically, the target shielding rule includes at least one shielding frame address, and the reference frame address can be compared with the shielding frame address to determine whether the reference frame address satisfies the target shielding rule. Please refer to the subsequent embodiments for details.
[0062] Step S250: If the target shielding rule is satisfied, then determine the next frame address to be detected, obtain a new reference frame address, and return to execute the determination of whether the reference frame address satisfies the target shielding rule and subsequent steps.
[0063] If the reference frame address satisfies the target shielding rule, it means that the data corresponding to the reference frame address does not need to be detected. The next frame address to be detected can be determined based on the reference frame data to obtain a new reference frame address. After obtaining the new reference frame address, continue to determine whether the reference frame address satisfies the target shielding rule and subsequent steps.
[0064] Step S260: If the target masking rule is not satisfied, the bit stream data of the reference frame address is detected.
[0065] If the reference frame address does not satisfy the target masking rule, it means that the data corresponding to the reference frame address needs to be detected, and the bit stream data corresponding to the reference frame address is detected.
[0066] The present application determines a reference frame address to be detected from multiple frame addresses of a configuration storage unit, and judges whether the reference frame address satisfies the target shielding rule based on the reference frame address and the target shielding rule. If the reference frame address satisfies the target shielding rule, the reference frame address is not detected. If the reference frame address does not satisfy the target shielding rule, the data of the reference frame address is detected, which can avoid detecting all configuration bit stream data and improve the detection efficiency.
[0067] See also Figure 3 , which shows a method flow chart of a detection method provided in an embodiment of the present application, which is applied to the detection of a configuration storage unit, and the method specifically includes steps S310 to S340.
[0068] Step S310: Acquire the target working scenario of the configuration storage unit.
[0069] Among them, step S310 has been introduced in detail in the above embodiment and will not be repeated here.
[0070] Step S320: Acquire prior data, where the prior data includes standard working scenarios and corresponding standard shielding rules.
[0071] It should be noted that the a priori data is data obtained in advance, and the a priori data includes standard working scenarios and corresponding standard shielding rules.
[0072] The standard working scenario is the working scenario in the actual application process. The noise and interference corresponding to each working scenario may be different. Since some configuration bit stream data are susceptible to noise interference and data are prone to errors, this part of the configuration bit stream data may not be detected, which can reduce the workload of detection and thus improve the efficiency of detection.
[0073] Step S330: Selecting a standard working scene that is the same as the target working scene from the prior data as a reference working scene.
[0074] It should be noted that the standard working scenario is obtained by obtaining prior data, and the standard working scenario includes multiple application scenarios, and the target application scenario is included in the standard application scenario. Therefore, the standard working scenario that is the same as the target working scenario can be selected from the prior data as the reference working scenario.
[0075] Step S340: Using the standard shielding rule corresponding to the reference working scenario as the target shielding rule. Among the multiple frame addresses of the configuration storage unit, bit stream data detection is not performed for frame addresses that meet the target shielding rule, and bit stream data detection is performed for frame addresses that do not meet the target shielding rule.
[0076] Among them, step S340 has been introduced in detail in the above embodiment and will not be repeated here.
[0077] See also Figure 4 , which shows a method flow chart of a detection method provided in an embodiment of the present application, which is applied to the detection of a configuration storage unit, and the method specifically includes steps S410 to S480.
[0078] Step S410: Acquire a standard working scene.
[0079] The work scene corresponding to each work task can be determined through previous work mode data, and the work scene can be determined as a standard work scene based on the work task.
[0080] Step S420: Acquire a first detection result corresponding to each frame address in the configuration storage unit of the standard working scene, and a second detection result of a logic block corresponding to each frame address.
[0081] It should be noted that the first detection result is the result of performing a soft failure detection on the data corresponding to the frame address, and the first detection result includes "correct" and "error". The second detection result is the result of performing a function detection on the logic block corresponding to the frame address, and the second detection result includes "correct" and "error".
[0082] Continuing with the above example, after the work scene is determined to be a standard work scene based on the work task, in the process of executing the work task, a first detection result corresponding to each frame address in the configuration storage unit of the standard work scene and a second detection result of the logic block corresponding to each frame address are obtained.
[0083] Step S430: If the first detection result is wrong and the corresponding second detection result is correct, then the first detection result is determined to be a false alarm.
[0084] If the first detection result corresponding to the frame address is detected to be an error, and the logic block corresponding to the frame address is normal, it indicates that the first detection result is an error, but the actual physical block corresponding to the frame address is not an error, which means that the first detection result corresponding to the frame address is a false alarm. In the process of performing soft failure detection on the frame address, due to the existence of noise interference, the soft failure detection is wrong or the first detection result is transmitted incorrectly, which ultimately leads to the first detection result being a false alarm.
[0085] Step S440: taking the frame address of which the first detection result is a false alarm as a shielded frame address, and saving it in a standard shielding rule corresponding to the standard working scenario.
[0086] Continuing with the above embodiment, in a standard working scenario, the frame address of a first detection result that is a false alarm is used as a shielding address and saved in a standard shielding rule corresponding to the standard working scenario. The shielding rule can be determined based on the working scenario later.
[0087] Furthermore, the first detection result corresponding to each frame address in the configuration storage unit of the standard working scene and the second detection result of the logic block corresponding to each frame address can be obtained multiple times; the number of false alarms of the first detection result of each frame address is accumulated, wherein, when the first detection result is wrong and the corresponding second detection result is correct, the first detection result is a false alarm; the frame address whose number of false alarms exceeds a threshold is used as a shielded frame address and saved in the standard shielding rule corresponding to the standard working scene.
[0088] It should be noted that the number of false alarms of the first detection result of each frame address is accumulated, that is, when a false alarm of the first detection result of the frame address is detected, the number of false alarms corresponding to the frame address is added by one. Finally, the number of false alarms corresponding to each frame address can be obtained. The higher the number of false alarms, the more susceptible the data of the frame address is to noise interference. For this reason, the present application uses the frame address whose number of false alarms exceeds the threshold as the shielded frame address and saves it to the standard shielding rule corresponding to the standard working scenario.
[0089] In an exemplary embodiment, the standard working scenes include: working scene A, working scene B and working scene C, the threshold is 5, the configuration storage unit includes 200 frame addresses, the frame addresses are numbered 1-200, the standard working scene is obtained as working scene A, the detection results of each frame address in the configuration storage unit under working scene A are obtained multiple times, and the number of false alarms of each frame address data is accumulated, and the number of false alarms corresponding to the frame addresses with the numbers 4, 22 and 65 exceeds the threshold, then frame address 4, frame address 22 and frame address 65 are used as shielded frame addresses. Save to the standard shielding rule corresponding to the standard working scene, that is, the standard shielding rule corresponding to the working scene A includes 3 shielded frame addresses, and the shielded frame addresses are numbered 4, 22 and 65 respectively.
[0090] Step S450: Determine prior data based on the standard working scenario and the corresponding standard shielding rules.
[0091] Continuing with the above-mentioned embodiment, the standard shielding rules corresponding to the A working scene can be obtained, including 3 shielding frame addresses. Similarly, the standard shielding rules corresponding to the B working scene can be obtained, and the standard shielding rules corresponding to the C working scene can be obtained. Prior data is determined according to multiple standard working scenes and the corresponding standard shielding rules.
[0092] Step S460: Obtain the target working scenario of the configuration storage unit.
[0093] Step S470: Acquire prior data, where the prior data includes standard working scenarios and corresponding standard shielding rules.
[0094] Step S480: Selecting a standard working scene that is the same as the target working scene from the prior data as a reference working scene.
[0095] Step S490: Using the standard shielding rule corresponding to the reference working scenario as the target shielding rule. Among the multiple frame addresses of the configuration storage unit, bit stream data detection is not performed for frame addresses that meet the target shielding rule, and bit stream data detection is performed for frame addresses that do not meet the target shielding rule.
[0096] Among them, steps S460 to S490 have been introduced in detail in the above embodiments and will not be repeated here.
[0097] See also Figure 5 , which shows a method flow chart of a detection method provided in an embodiment of the present application, which is applied to the detection of a configuration storage unit, and the method specifically includes steps S510 to S590.
[0098] Step S510: Acquire the target working scenario of the configuration storage unit.
[0099] Step S520: Determine a target shielding rule based on the target working scenario.
[0100] Step S530: determining a frame address to be detected currently from the multiple frame addresses of the configuration storage unit as a reference frame address.
[0101] Among them, step S510 and step S530 have been introduced in detail in the above embodiments and will not be repeated here.
[0102] Step S540: Determine whether there is a mask frame address in the target mask rule that is the same as the reference frame address.
[0103] Since the data of the shielding frame address is easily affected by noise interference and errors, when the configuration bit stream data is detected, the shielding frame data may not be detected. When the reference frame address is the same as the shielding frame address, the reference frame address does not need to be detected, which can save detection resources. To this end, it is necessary to determine whether there is a shielding frame address in the target shielding rule that is the same as the reference frame address.
[0104] Step S550: If there is a mask frame address that is the same as the reference frame address, it is determined that the reference frame address satisfies the target mask rule.
[0105] If there is a mask frame address that is the same as the reference frame address, it indicates that the frame address data to be detected currently does not need to be checked, and it is determined that the reference frame address satisfies the target masking rule.
[0106] Step S560: If there is no mask frame address that is the same as the reference frame address, it is determined that the reference frame address does not satisfy the target mask rule.
[0107] If there is no mask frame address that is the same as the reference frame address, it indicates that the frame address data to be detected currently needs to be checked to determine whether the reference frame address satisfies the target masking rule.
[0108] Step S570: Determine whether the reference frame address satisfies the target masking rule.
[0109] Step S580: If the target shielding rule is satisfied, then determine the next frame address to be detected, obtain a new reference frame address, and return to execute the determination of whether the reference frame address satisfies the target shielding rule and subsequent steps.
[0110] Step S590: If the target masking rule is not satisfied, the bit stream data of the reference frame address is detected.
[0111] Among them, step S570 and step S590 have been introduced in detail in the above embodiments and will not be repeated here.
[0112] See also Figure 6 , which shows a method flow chart of a detection method provided in an embodiment of the present application, which is applied to the detection of a configuration storage unit, and the method specifically includes steps S610 to S690.
[0113] Step S610: Acquire the target working scenario of the configuration storage unit.
[0114] Step S620: Determine a target shielding rule based on the target working scenario.
[0115] Step S630: determining a frame address to be detected currently from the multiple frame addresses of the configuration storage unit as a reference frame address.
[0116] Step S640: Determine whether the reference frame address satisfies the target masking rule.
[0117] Step S650: If the target shielding rule is satisfied, then determine the next frame address to be detected, obtain a new reference frame address, and return to execute the determination of whether the reference frame address satisfies the target shielding rule and subsequent steps.
[0118] Step S660: If the target masking rule is not satisfied, the bit stream data of the reference frame address is detected.
[0119] Among them, step S610 and step S660 have been introduced in detail in the above embodiments and will not be repeated here.
[0120] Step S670: Determine whether it is necessary to stop the detection.
[0121] It should be noted that when the host computer issues an instruction to stop detection, the detection needs to be stopped, and for this purpose it is necessary to determine whether the detection needs to be stopped.
[0122] Specifically, it may be determined whether the signal receiving end receives a stop signal, or it may be determined whether stopping is required based on a preset detection rule and a reference frame address.
[0123] Exemplarily, the configuration storage unit includes 200 frame addresses, the frame addresses are numbered 1-200, and the pre-set detection rule is to stop detection when the frame address 100 is detected, and to stop detection when the reference frame address 100 is detected.
[0124] Step S680: If it is necessary to stop the detection, then stop detecting the bit stream data of the reference frame address.
[0125] If it is necessary to stop the detection, then the detection of the bit stream data of the reference frame address is stopped.
[0126] It should be noted that after stopping detection, the configuration bit stream data can be reconfigured according to the detected error data and the address corresponding to the error data to repair the error data. The reconfiguration can be complete or partial, depending on actual needs.
[0127] Step S690: If it is not necessary to stop the detection, the reference frame address is increased by one to obtain a new reference frame address, and the process returns to execute the determination of whether the reference frame address satisfies the target shielding rule and subsequent steps.
[0128] If it is not necessary to stop the detection, it means that the bit stream data of the configuration storage unit needs to continue to be detected, then the reference frame address is increased by one to obtain a new reference frame address, and then it is determined whether the new reference frame address meets the target shielding rule and subsequent steps until the detection is stopped.
[0129] See also Figure 7 , which shows a method flow chart of a detection method provided in an embodiment of the present application, which is applied to the detection of a configuration storage unit, and the method specifically includes steps S710 to S790.
[0130] Step S710: Acquire the target working scenario of the configuration storage unit.
[0131] Step S720: Determine a target shielding rule based on the target working scenario.
[0132] Step S730: determining a frame address to be detected currently from the multiple frame addresses of the configuration storage unit as a reference frame address.
[0133] Step S740: Determine whether the reference frame address satisfies the target masking rule.
[0134] Step S750: If the target shielding rule is satisfied, then determine the next frame address to be detected, obtain a new reference frame address, and return to execute the determination of whether the reference frame address satisfies the target shielding rule and subsequent steps.
[0135] Step S760: If the target masking rule is not satisfied, the bit stream data of the reference frame address is detected.
[0136] Among them, step S710 and step S760 have been introduced in detail in the above embodiments and will not be repeated here.
[0137] Step S770: Determine whether there are multiple consecutive bits of erroneous data in the bit stream data in the configuration storage unit.
[0138] It should be noted that data errors caused by soft failures are mainly single-bit data errors, and uncorrectable errors usually cause continuous multi-bit bit stream data errors. Therefore, it is necessary to determine whether there are continuous multi-bit misaligned data in the bit stream data in the configuration storage unit, so as to distinguish whether the erroneous data is caused by soft failures or uncorrectable errors, and then implement different maintenance strategies for different detection results.
[0139] Step S780: If there are multiple bits of continuous erroneous data, stop detecting the data of the reference frame address.
[0140] It should be noted that single-bit erroneous data has little impact on the entire system and can be repaired after detection. However, continuous multi-bit erroneous data has a greater impact on the entire system. If the erroneous data is not corrected in time, it may have a greater negative impact on the entire system. Therefore, when continuous multi-bit erroneous data is detected, the detection of the reference frame address data is stopped.
[0141] Step S790: sending a reference frame address corresponding to the continuous multi-bit erroneous data to the control end, and the control end is used to execute a maintenance strategy based on the reference frame address.
[0142] After stopping the detection of the data of the reference frame address, the reference frame address corresponding to the continuous multi-bit error data can be sent to the control end, and the control end is used to execute a maintenance strategy based on the reference frame address. The maintenance strategy includes hardware maintenance and noise reduction processing.
[0143] Step S7100: If there are no consecutive multi-bit erroneous data, the reference frame address is increased by one to obtain a new reference frame address, and the process returns to execute the determination of whether the reference frame address satisfies the target shielding rule and subsequent steps.
[0144] See also Figure 8 , which shows a method flow chart of a detection method provided in an embodiment of the present application, which is applied to the detection of a configuration storage unit, and the method specifically includes steps S810 to S830.
[0145] Step S810: The user selects a shielding rule through the interface.
[0146] Step S820: Generate corresponding code with address matching check and control.
[0147] Step S830: Generate / download bitstream.
[0148] The user selects the masking rule through the tool interface, and then the tool generates the corresponding code with address matching check and control, and then generates and downloads the bit stream. The masking rule defines the corresponding frame address range based on the actual measurement results of noise and interference to avoid soft failure misjudgment caused by noise or interference.
[0149] See also Fig. 9 , which shows a method flow chart of a detection method provided in an embodiment of the present application, which is applied to the detection of a configuration storage unit, and the method specifically includes steps S910 to S940.
[0150] Step S910: configure the storage unit address to match and check whether it is a masked address.
[0151] Step S920: Determine it as a masked address.
[0152] Step S930: Jump to the non-masked address.
[0153] Step S940: Continue inspection.
[0154] After power-on, through the configuration of the host computer, when the device is in the soft failure inspection state, it will perform a matching check on the frame address of the configuration storage unit returned by the read-write interface; if the address matches, it is determined to be a masked address and automatically jumps to the non-masked address to continue the inspection; if the address does not match, the inspection continues; until the host computer notifies the inspection to stop, or an uncorrectable error is detected.
[0155] See also Fig.10 , which shows a structural block diagram of a testing device 600 provided in an embodiment of the present application. The testing device 600 includes: a computing unit 610, a collecting unit 620, and a detecting unit 630.
[0156] The acquisition unit 610 is used to obtain the target working scenario of the configuration storage unit.
[0157] The calculation unit 620 is used to determine a target shielding rule based on the target working scenario.
[0158] Furthermore, the computing unit 620 can also be used to obtain prior data, the prior data including standard working scenarios and corresponding standard shielding rules; select a standard working scenario that is the same as the target working scenario from the prior data as a reference working scenario; and use the standard shielding rules corresponding to the reference working scenario as target shielding rules.
[0159] Furthermore, the calculation unit 620 can also be used to obtain a standard working scenario; repeatedly obtain the detection results of each frame address in the configuration storage unit located in the standard working scenario, and accumulate the number of errors of each frame address data; use the frame address whose error number exceeds the threshold as a shielded frame address, and save it in the standard shielding rule corresponding to the standard working scenario; determine the prior data based on the standard working scenario and the corresponding standard shielding rule.
[0160] The detection unit 630 is configured to not perform bit stream data detection on frame addresses that meet the target masking rule among the multiple frame addresses of the configuration storage unit, and to perform bit stream data detection on frame addresses that do not meet the target masking rule.
[0161] Furthermore, the detection unit 630 can also be used to determine the current frame address to be detected from the multiple frame addresses of the configuration storage unit as a reference frame address; determine whether the reference frame address satisfies the target shielding rule; if the target shielding rule is satisfied, determine the next frame address to be detected, obtain a new reference frame address, return to execute the determination of whether the reference frame address satisfies the target shielding rule and subsequent steps; if the target shielding rule is not satisfied, detect the bit stream data of the reference frame address.
[0162] Furthermore, the detection unit 630 can also be used to determine whether there is a shielding frame address in the target shielding rule that is the same as the reference frame address; if there is a shielding frame address that is the same as the reference frame address, it is determined that the reference frame address satisfies the target shielding rule; if there is no shielding frame address that is the same as the reference frame address, it is determined that the reference frame address does not satisfy the target shielding rule.
[0163] Furthermore, the detection unit 630 can also be used to determine whether it is necessary to stop the detection; if it is necessary to stop the detection, then stop detecting the bit stream data of the reference frame address; if it is not necessary to stop the detection, then add one to the reference frame address to obtain a new reference frame address, and return to execute whether the reference frame address satisfies the target shielding rules and subsequent steps.
[0164] Furthermore, the detection unit 630 can also be used to determine whether there are multiple bits of continuous erroneous data in the bit stream data in the configuration storage unit; if there are multiple bits of continuous erroneous data, stop detecting the data of the reference frame address; and send the reference frame address corresponding to the multiple bits of continuous erroneous data to the control end, which is used to execute a maintenance strategy based on the reference frame address.
[0165] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0166] In several embodiments provided in the present application, the coupling between modules may be electrical, mechanical or other forms of coupling.
[0167] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.
[0168] Please refer to Fig.11 , Fig.11 The structural block diagram of an electronic device 700 provided in an embodiment of the present application is shown. The electronic device 700 may be a vehicle system, which may be arranged in a vehicle. The electronic device 700 in the present application may include one or more of the following components: a processor 711, a memory 712, and one or more application programs, wherein the processor 711 is electrically connected to the memory 712, and the one or more program configurations are used to execute the methods described in the various embodiments of the aforementioned test method.
[0169] The processor 711 may include one or more processing cores. The processor 711 uses various interfaces and lines to connect various parts of the entire electronic device 700, and executes various functions and processes data of the electronic device 700 by running or executing instructions, programs, code sets or instruction sets stored in the memory 712, and calling data stored in the memory 712. Optionally, the processor 711 can be implemented in at least one hardware form of digital signal processing (DSP), field programmable gate array (FPGA), and programmable logic array (PLA). The processor 711 can integrate one or a combination of a central processing unit (CPU), a graphics processor (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and computer programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 711, but may be implemented separately through a communication chip. Specifically, the method described in the above embodiments may be executed by one or more processors 711 .
[0170] For some embodiments, the memory 712 may include a random access memory (RAM) or a read-only memory (ROM). The memory 712 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 712 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function, instructions for implementing the following various method embodiments, etc. The data storage area may also store data created by the electronic device 700 during use, etc.
[0171] See also Fig.12 , which shows a structural block diagram of another electronic device 800 provided in an embodiment of the present application, 800 includes: a user control interface 713, a state machine controller 714, an ECC check and read-write interface 715, a configuration storage unit 716, and an address control module 717.
[0172] The user control interface 713 sends a control command to the state machine controller 714, and the state machine controller 714 starts the inspection according to the command. The state machine controller 714 automatically generates the next frame information according to the information of the current frame fed back by the ECC check and read-write interface 715, which includes the frame address. The address control module 717 checks the address generated by the state machine controller 714, and if it matches the masking rule, it is updated to a non-masked address and sent to the ECC check and read-write interface 715. The ECC check and read-write interface 715 is a control interface for the operation of the configuration storage unit 716.
[0173] Specifically, the ECC check and read-write interface 715 is used to detect the bit stream data stored in the configuration storage unit 716, and transmit the detection result and frame address information to the state machine controller 714. The state machine controller 714 transmits the frame address information to the address control module 717. The address control module 717 stores the target shielding rules of the present application. The address control module 717 can determine whether the frame address to be detected is a shielded address according to the target shielding rules. If the frame address to be detected is a shielded address, it jumps to the next frame address until it jumps to the non-shielded address, and then detects the address data. That is, the present application does not detect the data of the shielded address, but detects the non-shielded address, which can reduce the workload of detection and improve the accuracy of detection.
[0174] Please refer to Fig.13 , which shows a structural block diagram of a computer-readable medium provided in an embodiment of the present application. The computer-readable medium 900 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.
[0175] The computer readable medium 900 can be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable medium 900 includes a non-transitory computer-readable storage medium. The computer readable medium 900 has a storage space for program code 910 that performs any method step in the above method. These program codes can be read from or written into one or more computer program products. The program code 910 can be compressed, for example, in an appropriate form.
[0176] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application 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 cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A detection method, characterized in that: Applied to the detection of a configuration storage unit, the method comprises: Acquire a target working scenario of the configuration storage unit; Determining a target shielding rule based on the target working scenario; Among the plurality of frame addresses configuring the storage unit, bit stream data detection is not performed for frame addresses satisfying the target mask rule, and bit stream data detection is performed for frame addresses not satisfying the target mask rule.
2. The method according to claim 1, characterized in that The method of not performing bit stream data detection on a frame address that satisfies the target shielding rule and performing bit stream data detection on a frame address that does not satisfy the target shielding rule among the plurality of frame addresses of the configuration storage unit comprises: Determine a current frame address to be detected from a plurality of frame addresses of the configuration storage unit as a reference frame address; Determining whether the reference frame address satisfies the target shielding rule; If the target shielding rule is met, the next frame address to be detected is determined, a new reference frame address is obtained, and the process returns to execute the determination of whether the reference frame address meets the target shielding rule and subsequent steps; If the target masking rule is not satisfied, the bit stream data of the reference frame address is detected.
3. The method according to claim 1, characterized in that The determining of a target shielding rule based on the target working scenario includes: Acquiring prior data, wherein the prior data includes standard working scenarios and corresponding standard shielding rules; Selecting a standard work scene that is the same as the target work scene from the prior data as a reference work scene; The standard shielding rule corresponding to the reference working scenario is used as the target shielding rule.
4. The method according to claim 3, characterized in that Before obtaining the prior data, the method further includes: Get standard working scenarios; Acquire a first detection result corresponding to each frame address in a configuration storage unit of the standard working scene, and a second detection result of a logic block corresponding to each frame address; If the first detection result is wrong and the corresponding second detection result is correct, then determining that the first detection result is a false alarm; The frame address for which the first detection result is a false alarm is used as a shielded frame address, and is saved in a standard shielding rule corresponding to the standard working scenario; Prior data is determined based on the standard working scenario and the corresponding standard shielding rules.
5. The method according to claim 2, characterized in that: The target shielding rule includes at least one shielding frame address, and before determining whether the reference frame address satisfies the target shielding rule, the method further includes: Determining whether there is a mask frame address in the target mask rule that is the same as the reference frame address; If there is a mask frame address that is the same as the reference frame address, determining that the reference frame address satisfies the target mask rule; If there is no mask frame address that is the same as the reference frame address, it is determined that the reference frame address does not satisfy the target mask rule.
6. The method according to claim 2, characterized in that If the target shielding rule is not satisfied, after detecting the bit stream data of the reference frame address, the method further includes: Determine whether it is necessary to stop testing; If it is necessary to stop the detection, then stop detecting the bit stream data of the reference frame address; If it is not necessary to stop the detection, the reference frame address is increased by one to obtain a new reference frame address, and the process returns to execute the determination of whether the reference frame address satisfies the target shielding rule and subsequent steps.
7. The method according to claim 2, characterized in that If the target shielding rule is not satisfied, after detecting the bit stream data of the reference frame address, the method further includes: Determining whether there are multiple consecutive bits of erroneous data in the bit stream data in the configuration storage unit; If there are multiple bits of continuous erroneous data, stop detecting the data of the reference frame address; The reference frame address corresponding to the continuous multi-bit erroneous data is sent to the control end, and the control end is used to execute the maintenance strategy based on the reference frame address.
8. A detection device, characterized in that: Applicable to the detection of a configuration storage unit, the device comprises: A collection unit, used to obtain a target working scenario of the configuration storage unit; A calculation unit, configured to determine a target shielding rule based on the target working scenario; The detection unit is used to not perform bit stream data detection for frame addresses that meet the target shielding rule among the multiple frame addresses of the configuration storage unit, and to perform bit stream data detection for frame addresses that do not meet the target shielding rule.
9. An electronic device, characterized in that: include: one or more processors; Memory; One or more applications, wherein the one or more applications are stored in the memory, the one or more applications are configured to be executed by the one or more processors, and the one or more applications are configured to execute the method according to any one of claims 1-7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program codes, which can be called by a processor to execute the method according to any one of claims 1 to 7.