Automatic test method and device for fault coverage rate of March algorithm
By combining the memory failure model and the March algorithm model, the sensitization sequence and detection sequence of the fault primitives are automatically analyzed, and the problem of low efficiency of the March algorithm failure coverage analysis in traditional methods is solved, and the fault coverage automation in the MBIST circuit design is realized Analysis and efficiency improvement.
Patent Information
- Application Number
- CN202411163281.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-23
- Publication Date
- 2024-11-15
AI Technical Summary
Traditional methods are inefficient and prone to errors when obtaining the fault coverage rate of March algorithms, especially because there are many types of March algorithms and fault types, resulting in long time and high labor costs in MBIST circuit design.
Through the combination of memory failure model and March algorithm model, the index of sensitized sequences and detection sequences of fault primitives in March algorithm is automatically analyzed, the fault coverage analysis results are output, the test algorithm and memory are decoupled, and the collection of fault coverage is simplified. process.
It realizes the automated analysis of the fault coverage rate of March algorithm, improves the design efficiency of MBIST circuit, and can automatically analyze the coverage of static, dynamic and coupled faults without relying on the memory itself for statistics, simplifying the collection process of fault coverage.
Smart Images

Figure CN118969050A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of fault testing, specifically to the field of self-built test circuit design in memory, and more specifically to an automatic testing method and device for fault coverage of a March algorithm. Background Art
[0002] With the development of semiconductor technology, the characteristic size of chips continues to shrink, and the complexity of circuit systems has increased dramatically. System on Chip (SoC) reduces the development cycle of complex systems and the difficulty of chip design by reusing IP. SOC chips can meet the functional requirements of different application scenarios by integrating IP cores with different functions, and are widely used in computers, the Internet of Things, medical and other fields. As a data storage unit, embedded memory is one of the IPs with the largest number and the largest area in SOC chips. With the increase of chip memory capacity, the proportion of memory area to the total chip area has even reached about 90%. However, due to the close arrangement and large number of memories in SOC chips, the memories are more susceptible to device parameters and environmental changes and fail, which in turn affects the overall function of the chip. Therefore, in order to ensure the yield of the chip, it is necessary to establish a dedicated memory built-in self-test (MBIST) circuit to detect faults in the memory in the early stage of chip design.
[0003] Figure 1 The block diagram of the MBIST circuit is schematically shown. Figure 1As shown in FIG. 1 , the MBIST circuit is mainly composed of a test access port (TAP), a test algorithm storage unit, a finite state machine (FSM), a sequencer, and a data comparator. Among them, chip designers send instructions to the MBIST circuit through the TAP to control the test algorithm used by the MBIST circuit. The test algorithm storage unit is the core unit in the MBIST circuit. This unit stores the test process and data background of the memory built-in self-test algorithm such as March A, March 13n and March SS, and generates test data and test addresses that conform to the MBIST algorithm data background through the sequencer in the FSM control circuit. Finally, the data comparator detects the location where the fault occurs in the memory. The MBIST algorithm is the core part of the memory test, and the algorithm directly determines the fault detection effect of the MBIST circuit. Since the memory built-in self-test method was proposed, people have proposed a large number of MBIST algorithms, such as the checkerboard algorithm, the GALPAT algorithm and the March algorithm. Among them, the March algorithm is the most widely used memory test algorithm.
[0004] When designing MBSIT circuits, in order to reduce the area occupied by the circuit, the algorithm storage unit often only stores 2-3 test algorithms with high fault coverage. Therefore, before designing the circuit, chip designers first need to establish a fault model based on the fault behavior of the memory, then analyze the fault coverage of the test algorithm based on the model, and finally select the test algorithm with the highest fault coverage for memory testing to improve the test efficiency of the MBIST circuit. However, there are many types of March algorithms and fault types. The traditional method of obtaining algorithm coverage using fault simulation or inductive analysis is too inefficient, and manual calculation of March algorithm coverage is error-prone and time-consuming. Summary of the invention
[0005] In order to solve at least one of the above-mentioned technical problems generated by the prior art, the present disclosure provides a method and device for automatically testing fault coverage of a March algorithm.
[0006] According to a first aspect of the present disclosure, there is provided an automatic testing method for fault coverage of a March algorithm, comprising: obtaining a fault primitive of a memory to be tested and a March algorithm to be analyzed; wherein the number of the fault primitives is not less than 1; based on the March algorithm, using a memory fault model and a March algorithm model, creating a TC object corresponding to the fault primitive and a March object corresponding to the March algorithm; according to the March object and the TC object, analyzing the fault detection information of the fault primitive through the March algorithm model, obtaining the index of the sensitization sequence and the detection sequence corresponding to the fault primitive in the March algorithm; and counting the index of the sensitization sequence and the detection sequence corresponding to the fault primitive in the March algorithm, and outputting the fault coverage analysis result of the March algorithm.
[0007] In the embodiments of the present disclosure, due to the wide variety of March algorithm types and fault types, the efficiency of obtaining algorithm coverage by traditional fault simulation is too low. By implementing the embodiments of the present disclosure, the fault primitives of the memory to be tested and the March algorithm to be analyzed are obtained; wherein, the number of the above-mentioned fault primitives is not less than 1; based on the above-mentioned March algorithm, the TC objects corresponding to the above-mentioned fault primitives and the March objects corresponding to the above-mentioned March algorithm are created by using the memory fault model and the March algorithm model; according to the above-mentioned March object and the above-mentioned TC object, the fault detection information of the above-mentioned fault primitive is analyzed through the above-mentioned March algorithm model to obtain the indexes of the sensitization sequence and the detection sequence corresponding to the above-mentioned fault primitive in the above-mentioned March algorithm; and the indexes of the above-mentioned sensitization sequence and the above-mentioned detection sequence corresponding to the above-mentioned fault primitive in the above-mentioned March algorithm are counted, and the fault coverage analysis result of the above-mentioned March algorithm is output. By combining the memory fault model with the March algorithm model, the automatic analysis of the fault coverage of the March algorithm can be realized, the design efficiency of the MBIST circuit is improved, and the test algorithm and the memory are decoupled. The automatic testing method disclosed in the present invention allows DFT engineers to select different types of March algorithms when designing MBIST circuits. They only need to input the March algorithm to analyze the coverage of a certain type of fault. There is no need to rely on the memory itself to count the memory fault coverage, which simplifies the fault coverage collection process.
[0008] According to an embodiment of the present disclosure, based on the March algorithm, the memory fault model and the March algorithm model are used to create the TC object corresponding to the fault primitive and the March object corresponding to the March algorithm, including: based on the March algorithm, the memory fault model and the March algorithm model are used to obtain the storage unit state transition diagram and the March object corresponding to the March algorithm; using the memory fault model, the fault test information corresponding to the fault primitive is extracted; and according to the storage unit state transition diagram, the fault type and the fault test information, the TC object corresponding to the fault primitive is created.
[0009] According to an embodiment of the present disclosure, based on the above-mentioned March algorithm, the above-mentioned memory fault model and the above-mentioned March algorithm model are used to obtain the storage unit state transition diagram and the March object corresponding to the above-mentioned March algorithm, including: using the above-mentioned memory fault model and the above-mentioned March algorithm model to simulate the state transition process of the storage unit under each March element in the above-mentioned March algorithm, and obtain the above-mentioned storage unit state transition diagram and the Element object corresponding to the above-mentioned March element; and based on the Element object corresponding to each of the above-mentioned March elements in the above-mentioned March algorithm, create the March object corresponding to the above-mentioned March algorithm.
[0010] According to an embodiment of the present disclosure, the fault test information includes trigger conditions, fault behaviors and detection conditions; the fault test information corresponding to the fault primitive is extracted by using the memory fault model, including: while simulating the state transfer process of the storage unit under each March element in the March algorithm, the current trigger condition, the current fault behavior and the current detection condition of the fault primitive are extracted by using the memory fault model; based on the current trigger condition, the trigger condition causing the failure of the recipient unit is extracted; wherein the trigger condition is used to determine the state of the donor unit and the recipient unit when the failure occurs; according to the current fault behavior and the trigger condition, the storage data of the storage unit in the normal state is calculated; based on the current detection condition, the detection condition capable of detecting the failure behavior of the recipient unit is extracted, and based on the storage data, the fault test information corresponding to the fault primitive is extracted.
[0011] According to an embodiment of the present disclosure, before extracting the trigger condition causing the failure of the recipient unit based on the current trigger condition, the method further includes: using the memory fault model and judging whether the fault type of the memory to be tested is a dual-unit fault according to the fault primitive; if so, extracting the initial values of the donor unit and the recipient unit, extracting the target unit of the sensitization sequence, and extracting the detection sequence of the fault primitive based on the initial values of the target unit, the donor unit and the recipient unit; and if not, extracting the initial value of the recipient unit, and extracting the detection sequence of the fault primitive based on the initial value of the recipient unit.
[0012] According to an embodiment of the present disclosure, the fault detection information of the fault primitive is analyzed through the March algorithm model according to the March object and the TC object, and the index of the sensitization sequence and the detection sequence corresponding to the fault primitive in the March algorithm is obtained, including: obtaining the fault detection information corresponding to the fault primitive through the TC object; wherein the fault detection information includes: the fault type, the trigger condition, the fault behavior and the detection condition; analyzing the March element that meets the trigger condition and the detection condition in the March object through the March algorithm model; if the current March element or the next March element has a sensitization sequence that meets the trigger condition and a detection sequence that meets the detection condition, then recording the index of the Element object corresponding to the March element in the March object; and based on the fault type and the fault behavior of the fault primitive, deriving the index of the sensitization sequence and the detection sequence of the fault primitive in the recorded March element through the March algorithm model, obtaining the index of the sensitization sequence and the detection sequence corresponding to the fault primitive in the March algorithm.
[0013] According to an embodiment of the present disclosure, the above-mentioned fault types include one or more of static faults, dynamic faults, and coupling faults.
[0014] According to an embodiment of the present disclosure, the above-mentioned March algorithms include: one or more of March SR algorithm, March 13n, March SS algorithm, March LA algorithm, March LR algorithm, March U algorithm, March UD algorithm, MarchX algorithm, March Y algorithm, MarchA algorithm, MarchB algorithm, MarchC algorithm, MarchC-algorithm, and MarchG algorithm.
[0015] A second aspect of the present disclosure provides an automatic testing device for fault coverage of a March algorithm, comprising: an acquisition module, used to acquire a fault primitive of a memory to be tested and a March algorithm to be analyzed; wherein the number of the above fault primitives is not less than 1; a creation module, used to create a TC object corresponding to the above fault primitive and a March object corresponding to the above March algorithm based on the above March algorithm, using a memory fault model and a March algorithm model; an analysis module, used to analyze the fault detection information of the above fault primitive through the above March algorithm model according to the above March object and the above TC object, and obtain the index of the sensitization sequence and the detection sequence corresponding to the above fault primitive in the above March algorithm; and a statistical module, used to count the index of the above sensitization sequence and the above detection sequence corresponding to the above fault primitive in the above March algorithm, and output the fault coverage analysis result of the above March algorithm.
[0016] According to an embodiment of the present disclosure, the above-mentioned creation module includes a first creation sub-module, which is used to obtain the storage unit state transition diagram and the March object corresponding to the above-mentioned March algorithm based on the above-mentioned March algorithm, using the above-mentioned memory fault model and the above-mentioned March algorithm model; a second creation sub-module, which is used to extract the fault test information corresponding to the above-mentioned fault primitive using the above-mentioned memory fault model; and a third creation sub-module, which is used to create the TC object corresponding to the above-mentioned fault primitive according to the above-mentioned storage unit state transition diagram, the above-mentioned fault type and the above-mentioned fault test information.
[0017] According to an embodiment of the present disclosure, the above-mentioned first creation submodule includes a first creation unit, which is used to use the above-mentioned memory fault model and the above-mentioned March algorithm model to simulate the state transition process of the storage unit under each March element in the above-mentioned March algorithm, and obtain the above-mentioned storage unit state transition diagram and the Element object corresponding to the above-mentioned March element; and a second creation unit, which is used to create the March object corresponding to the above-mentioned March algorithm based on the Element object corresponding to each of the above-mentioned March elements in the above-mentioned March algorithm.
[0018] According to an embodiment of the present disclosure, the above-mentioned fault test information includes trigger conditions, fault behaviors and detection conditions; the above-mentioned second creation submodule includes: a third creation unit, which is used to extract the current trigger conditions, current fault behaviors and current detection conditions of the above-mentioned fault primitives by using the above-mentioned memory fault model while simulating the state transition process of the storage unit under each March element in the above-mentioned March algorithm; a fourth creation unit, which is used to extract the trigger conditions that cause the failure of the receiving unit based on the above-mentioned current trigger conditions; wherein the above-mentioned trigger conditions are used to determine the states of the above-mentioned donor unit and the above-mentioned receiving unit when the failure occurs; a fifth creation unit, which is used to calculate the storage data of the storage unit in a normal state according to the above-mentioned current fault behavior and the above-mentioned trigger conditions; and a sixth creation unit, which is used to extract the detection conditions that can detect the failure behavior of the above-mentioned receiving unit based on the above-mentioned current detection conditions; and a seventh creation unit, which is used to extract the fault test information corresponding to the above-mentioned fault primitive based on the above-mentioned storage data.
[0019] According to an embodiment of the present disclosure, the second creation submodule further includes an eighth creation unit, and the eighth creation unit is used to use the memory fault model to determine whether the fault type of the memory to be tested is a dual-unit fault according to the fault primitive; if so, extract the initial values of the donor unit and the recipient unit, extract the target unit of the sensitization sequence, and extract the detection sequence of the fault primitive based on the initial values of the target unit, the donor unit and the recipient unit; and if not, extract the initial value of the recipient unit, and extract the detection sequence of the fault primitive based on the initial value of the recipient unit.
[0020] According to an embodiment of the present disclosure, the above-mentioned analysis module includes: a first analysis submodule, which is used to obtain the fault detection information corresponding to the above-mentioned fault primitive through the above-mentioned TC object; wherein the above-mentioned fault detection information includes: the above-mentioned fault type, the above-mentioned trigger condition, the above-mentioned fault behavior and the above-mentioned detection condition; a second analysis submodule, which is used to analyze the March elements that meet the above-mentioned trigger condition and the above-mentioned detection condition in the above-mentioned March object through the above-mentioned March algorithm model; a third analysis submodule, which is used to record the index of the Element object corresponding to the above-mentioned March element in the above-mentioned March object if there is a sensitization sequence that meets the above-mentioned trigger condition and a detection sequence that meets the above-mentioned detection condition in the current March element or the next March element; and a fourth analysis submodule, which is used to derive the index of the sensitization sequence and the detection sequence of the above-mentioned fault primitive in the recorded March element through the above-mentioned March algorithm model based on the fault type and the above-mentioned fault behavior of the above-mentioned fault primitive, and obtain the index of the sensitization sequence and the detection sequence corresponding to the above-mentioned fault primitive in the above-mentioned March algorithm.
[0021] According to an embodiment of the present disclosure, the above-mentioned fault types include one or more of static faults, dynamic faults, and coupling faults.
[0022] According to an embodiment of the present disclosure, the above-mentioned March algorithms include: one or more of March SR algorithm, March 13n, March SS algorithm, March LA algorithm, March LR algorithm, March U algorithm, March UD algorithm, MarchX algorithm, March Y algorithm, MarchA algorithm, MarchB algorithm, MarchC algorithm, MarchC-algorithm, and MarchG algorithm.
[0023] A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; and a memory for storing one or more computer programs, wherein the one or more processors execute the one or more computer programs to implement the steps of the above method.
[0024] The fourth aspect of the present disclosure further provides a computer-readable storage medium having a computer program or instructions stored thereon, which implements the steps of the above method when the above computer program or instructions are executed by a processor.
[0025] The fifth aspect of the present disclosure further provides a computer program product, including a computer program or instructions, which implement the steps of the above method when the above computer program or instructions are executed by a processor. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] The above contents and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:
[0027] Figure 1 Schematically shows the structured flowchart of MBIST circuit;
[0028] Figure 2 The test flow of the inductive fault analysis method is schematically shown;
[0029] Figure 3 The application scenario diagram schematically shows the automatic testing method, device, electronic device, computer-readable storage medium and computer program product of the fault coverage of the March algorithm according to the embodiment of the present disclosure;
[0030] Figure 4 A flowchart of an automatic testing method for fault coverage of a March algorithm according to an embodiment of the present disclosure is schematically shown;
[0031] Figure 5 The fault primitive diagram of the automatic testing method for fault coverage of the March algorithm according to the embodiment of the present disclosure is schematically shown;
[0032] Figure 6 A March algorithm diagram of an automatic testing method for fault coverage of a March algorithm according to an embodiment of the present disclosure is schematically shown;
[0033] Figure 7 Schematically illustrates the Element object and the March object of the automatic testing method for fault coverage of the March algorithm according to an embodiment of the present disclosure;
[0034] Figure 8 A state transition diagram of a memory failure in the automatic testing method for fault coverage of the March algorithm according to an embodiment of the present disclosure is schematically shown;
[0035] Fig. 9 Another flow chart of the automatic testing method of the fault coverage of the March algorithm according to an embodiment of the present disclosure is schematically shown;
[0036] Fig.10 A state transition diagram of a non-faulty dual-cell memory according to an automatic testing method for fault coverage of a March algorithm according to an embodiment of the present disclosure is schematically shown;
[0037] Fig.11 A process diagram of creating a TC object in the automatic testing method for fault coverage of the March algorithm according to an embodiment of the present disclosure is schematically shown;
[0038] Fig.12 Another flow chart of the automatic testing method of the fault coverage of the March algorithm according to an embodiment of the present disclosure is schematically shown;
[0039] Fig.13 The memory cell state transition diagram of March_ss of the automatic testing method for fault coverage of the March algorithm according to the embodiment of the present disclosure is schematically shown;
[0040] Fig.14 Another flow chart of the automatic testing method of the fault coverage of the March algorithm according to an embodiment of the present disclosure is schematically shown;
[0041] Fig.15 Another flow chart of the automatic testing method of the fault coverage of the March algorithm according to an embodiment of the present disclosure is schematically shown;
[0042] Fig.16 A diagram schematically shows a process of extracting a sensitization sequence and a detection sequence according to an automatic testing method for fault coverage of a March algorithm according to an embodiment of the present disclosure;
[0043] Fig.17Another flow chart of the automatic testing method of the fault coverage of the March algorithm according to an embodiment of the present disclosure is schematically shown;
[0044] Fig.18 The index acquisition flow chart of the automatic testing method of the fault coverage of the March algorithm according to the embodiment of the present disclosure is schematically shown;
[0045] Fig.19 A block diagram schematically shows a structure of an automatic testing device for fault coverage of a March algorithm according to an embodiment of the present disclosure; and
[0046] Fig. 20 A block diagram of an electronic device suitable for implementing an automatic testing method for fault coverage of a March algorithm according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0047] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.
[0048] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.
[0049] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.
[0050] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).
[0051] There are two main traditional fault coverage analysis methods. One is that the designer manually calculates the fault coverage of the algorithm based on the data background of the test algorithm and the fault model of the memory; the other is to use the Inductive Fault Analysis (IFA) method. Figure 2 The test process of the inductive fault analysis method is schematically shown as follows: Figure 2 As shown, the designer first establishes a fault model according to the fault behavior of the memory to obtain the fault primitive of each memory fault, then injects faults into the memory model or netlist according to the fault primitive, and finally collects the fault coverage of the test algorithm through simulation. In the prior art, an inductive fault analysis method is also used to test the coverage of the open circuit fault of the March-PCL algorithm. The time complexity of this method is about O(N), where N is the depth of the memory. Both methods require more manpower and testing costs, and for the inductive analysis method, its test time is related to the capacity of the memory. The greater the depth of the memory, the longer the time required to collect the algorithm fault coverage. In addition, some researchers have proposed a fault coverage collection method that uses the MBIST algorithm to decouple from the memory model. Although the impact of the memory depth N on the time consumption of the inductive analysis method to collect the algorithm fault coverage is reduced, this method can only analyze the fault coverage of the MBIST algorithm for static faults, and cannot analyze the coverage of the algorithm for other types of faults. Due to the wide variety of March algorithms and fault types, the traditional method of using fault simulation or inductive analysis to obtain algorithm coverage is too inefficient, which not only makes the March algorithm fault coverage analysis in MBIST circuit design time-consuming but also prone to errors.
[0052] Specifically, an embodiment of the present disclosure provides an automatic testing method for fault coverage of a March algorithm, which may include obtaining a fault primitive of a memory to be tested and a March algorithm to be analyzed; wherein the number of fault primitives is not less than 1; based on the March algorithm, using a memory fault model and a March algorithm model, creating a TC object corresponding to the fault primitive and a March object corresponding to the March algorithm; according to the March object and the TC object, analyzing the fault detection information of the fault primitive through the March algorithm model, obtaining the index of the sensitization sequence and the detection sequence corresponding to the fault primitive in the March algorithm; and counting the index of the sensitization sequence and the detection sequence corresponding to the fault primitive in the March algorithm, and outputting the fault coverage analysis result of the March algorithm.
[0053] Due to the automatic testing method of the fault coverage of the March algorithm provided by the embodiment of the present disclosure, starting from the decoupling of the test algorithm and the memory model, after analyzing the general law of the MBIST algorithm detecting the memory fault according to the fault model, an automatic testing method (Automatic Fault-coverage Testing Method, AFTM) for analyzing the fault coverage of the March algorithm of the MBIST algorithm is proposed, which can realize the automatic analysis of the fault coverage of the March algorithm, and can automatically analyze the coverage of more than 300 kinds of faults such as static faults, dynamic faults, and coupled faults by the MBIST algorithm, thereby improving the design efficiency of the MBIST circuit. The test algorithm and the memory are decoupled, and the automatic testing method disclosed in the present disclosure can be used for DFT engineers to select different types of March algorithms when designing MBIST circuits. Only the March algorithm needs to be input to analyze the coverage of a certain type of fault, and there is no need to rely on the memory itself to perform statistics on the fault coverage of the memory, thereby simplifying the collection process of the fault coverage.
[0054] It should be noted that the automatic testing method and device for the fault coverage of the March algorithm provided in the embodiments of the present disclosure can be applied to memory fault coverage testing, and can also be applied to any technical field outside the technical field. The application field of the automatic testing method and device for the fault coverage of the March algorithm provided in the embodiments of the present disclosure is not specifically limited.
[0055] An embodiment of the present disclosure provides an automatic testing method for fault coverage of a March algorithm.
[0056] Figure 3 The application scenario diagram of the automatic testing method, device, electronic device, computer-readable storage medium and computer program product of the fault coverage of the March algorithm according to the embodiments of the present disclosure is schematically shown.
[0057] like Figure 3 As shown, the application scenario 300 according to this embodiment may include designing a memory fault coverage test in an MBSIT circuit. A network 304 is used as a medium for providing a communication link between terminal devices 301, 302, 303 and a server 305. The network 304 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0058] Users can use terminal devices 301, 302, 303 to interact with server 305 through network 304 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 301, 302, 303, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only for example).
[0059] The terminal devices 301 , 302 , and 303 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers, etc.
[0060] The server 305 may be a server that provides various services, such as a background management server (only an example) that provides support for websites browsed by users using the terminal devices 301, 302, and 303. The background management server may analyze and process the received data such as user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal device.
[0061] It should be noted that the automatic testing method for fault coverage of the March algorithm provided in the embodiment of the present disclosure can generally be executed by the server 305. Accordingly, the automatic testing device for fault coverage of the March algorithm provided in the embodiment of the present disclosure can generally be set in the server 305. The automatic testing method for fault coverage of the March algorithm provided in the embodiment of the present disclosure can also be executed by a server or server cluster that is different from the server 305 and can communicate with the terminal devices 301, 302, 303 and / or the server 305. Accordingly, the automatic testing device for fault coverage of the March algorithm provided in the embodiment of the present disclosure can also be set in a server or server cluster that is different from the server 305 and can communicate with the terminal devices 301, 302, 303 and / or the server 305.
[0062] It should be understood that Figure 3 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to the implementation requirements.
[0063] The following will be based on Figure 3 The scene described by Figure 4 to Figure 18 The automatic testing method for fault coverage of the March algorithm of the disclosed embodiment is described in detail.
[0064] Figure 4 The flowchart of the automatic testing method of the fault coverage of the March algorithm according to the embodiment of the present disclosure is schematically shown.
[0065] like Figure 4 As shown, the automatic testing method for fault coverage of the March algorithm of this embodiment includes operations S410 to S440. After the designer inputs the March algorithm, the automatic testing method for fault coverage of the March algorithm can be automatically executed to analyze the fault coverage of the March algorithm, realize automatic testing, and complete the automatic analysis of the fault coverage of the March algorithm.
[0066] In operation S410, a fault primitive of the memory to be tested and a March algorithm to be analyzed are obtained; wherein the number of the fault primitives is not less than one.
[0067] In operation S420, based on the March algorithm, a TC object corresponding to the fault primitive and a March object corresponding to the March algorithm are created by using the memory fault model and the March algorithm model.
[0068] In operation S430, the fault detection information of the fault primitive is analyzed through the March algorithm model according to the March object and the TC object, and the index of the sensitization sequence and the detection sequence corresponding to the fault primitive in the March algorithm is obtained.
[0069] In operation S440, the indexes of the sensitization sequence and the detection sequence corresponding to the fault primitive in the March algorithm are counted, and the fault coverage analysis result of the March algorithm is output.
[0070] It should be noted that fault coverage is an important performance index of the MBIST algorithm, which describes the algorithm for a known type of memory fault. When the MBIST algorithm is used to test the memory, the detection of the algorithm to the fault, the more fault types the algorithm can detect, the higher the fault coverage of the algorithm, and the better the performance. But the higher the fault coverage of the algorithm, the higher the time complexity, and the larger the required storage space. Therefore, when designing the MBIST circuit, it is first necessary to analyze the fault coverage of the MBIST algorithm, and then select the appropriate test algorithm according to the coverage of the algorithm to different types of faults. There are existing common MBIST algorithms, such as checkerboard algorithm, GALPAT algorithm and March algorithm, among which, March algorithm is the most widely used memory test algorithm, which carries out read and write operations of a specific order to storage cells according to address ascending or descending order, and has a more considerable fault coverage and lower complexity.
[0071] The disclosed automatic fault coverage testing method (Automatic Fault-coverage Testing Method, AFTM) of the March algorithm is used for analyzing the automatic collection of fault coverage of the March algorithm, and the AFTM can be implemented by using a program script, such as using Python to implement the automatic analysis of the fault coverage of the March algorithm. According to the general law of the analyzed March algorithm to detect memory faults, a memory fault model for describing the memory fault behavior and a March algorithm model for analyzing the March algorithm input by a user are established in the AFTM, the fault primitive of the memory to be tested is analyzed by combining the memory fault model with the March algorithm model, the fault coverage analysis result of the March algorithm input by the user is output, the March algorithm and the memory are decoupled, and different types of March algorithms can be selected by DFT engineers during MBIST design, and the coverage of a certain type of fault can be analyzed by only inputting the March algorithm, without relying on the memory itself to perform statistical memory fault coverage, and the automatic analysis of more than 300 fault types such as static faults and dynamic faults by AFTM is realized, the collection process of the fault coverage is simplified, and the design efficiency of the MBIST circuit is improved.
[0072] It is worth noting that the fault types include but are not limited to static faults, dynamic faults, coupled faults and other faults, and various fault coverage situations can be detected. The March algorithms to be analyzed include but are not limited to: March SR algorithm, March 13n, March SS algorithm, March LA algorithm, March LR algorithm, March U algorithm, March UD algorithm, MarchX algorithm, March Y algorithm, MarchA algorithm, MarchB algorithm, MarchC algorithm, MarchC-algorithm, MarchG algorithm, etc. Any of the March algorithms can be used as input to the March algorithm to be analyzed, and the fault coverage rate thereof can be analyzed using the AFTM disclosed in the present invention.
[0073] In operation S410, the input parameters of AFTM are two lists, including the input fault primitive (FP) to be tested and the March algorithm. Figure 5 The fault primitive diagram of the automatic testing method for fault coverage of the March algorithm according to the embodiment of the present disclosure is schematically shown, as shown in FIG. Figure 5As shown in the figure, multiple fault primitives are input, and the data type of each element in the first list of AFTM is a string, which is used to store the fault primitives to be tested. The second list is used to store the March algorithm. Different from the first input list parameter, the length of each element in this list is 2, which is used to store the operation order and memory operation of each March element in the March algorithm. Figure 6 The March algorithm diagram of the automatic testing method for fault coverage of the March algorithm according to the embodiment of the present disclosure is schematically shown, as shown in FIG. Figure 6 As shown in the figure, March_ss[1][0]='up', which means that the March element operates on the storage unit in an ascending manner. There are three cases for the operation order of the March element, 'up' ascending order, 'dn' descending order, and 'ay' arbitrary order. March_ss[1][1]='['R0', 'R0', 'W0', 'R0', 'W1']', which means that the memory operations performed by the March element on the storage unit are read 0, read 0, write 0, read 0, write 1.
[0074] In operation S420, the memory fault model is a fault model used to describe the memory fault behavior. The model extracts the test condition information such as the initial value, sensitization sequence and fault behavior required to trigger the fault from the input fault primitive, and combines the storage unit state transition diagram simulated in the March algorithm model to create the test condition of the fault primitive, which is used to determine whether the March algorithm can trigger and detect the fault, thereby calculating the fault coverage of the March algorithm. In order to better describe the process of establishing the memory fault model, a finite state machine is used to establish an equivalent model of the memory, thereby describing the state jump process of each storage unit when a memory fault occurs. For a fault model of a memory with a width of 1 bit and a depth of n, the following formula (1) can be used to describe its function:
[0075]
[0076] in, Indicates the status of the storage unit. Indicates the state of each storage unit in the memory. "0, 1" means the value in the storage unit is 0, 1, and "-" means the value in the storage unit is in an unknown state. Indicates the operation performed on the storage unit. Indicates a read operation on the i-th storage unit. Indicates writing v to the i-th storage unit, where the value of v is 0 or 1. Describes the output of the storage unit. Indicates the value output by the storage unit. "0, 1" means the output value in the storage unit is 0, 1, and "-" means the output value in the storage unit is in an unknown state.
[0077] In operation S420 and operation S430, the March algorithm model is a March algorithm used to analyze user input, which is composed of each March element in the algorithm and can automatically derive the initial state and final state of each March element. Through this model, the sensitization sequence and detection sequence of the fault can be indexed in the algorithm, thereby automatically calculating the coverage of memory faults.
[0078] The March algorithm consists of several operation sequences and data backgrounds. The March SR algorithm is shown in Table 1. Table 1 lists the operation sequences and data backgrounds of the March SR algorithm. The March SR algorithm consists of 6 elements, among which only one memory operation is performed in the first element M0 and the last element M5, and the order of memory operations is arbitrary, that is, the operation order can be in ascending order of address or in descending order of address. In M1~M4, a series of memory operations are included. For the convenience of description, the present disclosure uses M1(i) to index the memory operations in the elements, such as M1(0) represents the first operation in the second element, that is, the read 0 operation, and uses a semicolon to separate each element in the algorithm, such as Contains two elements, the first element contains only one write 0 operation, and the order is arbitrary, and the second element contains 4 memory operations, and the order is ascending.
[0079] Table 1 March SR algorithm
[0080]
[0081] As shown in Table 1, the March algorithm can be viewed as a collection of several March elements, each of which is a combination of several memory operations. Therefore, in order to realize the automatic analysis of the fault coverage of the MBIST algorithm, Element objects and March objects are created in AFTM according to the structural characteristics of the March elements and the March algorithm. Figure 7 The Element object and the March object of the automatic testing method for the fault coverage of the March algorithm according to the embodiment of the present disclosure are schematically shown, as shown in FIG. Figure 7 (a) is an Element object, such as Figure 7(b) is the March object. Among them, the Element object extracts multiple key information such as the initial state of the element, the final state of the element, the operation sequence and the change trend from the March element. The March object is directly constructed from the March algorithm and contains multiple instances of the Element object. In addition, the March object is also the core of AFTM to realize the automatic analysis of the fault coverage of the MBIST algorithm. This object implements a series of methods such as the initial value judgment of the target unit, the initial value judgment of the non-target unit and the detection operation index.
[0082] In order to analyze the fault coverage of the March algorithm, a March algorithm model is created based on the data background of various March algorithms. The March algorithm model guides the analysis process of AFTM, and its rules are as follows:
[0083] (1) For a given March element, ,when hour, .
[0084] (2) For a given March element, ,when hour, .
[0085] (3) For two adjacent March elements, , when the last operation of the previous element is R0 or W0, the first operation of the current element is R0. Similarly, when the last operation of the previous element is R1 or W1, the first operation of the current element is R1.
[0086] (4) When , the fault can be triggered repeatedly, and the value in the receiving unit remains constant during the repeated triggering process. For example, for the element , which can repeatedly trigger a single-cell read-corruption fault , and the index of the sensitization operation of the fault in the element is M(1)~M(4), and the index of the detection operation in the element is M(5).
[0087] (5) The sensitization operation and detection operation of memory faults can belong to two adjacent March elements. For example, for two adjacent March elements , March element detects single-cell write-destruction failures When , the index of the sensitization operation of this fault is , the index of the detection operation is .
[0088] In the AFTM of the present disclosure, the March object is not used to directly process the fault primitive, but the Test Condition (TC) object created by the fault primitive is processed. The TC object is created at the same time as the March object.
[0089] Traditional fault models are generally represented by fault primitives (FP). Common fault primitives are mainly divided into <s f r>and<Sa;Sv / F / R> There are two types. The former is used to describe single-cell faults, such as write-destruction faults <0W0 / 1 / ->, and the latter is used to describe dual-cell faults or coupling faults, such as dynamic read-destruction faults <0;0W0R0 / 1 / 1>. For single-cell faults, FP describes the sensitization sequence (S) that triggers the memory fault and the faulty behavior (F) of the memory. When the sensitization sequence includes a read operation, FP also includes the reading result R of the sensitization sequence on the memory. Dual-cell faults add the sensitization operations of the donor cell (Aggeressor Cell) and the victim cell (Victim Cell) on the basis of single-cell faults. Figure 8 A state transition diagram of a memory failure in an automatic testing method for fault coverage of a March algorithm according to an embodiment of the present disclosure is schematically shown. Figure 8 (a) is the state transition diagram when a single-cell write failure occurs in the memory. Figure 8 (b) is the state transition diagram when a dynamic read failure occurs in the memory. The i and j in the figure represent the first and second storage units in the memory, respectively. Figure 8 It can be seen that when a single-cell write-destruction fault occurs in the memory, after writing 0 to the first address unit of the memory in the S01 state, the state of the memory jumps to S11. This is because the write-destruction fault writes the opposite value to the memory. For a dual-cell dynamic read-destruction fault, depending on the address size of the donor unit (a) and the recipient unit (v), the memory may jump to different states when a fault occurs. The fault primitive can well describe the fault behavior of a single unit, but for a dual-unit fault, the fault behavior described by the fault primitive may be ambiguous. To this end, the fault primitive is further abstracted and the fault behavior of the memory is modeled using the test condition (TC) to obtain the corresponding test condition object, namely the TC object. The definition of the test condition TC is shown in the following formula (2):
[0090]
[0091] Indicates the address size of the donor unit and the recipient unit. When AO is 0, it means that the memory fault is a single-unit fault; when AO is 1, it means that the fault is a double-unit fault and the address of the donor unit is larger than that of the recipient unit; when AO is 2, it means that the fault is a double-unit fault and the address of the donor unit is smaller than that of the recipient unit.
[0092] , represents the initial value of the storage unit described in the fault primitive. For a single unit fault, I takes the value of 0 or 1, indicating the initial value of the receiving unit. For a double unit fault, I takes the value range of The initial value in the storage unit consists of two binary digits, where the first binary digit represents the initial value of the unit with the lower address, and the second binary digit represents the initial value of the unit with the higher address. For example, "01" means that the initial value of the unit with the lower address is 0, and the initial value of the unit with the higher address is 1.
[0093] , S represents the sensitization operation. The sensitization sequence of the sensitization operation consists of two parts. The first is the target unit T of the sensitization sequence, and the second is the memory operation required to trigger the memory fault. The target unit T is the donor unit a or the recipient unit v. Indicates four storage operations, namely write 0 (W0), write 1 (W1), read 0 (R0), and read 1 (R1). When T=a, it means that the target unit of the sensitization sequence is the donor unit, and the subsequent series of memory operations The donor unit will be sensitized. When T=v, it means that the target unit of the sensitization operation is the recipient unit. It is mainly divided into write operation and read operation. For write operation, such as "W0", it means writing 0 into the target unit, and vice versa, "W1" means writing 1 into the target unit. For read operation, such as "R0", it means reading the target unit and expecting the output value of the target unit to be 0, and vice versa, "R1" means expecting the output value of the target unit to be 1.
[0094] , Indicates the detection operation. Represents the receiving unit, Indicates a detection operation used to observe erroneous behavior of the host unit.
[0095] It indicates the data stored in the recipient unit and the donor unit after a failure occurs in the recipient unit. For a single unit, the recipient unit may store a value of 0 or 1. For a dual unit, the combination of the recipient and the donor has a total of 4 storage values, namely "00", "01", "10", and "11".
[0096] Indicates that when there is no fault in the memory, the data stored in the recipient unit and the donor unit, for a single unit, the recipient unit may store a value of 0 or 1, and for a dual unit, the combination of the recipient and the donor, there are 4 storage values, namely "00", "01", "10", and "11".
[0097] In operation S440, the fault coverage analysis results include the index of the sensitization sequence corresponding to each type of fault in the March algorithm (sensitization index), the index of the detection sequence in the March algorithm (detection index) and the total fault coverage. Taking the March ss algorithm with a static coverage of 100% as an example, the sensitization index, detection index and total fault coverage of the statistical faults are shown in Tables 2 and 3 respectively. In Table 2, TC represents the test condition, and Mi(j) represents the j+1th operation of the i+1th March element. From Table 3, it can be seen that the coverage of the March ss algorithm is 100%, which is in line with expectations.
[0098] Table 2 Sensitization index and detection index of March ss
[0099]
[0100] Table 3 March ss coverage results
[0101]
[0102] Fig. 9 Another flow chart of the automatic testing method of the fault coverage of the March algorithm according to an embodiment of the present disclosure is schematically shown.
[0103] like Fig. 9 As shown, according to an embodiment of the present disclosure, in operation S420, based on the March algorithm, using the memory fault model and the March algorithm model, a TC object corresponding to the fault primitive and a March object corresponding to the March algorithm are created, including operations S910-S930.
[0104] In operation S910, based on the March algorithm, a memory fault model and a March algorithm model are used to obtain a storage unit state transition diagram and a March object corresponding to the March algorithm.
[0105] In operation S920, fault test information corresponding to the fault primitive is extracted using the memory fault model.
[0106] In operation S930, a TC object corresponding to the fault primitive is created according to the storage unit state transition diagram, the fault type, and the fault test information.
[0107] According to an embodiment of the present disclosure, in operation S910, after each element completes the memory operation, a state transition diagram of the memory unit is obtained according to the memory fault model, so as to create an element object as the element attribute of the March object by using the March algorithm model. For example, according to formula (1), a state transition diagram of a memory with a width of 1 bit and 2 memory units can be established. Fig.10 The state transition diagram of the fault-free dual-cell memory of the automatic testing method of the fault coverage of the March algorithm according to the embodiment of the present disclosure is schematically shown. Fig.10 The state transition process when there is no fault in the memory is shown in the figure. The i and j in the figure represent the first and second storage units in the memory respectively. When AFTM simulates the state transition process of the storage unit under each element in the March algorithm, AFTM extracts the test condition information such as the initial value, sensitization sequence and detection sequence of the storage unit from the fault primitive, and creates the TC object corresponding to the fault according to the state transition diagram of the storage unit.
[0108] In operation S930, taking the fault type of disturb write destruction fault as an example, Fig.11 The process diagram of creating a TC object according to the automatic testing method of the fault coverage of the March algorithm according to the embodiment of the present disclosure is schematically shown. Fig.11 As shown in the figure, as the state transition diagram of the storage unit creates the TC object of the disturbing write damage fault (CFdswd<0;0W0 / 1 / ->), it can be seen that for the disturbing write damage fault, since the fault is a double-cell fault, the corresponding TC objects are divided into two types, one is AO=1, indicating that the address of the donor unit is greater than the recipient unit, and the other is AO=2, indicating that the address of the donor unit is less than the recipient unit. At the same time, it can be found from the fault primitive that the initial value of the donor unit required to trigger the fault is 0 (determined by the 0 before the semicolon in 0;0W0), and the initial value of the recipient unit is also 0 (determined by the 0 before W0 after the semicolon). The sensitization sequence of this fault is 'W0'. Since the sensitization sequence is next to the initial value of the recipient unit, the target unit of the sensitization sequence is the recipient unit, so I=00 and S={v,'W0'} in the TC object are obtained. When the memory fails, the storage unit value will change from 0 to 1 due to the sensitization operation 'W0'.
[0109] As can be seen from the state transition diagram, when a > v, the element March_ss[1][1] first operates on the acceptor cell. At this time, the initial values of both the donor cell and the acceptor cell are 0, which meet the initial value of the test condition. Therefore, when this element writes 0 to v, a fault will be triggered, causing the state of the memory cell to jump from S00 to S10 in advance. In the subsequent read operation, since the value in the memory cell is 1, which is not equal to the expected value 0 of the read operation, this fault is detected. However, when a < v, since this element first operates on the donor cell, when the operation of the element is completed, the state of the memory cell jumps to S10. And when the element operates on the acceptor cell, since the value of the donor cell is not 0 at this time, it does not meet the initial value of the TC object. Therefore, when the element writes 0 to v, a memory fault will not be triggered.
[0110] In addition, as Fig.11 shown, when a memory fault occurs, the fault behavior of the memory is 1, and when no memory fault occurs, the value in the memory cell is 0. Therefore, TC.F = 1 and TC.G = 0.
[0111] Fig.12 Another flowchart of the automatic test method for the fault coverage rate of the March algorithm according to an embodiment of the present disclosure is schematically shown.
[0112] As Fig.12 shown, according to an embodiment of the present disclosure, in operation S910, based on the March algorithm, using the memory fault model and the March algorithm model, when obtaining the state transition diagram of the memory cell and the March object corresponding to the March algorithm, operations S1210 - S1220 are included.
[0113] In operation S1210, using the memory fault model and the March algorithm model, simulate the state transition process of the memory cell under each March element in the March algorithm, and obtain the state transition diagram of the memory cell and the Element object corresponding to the March element.
[0114] In operation S1220, based on the Element object corresponding to each March element in the March algorithm, create the March object corresponding to the March algorithm.
[0115] In an embodiment of the present disclosure, after obtaining the fault primitive to be tested and the March algorithm, first, according to the dual - cell memory model, establish the state transition diagram of the memory cell after each element completes the memory operation. Exemplarily, Fig.13 The schematic diagram shows the memory cell state transition diagram of March_ss in the automatic test method for fault coverage of the March algorithm according to the embodiment of the present disclosure, and the state transition of the memory cell when the simulated March_ss[1][1] element performs a memory operation on the memory. Fig.13 As shown in the figure, when the March_ss[1][1] element performs memory operations, the initial value of each storage unit in the memory is 0. After the element operation is completed, the final value of each storage unit in the memory is 1. The Element object established by this element is shown in Table 4 below. Similarly, the Element objects corresponding to other elements in March_ss can be established. Finally, the March object corresponding to the algorithm will be created based on the Element object corresponding to each element in March_ss, and the Element objects of these elements will be stored in the element attribute of the March object in the form of a list. In the subsequent steps, the March object is used to determine whether the March_ss algorithm can cover the input fault primitive.
[0116] Table 4 Element object created by March_ss[1][1] element
[0117]
[0118] Fig.14 Another flow chart of the automatic testing method of the fault coverage of the March algorithm according to an embodiment of the present disclosure is schematically shown.
[0119] like Fig.14 As shown, according to an embodiment of the present disclosure, the fault test information includes trigger conditions, fault behaviors and detection conditions; in operation S920, the memory fault model is used to extract the fault test information corresponding to the fault primitive, including operations S1410-S1450.
[0120] In operation S1410, while simulating the state transition process of the storage unit under each March element in the March algorithm, the memory fault model is used to extract the current trigger condition, current fault behavior, and current detection condition of the fault primitive.
[0121] In operation S1420, based on the current trigger condition, a trigger condition causing the recipient unit to fail is extracted; wherein the trigger condition is to determine the state of the donor unit and the recipient unit when the failure occurs.
[0122] In operation S1430, storage data of the storage unit in a normal state is calculated according to the current fault behavior and the trigger condition.
[0123] In operation S1440, based on the current detection condition, a detection condition capable of detecting a fault behavior of the recipient unit is extracted.
[0124] In operation S1450, fault test information corresponding to the fault primitive is extracted based on the stored data.
[0125] According to the embodiment of the present disclosure, while simulating the state transition process of the storage unit under each March element in the March algorithm, the memory fault model is used to extract the sensitization operation and detection operation of the fault primitive, extract the error behavior of the host unit, and calculate the storage data of the storage unit in the normal state based on the error behavior and the sensitization operation. Finally, the test condition TC corresponding to the fault primitive is returned.
[0126] Fig.15 Another flow chart of the automatic testing method of the fault coverage of the March algorithm according to an embodiment of the present disclosure is schematically shown.
[0127] Fig.16 The figure schematically shows a process diagram of extracting sensitization sequences and detection sequences of the automatic testing method for fault coverage of the March algorithm according to an embodiment of the present disclosure.
[0128] like Fig.15 , Fig.16 As shown, according to an embodiment of the present disclosure, before operation S1420 extracts the trigger conditions that cause the failure of the host unit based on the current trigger conditions, it also includes using the memory fault model to extract the sensitization sequence and detection sequence corresponding to the trigger conditions and detection conditions of the fault primitive, specifically including operations S1510-S1530.
[0129] In operation S1510, a memory fault model is used to determine whether the fault type of the memory to be tested is a double cell fault according to a fault primitive.
[0130] In operation S1520, if yes, initial values of the donor unit and the recipient unit are extracted, a target unit of a sensitization sequence is extracted, and a detection sequence of a fault primitive is extracted based on the initial values of the target unit, the donor unit, and the recipient unit.
[0131] In operation S1530, if not, an initial value of the recipient unit is extracted, and based on the initial value of the recipient unit, a detection sequence of the fault primitive is extracted.
[0132] In the embodiment of the present disclosure, it is determined whether the memory fault is a double-cell fault according to the fault primitive. For a double-cell fault, the initial values of the donor unit and the recipient unit are extracted, the target unit of the sensitization operation is extracted, and then the detection operation of the fault primitive is extracted. For a single-cell fault, the detection operation is directly extracted.
[0133] Fig.17 Another flow chart of the automatic testing method of the fault coverage of the March algorithm according to an embodiment of the present disclosure is schematically shown.
[0134] like Fig.17 As shown, according to an embodiment of the present disclosure, in operation S430, according to the March object and the TC object, the fault detection information of the fault primitive is analyzed through the March algorithm model to obtain the sensitization sequence and detection sequence corresponding to the fault primitive in the index in the March algorithm, including operations S1710-S1740.
[0135] In operation S1710, fault detection information corresponding to the fault primitive is obtained through the TC object; wherein the fault detection information includes: fault type, trigger condition, fault behavior and detection condition.
[0136] In operation S1720, the March elements satisfying the trigger condition and the detection condition in the March object are analyzed by the March algorithm model.
[0137] In operation S1730, if a sensitization sequence that satisfies the trigger condition and a detection sequence that satisfies the detection condition exist in the current March element or the next March element, the index of the Element object corresponding to the March element in the March object is recorded.
[0138] In operation S1740, based on the fault type and fault behavior of the fault primitive, the indexes of the sensitization sequence and detection sequence of the fault primitive in the recorded March element are derived through the March algorithm model, and the indexes of the sensitization sequence and detection sequence corresponding to the fault primitive in the March algorithm are obtained.
[0139] In the embodiments of the present disclosure, illustratively, Fig.18 The following schematically shows an index acquisition flow chart of the automatic test method for fault coverage of the March algorithm according to an embodiment of the present disclosure, in which FP represents a fault primitive, TC object represents a test condition object, TC.S.op represents a sensitization sequence, TC.I represents a test condition initial value, and TC.D.op represents a detection sequence. Fig.18 As shown, after inputting the fault primitive and March algorithm to be tested, and creating the TC object and March object according to the fault primitive and algorithm, the position of the sensitization sequence of the test condition TC is retrieved in the March element, and the sensitization sequence that satisfies the initial value of the test condition TC is retrieved. After retrieving the sensitization sequence that satisfies the initial value of the test condition TC, it is determined whether there is a detection sequence in the current March element or the next March element where the sensitization sequence is located. If the detection sequence exists, the index of the sensitization sequence and the detection sequence of the memory fault in the March algorithm is returned, that is, the index of the sensitization sequence corresponding to the trigger condition in the fault primitive and the detection sequence corresponding to the detection condition in the March object, otherwise the judgment of the next fault primitive is performed.
[0140] Based on the automatic testing method of the fault coverage of the March algorithm, the present disclosure also provides an automatic testing device for the fault coverage of the March algorithm. Fig.19 The device is described in detail.
[0141] Fig.19 The structural block diagram of the automatic testing device for fault coverage of the March algorithm according to an embodiment of the present disclosure is schematically shown.
[0142] like Fig.19 As shown, the automatic testing device 1900 for fault coverage of the March algorithm of this embodiment includes an acquisition module 1910 , a creation module 1920 , an analysis module 1930 and a statistics module 1940 .
[0143] The acquisition module 1910 is used to acquire the fault primitives of the memory to be tested and the March algorithm to be analyzed, wherein the number of fault primitives is not less than 1. In one embodiment, the acquisition module 1910 can be used to perform the operation S410 described above, which will not be described in detail here.
[0144] The creation module 1920 is used to create a TC object corresponding to the fault primitive and a March object corresponding to the March algorithm based on the March algorithm using the memory fault model and the March algorithm model. In one embodiment, the creation module 1920 can be used to perform the operation S420 described above, which will not be repeated here.
[0145] The analysis module 1930 is used to analyze the fault detection information of the fault primitive through the March algorithm model according to the March object and the TC object, and obtain the index of the sensitization sequence and the detection sequence corresponding to the fault primitive in the March algorithm. In one embodiment, the analysis module 1930 can be used to perform the operation S430 described above, which will not be repeated here.
[0146] The statistical module 1940 is used to count the indexes of the sensitization sequence and the detection sequence corresponding to the fault primitive in the March algorithm, and output the fault coverage analysis result of the March algorithm. In one embodiment, the statistical module 1940 can be used to perform the operation S440 described above, which will not be repeated here.
[0147] According to an embodiment of the present disclosure, a creation module 1920 includes a first creation submodule, which is used to obtain a storage unit state transition diagram and a March object corresponding to the March algorithm based on the March algorithm, using a memory fault model and a March algorithm model; a second creation submodule, which is used to extract fault test information corresponding to the fault primitive using the memory fault model; and a third creation submodule, which is used to create a TC object corresponding to the fault primitive based on the storage unit state transition diagram, the fault type and the fault test information.
[0148] According to an embodiment of the present disclosure, a first creation submodule includes a first creation unit, which is used to use a memory fault model and a March algorithm model to simulate the state transition process of a storage unit under each March element in the March algorithm, and obtain a storage unit state transition diagram and an Element object corresponding to the March element; and a second creation unit, which is used to create a March object corresponding to the March algorithm based on the Element object corresponding to each March element in the March algorithm.
[0149] According to an embodiment of the present disclosure, fault test information includes trigger conditions, fault behaviors and detection conditions; the second creation submodule includes: a third creation unit, which is used to extract the current trigger conditions, current fault behaviors and current detection conditions of the fault primitive by using the memory fault model while simulating the state transfer process of the storage unit under each March element in the March algorithm; a fourth creation unit, which is used to extract the trigger conditions that cause the failure of the receiving unit based on the current trigger conditions; wherein the trigger conditions are used to determine the states of the donor unit and the receiving unit when the failure occurs; a fifth creation unit, which is used to calculate the storage data of the storage unit in a normal state according to the current fault behavior and trigger conditions; and a sixth creation unit, which is used to extract the detection conditions that can detect the fault behavior of the receiving unit based on the current detection conditions; and a seventh creation unit, which is used to extract the fault test information corresponding to the fault primitive based on the storage data.
[0150] According to an embodiment of the present disclosure, the second creation submodule also includes an eighth creation unit, which is used to use the memory fault model to determine whether the fault type of the memory to be tested is a dual-unit fault according to the fault primitive; if so, extract the initial values of the donor unit and the recipient unit, extract the target unit of the sensitization sequence, and extract the detection sequence of the fault primitive based on the initial values of the target unit, the donor unit and the recipient unit; and if not, extract the initial value of the recipient unit, and extract the detection sequence of the fault primitive based on the initial value of the recipient unit.
[0151] According to an embodiment of the present disclosure, the analysis module 1930 includes: a first analysis submodule, which is used to obtain fault detection information corresponding to the fault primitive through the TC object; wherein the fault detection information includes: fault type, trigger condition, fault behavior and detection condition; a second analysis submodule, which is used to analyze the March elements that meet the trigger condition and the detection condition in the March object through the March algorithm model; a third analysis submodule, which is used to record the index of the Element object corresponding to the March element in the March object if there is a sensitization sequence that meets the trigger condition and a detection sequence that meets the detection condition in the current March element or the next March element; and a fourth analysis submodule, which is used to derive the index of the sensitization sequence and the detection sequence of the fault primitive in the recorded March element based on the fault type and fault behavior of the fault primitive through the March algorithm model, and obtain the index of the sensitization sequence and the detection sequence corresponding to the fault primitive in the March algorithm.
[0152] According to an embodiment of the present disclosure, the fault type includes one or more of a static fault, a dynamic fault, and a coupling fault.
[0153] According to an embodiment of the present disclosure, the March algorithm includes: one or more of March SR algorithm, March 13n, March SS algorithm, March LA algorithm, March LR algorithm, March U algorithm, March UD algorithm, MarchX algorithm, March Y algorithm, MarchA algorithm, MarchB algorithm, MarchC algorithm, MarchC-algorithm, and MarchG algorithm.
[0154] According to an embodiment of the present disclosure, any multiple modules of the acquisition module 1910, the creation module 1920, the analysis module 1930, and the statistics module 1940 can be combined in one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the acquisition module 1910, the creation module 1920, the analysis module 1930, and the statistics module 1940 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware, and firmware, or in a suitable combination of any of them. Alternatively, at least one of the acquisition module 1910 , the creation module 1920 , the analysis module 1930 , and the statistics module 1940 may be at least partially implemented as a computer program module, and when the computer program module is executed, a corresponding function may be performed.
[0155] Fig. 20 A block diagram of an electronic device suitable for implementing an automatic testing method for fault coverage of a March algorithm according to an embodiment of the present disclosure is schematically shown.
[0156] like Fig. 20 As shown, the electronic device 2000 according to the embodiment of the present disclosure includes a processor 2001, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 2002 or the program loaded from the storage part 2008 to the random access memory (RAM) 2003. The processor 2001 may include, for example, a general-purpose microprocessor (such as a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (for example, an application-specific integrated circuit (ASIC)), etc. The processor 2001 may also include an onboard memory for caching purposes. The processor 2001 may include a single processing unit or multiple processing units for performing different actions of the method flow according to the embodiment of the present disclosure.
[0157] In RAM 2003, various programs and data required for the operation of electronic device 2000 are stored. Processor 2001, ROM 2002 and RAM 2003 are connected to each other via bus 2004. Processor 2001 performs various operations of the method flow according to the embodiment of the present disclosure by executing the programs in ROM 2002 and / or RAM 2003. It should be noted that the program can also be stored in one or more memories other than ROM 2002 and RAM 2003. Processor 2001 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the programs stored in one or more memories.
[0158] According to an embodiment of the present disclosure, the electronic device 2000 may further include an input / output (I / O) interface 2005, which is also connected to the bus 2004. The electronic device 2000 may further include one or more of the following components connected to the I / O interface 2005: an input portion 2006 including a keyboard, a mouse, etc.; an output portion 2007 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 2008 including a hard disk, etc.; and a communication portion 2009 including a network interface card such as a LAN card, a modem, etc. The communication portion 2009 performs communication processing via a network such as the Internet. A drive 2010 is also connected to the I / O interface 2005 as needed. A removable medium 2011, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 2010 as needed, so that a computer program read therefrom is installed into the storage portion 2008 as needed.
[0159] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.
[0160] According to an embodiment of the present disclosure, a computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus or a device. For example, according to an embodiment of the present disclosure, a computer-readable storage medium may include the ROM 2002 and / or RAM 2003 described above and / or one or more memories other than ROM 2002 and RAM 2003.
[0161] The embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the automatic testing method for the fault coverage of the March algorithm provided by the embodiment of the present disclosure.
[0162] The above functions defined in the system / device of the embodiment of the present disclosure are performed when the computer program is executed by the processor 2001. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.
[0163] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices, magnetic storage devices, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of signals on a network medium, and downloaded and installed through the communication part 2009, and / or installed from a removable medium 2011. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0164] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 2009, and / or installed from the removable medium 2011. When the computer program is executed by the processor 2001, the above functions defined in the system of the embodiment of the present disclosure are performed. According to the embodiment of the present disclosure, the system, device, means, module, unit, etc. described above can be implemented by a computer program module.
[0165] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).
[0166] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0167] It will be appreciated by those skilled in the art that the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations and / or combinations are not explicitly described in the present disclosure. In particular, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways without departing from the spirit and teachings of the present disclosure. All of these combinations and / or combinations fall within the scope of the present disclosure.
[0168] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the present disclosure is defined by the attached claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.< / s>
Claims
1. An automatic testing method for fault coverage of a March algorithm, characterized in that: The method comprises: Obtaining a fault primitive of the memory to be tested and a March algorithm to be analyzed; wherein the number of the fault primitives is not less than 1; Based on the March algorithm, using a memory fault model and a March algorithm model, creating a TC object corresponding to the fault primitive and a March object corresponding to the March algorithm; Analyzing the fault detection information of the fault primitive through the March algorithm model according to the March object and the TC object, and obtaining the index of the sensitization sequence and the detection sequence corresponding to the fault primitive in the March algorithm; and The indexes of the sensitization sequence and the detection sequence corresponding to the fault primitive in the March algorithm are counted, and the fault coverage analysis result of the March algorithm is output.
2. The method according to claim 1, characterized in that The creating, based on the March algorithm, a TC object corresponding to the fault primitive and a March object corresponding to the March algorithm by using a memory fault model and a March algorithm model includes: Based on the March algorithm, using the memory fault model and the March algorithm model, obtaining a storage unit state transition diagram and a March object corresponding to the March algorithm; extracting fault test information corresponding to the fault primitive using the memory fault model; and A TC object corresponding to the fault primitive is created according to the storage unit state transition diagram, the fault type and the fault test information.
3. The method according to claim 2, characterized in that The acquiring, based on the March algorithm, a storage unit state transition diagram and a March object corresponding to the March algorithm by using the memory fault model and the March algorithm model comprises: Using the memory fault model and the March algorithm model, simulating the state transition process of the storage unit under each March element in the March algorithm, and obtaining the storage unit state transition diagram and the Element object corresponding to the March element; and Based on the Element object corresponding to each March element in the March algorithm, a March object corresponding to the March algorithm is created.
4. The method according to claim 2 or 3, characterized in that: in, The fault test information includes trigger conditions, fault behaviors and detection conditions; The extracting the fault test information corresponding to the fault primitive by using the memory fault model includes: While simulating the state transfer process of the storage unit under each March element in the March algorithm, using the memory fault model, extracting the current trigger condition, current fault behavior and current detection condition of the fault primitive; Based on the current trigger condition, extracting the trigger condition that causes the recipient unit to fail; wherein the trigger condition is used to determine the state of the donor unit and the recipient unit when the failure occurs; Calculating storage data of the storage unit in a normal state according to the current fault behavior and the trigger condition; extracting a detection condition capable of detecting a faulty behavior of the recipient unit based on the current detection condition, and Based on the stored data, fault test information corresponding to the fault primitive is extracted.
5. The method according to claim 4, characterized in that Before extracting the triggering condition causing the failure of the receiving unit based on the current triggering condition, the method further includes: Using the memory fault model and according to the fault primitive, determining whether the fault type of the memory to be tested is a double-cell fault; If so, extracting the initial values of the donor unit and the recipient unit, extracting the target unit of the sensitization sequence, and extracting the detection sequence of the fault primitive based on the target unit, the initial values of the donor unit and the recipient unit; and If not, extract the initial value of the recipient unit, and based on the initial value of the recipient unit, extract the detection sequence of the fault primitive.
6. The method according to claim 1 or 5, characterized in that: The step of analyzing the fault detection information of the fault primitive by using the March algorithm model according to the March object and the TC object, and obtaining the index of the sensitization sequence and the detection sequence corresponding to the fault primitive in the March algorithm includes: Acquire fault detection information corresponding to the fault primitive through the TC object; wherein the fault detection information includes: the fault type, the trigger condition, the fault behavior and the detection condition; Analyzing the March elements in the March object that meet the trigger condition and the detection condition through the March algorithm model; If a sensitization sequence that satisfies the trigger condition and a detection sequence that satisfies the detection condition exist in the current March element or the next March element, then the index of the Element object corresponding to the March element in the March object is recorded; and Based on the fault type and the fault behavior of the fault primitive, the indexes of the sensitization sequence and the detection sequence of the fault primitive in the recorded March element are derived through the March algorithm model, and the indexes of the sensitization sequence and the detection sequence corresponding to the fault primitive in the March algorithm are obtained.
7. The method according to claim 1, characterized in that The fault type includes one or more of a static fault, a dynamic fault, and a coupling fault.
8. The method according to claim 1, characterized in that The March algorithms include: one or more of March SR algorithm, March13n, March SS algorithm, March LA algorithm, March LR algorithm, March U algorithm, March UD algorithm, MarchX algorithm, March Y algorithm, MarchA algorithm, MarchB algorithm, MarchC algorithm, MarchC-algorithm, and MarchG algorithm.
9. An automatic testing device for fault coverage of March algorithm, characterized in that: include: An acquisition module, used to acquire the fault primitives of the memory to be tested and the March algorithm to be analyzed; wherein the number of the fault primitives is not less than 1; A creation module, used to create a TC object corresponding to the fault primitive and a March object corresponding to the March algorithm based on the March algorithm and using a memory fault model and a March algorithm model; an analysis module, configured to analyze the fault detection information of the fault primitive through the March algorithm model according to the March object and the TC object, and obtain the index of the sensitization sequence and the detection sequence corresponding to the fault primitive in the March algorithm; and A statistical module is used to count the indexes of the sensitization sequence and the detection sequence corresponding to the fault primitive in the March algorithm, and output the fault coverage analysis result of the March algorithm.
