CN116106729A - Scan chain and combinational logic fault diagnosis method based on cost loss factor - Google Patents
Scan chain and combinational logic fault diagnosis method based on cost loss factor Download PDFInfo
- Publication number
- CN116106729A CN116106729A CN202310100980.1A CN202310100980A CN116106729A CN 116106729 A CN116106729 A CN 116106729A CN 202310100980 A CN202310100980 A CN 202310100980A CN 116106729 A CN116106729 A CN 116106729A
- Authority
- CN
- China
- Prior art keywords
- fault
- cost loss
- scanning
- chain
- cost
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 70
- 238000003745 diagnosis Methods 0.000 title claims abstract description 43
- 238000012360 testing method Methods 0.000 claims abstract description 41
- 230000004044 response Effects 0.000 claims abstract description 38
- 238000004088 simulation Methods 0.000 claims abstract description 15
- 230000008569 process Effects 0.000 claims description 31
- 238000004422 calculation algorithm Methods 0.000 claims description 14
- 238000002347 injection Methods 0.000 claims description 10
- 239000007924 injection Substances 0.000 claims description 10
- 238000012986 modification Methods 0.000 claims description 8
- 230000004048 modification Effects 0.000 claims description 8
- 230000001960 triggered effect Effects 0.000 claims description 6
- 230000001174 ascending effect Effects 0.000 claims description 3
- 238000011010 flushing procedure Methods 0.000 claims description 3
- 238000001514 detection method Methods 0.000 abstract description 9
- 230000002093 peripheral effect Effects 0.000 abstract description 3
- 238000009825 accumulation Methods 0.000 abstract 1
- 238000004364 calculation method Methods 0.000 description 17
- 238000013461 design Methods 0.000 description 11
- 239000013598 vector Substances 0.000 description 5
- 230000007547 defect Effects 0.000 description 3
- 238000012631 diagnostic technique Methods 0.000 description 3
- 238000004519 manufacturing process Methods 0.000 description 3
- 239000000243 solution Substances 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 238000002405 diagnostic procedure Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- XUIMIQQOPSSXEZ-UHFFFAOYSA-N Silicon Chemical compound [Si] XUIMIQQOPSSXEZ-UHFFFAOYSA-N 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 229910052710 silicon Inorganic materials 0.000 description 1
- 239000010703 silicon Substances 0.000 description 1
- 239000000126 substance Substances 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R31/00—Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
- G01R31/28—Testing of electronic circuits, e.g. by signal tracer
- G01R31/317—Testing of digital circuits
- G01R31/3181—Functional testing
- G01R31/3183—Generation of test inputs, e.g. test vectors, patterns or sequences
- G01R31/318307—Generation of test inputs, e.g. test vectors, patterns or sequences computer-aided, e.g. automatic test program generator [ATPG], program translations, test program debugging
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R31/00—Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
- G01R31/28—Testing of electronic circuits, e.g. by signal tracer
- G01R31/317—Testing of digital circuits
- G01R31/3181—Functional testing
- G01R31/3185—Reconfiguring for testing, e.g. LSSD, partitioning
- G01R31/318533—Reconfiguring for testing, e.g. LSSD, partitioning using scanning techniques, e.g. LSSD, Boundary Scan, JTAG
- G01R31/318536—Scan chain arrangements, e.g. connections, test bus, analog signals
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Tests Of Electronic Circuits (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
The application discloses a scan chain based on a cost loss factor and a combined logic fault diagnosis method, which relate to the field of EDA detection and are used for finding out all fault scan chains and judging fault types by detecting a chip to be detected; determining suspicious ranges of suspicious scan cells in a failed scan chain using the set of ATPG test patterns; injecting faults of the same type as the fault scanning chain into each candidate scanning unit in the suspicious range in sequence, and calculating cost loss factors of the fault scanning chain by comparing simulation responses of the candidate scanning units and fault circuit responses to determine target fault points of the fault scanning chain; modifying the target fault point location, and comparing the total cost loss factor accumulated in the current period with the accumulation in the previous period; if the total cost loss factor is not less than the previous period, determining all fault points and ending the fault diagnosis of the chip; the scheme can save peripheral hardware cost, can accurately position fault points on each fault scanning chain, and improves diagnosis efficiency and detection precision.
Description
Technical Field
The embodiment of the application relates to the field of EDA detection, in particular to a scan chain based on a cost loss factor and a combinational logic fault diagnosis method.
Background
With the advent of bipolar transistors, integrated circuits have evolved over half a century, with the development of improved semiconductor processing techniques and EDA tools, continually enabling more complex systems to be implemented on a single chip, with higher clock frequencies and greater system densities. The manufacturing process of the chip is smaller and smaller, the scale of the digital chip is larger and larger, and the testing cost is further increased and even exceeds the original cost of the functional part of the chip.
How to consider testing problems during chip design is an important part of current chip designs. Testing has become a very important factor in the design and fabrication of integrated circuits, which has not been used solely as a means of testing and verifying chip products, but rather has been a closely related expertise to integrated circuit designs, and has been an organic whole with design and fabrication. Design For Test (DFT) opens up a feasible way For the whole testing field, and DFT has become a key link of chip Design. The diagnosis of scan chain and combinational logic faults is a major problem that is relatively fundamental and is severely disturbed.
In the conventional technology, the main methods of scan chains and combinational logic diagnosis are as follows:
1. observing defect reactions at different positions based on a diagnostic technique of the tester;
2. hardware-based diagnostic techniques facilitate diagnostic procedures through additional hardware overhead;
3. and the related algorithm diagnosis technology based on software can realize fault diagnosis efficiently and quickly.
However, with the continued development of integrated circuit chips, higher clock frequencies and greater system densities have placed higher demands on test diagnostics. Diagnostic techniques based on testers are difficult to apply to chips with embedded compression circuits without using bypass mode. Hardware-based approaches facilitate the diagnostic process using some special scan chain and scan cell designs, however they typically require special designs for the scan chain/scan cell and have additional hardware overhead, which is unacceptable in many real world products. So current eye-turning software-based techniques use algorithmic diagnostics to identify faulty scanning units. However, the existing algorithm diagnosis program is less, and related algorithms have the defects of long time consumption, complex and redundant process, low accuracy, incapability of detecting all fault points and the like. The technical scheme of the invention patent application of CN1531046A is as follows: a plurality of initial value vectors associated with the inverters are selected for each corresponding scan chain set in a plurality of logic integrated circuits having the same configuration. The initial vectors in the same corresponding scan chain set are compared with each other, and the elements with fixed values in the initial value vectors are confirmed. When the number of elements of the fixed value reaches a certain desired percentage, the elements are selected as a standard pattern for the scan chain set. Finally, the initial value vector of the scanning chain in the logic integrated circuit for fault location and the standard pattern related to the scanning chain are compared with each other, and whether the scanning chain has a faulty inverter is determined through the difference of comparison results. Although the method can realize the positioning of the scanning chain faults, belongs to a comparison basic classical method in a fault positioning diagnosis method, the method has the defects of low actual operation efficiency, long time consumption and the like of comparison basicity, can not position all faults in a short time efficiently, and can miss part of fault positions due to intermittent faults and other problems, thereby being not beneficial to the diagnosis test of a large-scale basic logic circuit scanning chain.
Therefore, if the above-described fault diagnosis technique is used to determine the true fault point, there are the following main problems:
1. the number of test vectors is huge, and the traditional physical and hardware fault detection method is not applicable.
2. Finding these faults wastes the working time of the engineer and also wastes a lot of test expenses (the test machine is charged in time).
3. The related algorithm can only diagnose single faults in the scan chain, and can not accurately judge and check a plurality of actual fault conditions.
Disclosure of Invention
The embodiment of the application provides a scan chain based on a cost loss factor and a combinational logic fault diagnosis method, which solve the problems of complex fault diagnosis, high hardware cost and low detection precision, and the method comprises the following steps:
s1, finding out all fault scan chains by detecting a chip to be detected and judging fault types;
s2, determining suspicious ranges of suspicious scanning units in the fault scanning chain by using an ATPG test mode set corresponding to the scanning chain;
s3, sequentially injecting faults of the same type as the fault scanning chain into each candidate scanning unit in the suspicious range, calculating cost loss factors of the fault scanning chain by comparing simulation responses of the candidate scanning units and fault circuit responses, and determining target fault points of the fault scanning chain;
s4, modifying the target fault point location, and comparing the total cost loss factor accumulated in the current period with the total cost loss factor accumulated in the previous period; if the total cost loss factor of the current period is not less than the total cost loss factor of the previous period, determining all fault points and ending the fault diagnosis of the chip.
Specifically, S3 includes:
s31, sequentially injecting the selected candidate scanning units into faults of the same type as the faults, changing the suspicious bit values of the candidate scanning units according to the fault types in the loading process, and loading the fault scanning chains;
s32, performing four-value (0, 1, X, Z) logic simulation on the loaded fault scanning chain, capturing test response, and calculating a logic probability value of the test response;
s33, changing the suspicious bit again according to the assumed output value of the fault type in the unloading process, and unloading the fault scanning chain;
s34, obtaining logic probability of updating the candidate scanning units according to simulation response and fault circuit response of the candidate scanning units in the loading and unloading processes, and calculating the cost loss factor of the fault scanning chain according to the logic probability and the number of fault bits.
Specifically, the cost loss factors comprise a class-two cost loss factor and a class-two cost loss factor, and the class-two cost loss factors are calculated based on a probability search method; s31 includes:
setting suspicious bits corresponding to the candidate scanning units and adjacent bits thereof as output values which are subjected to fault after loading; and calculating the first logic probability of all the candidate scanning units loaded in the suspicious range through the position of fault injection and the probability of triggered faults.
Specifically, S32 includes: capturing a test response of the four-value logic simulation; updating and calculating the first logic probability based on a test response and a COP algorithm to obtain a second logic probability of the candidate scanning unit;
s33 includes: setting the suspicious bit corresponding to the candidate scanning unit and the adjacent bit thereof as output values which are failed after unloading, wherein the values captured by other normal chains are unchanged; updating and calculating a third logic probability of the candidate scanning unit after unloading through the following formula;
wherein ,is the logical probability of the i-th candidate scan cell to appear "0",>logic probability of occurrence of "1" for ith candidate scan cell, ">Logical probability of the i+1 candidate scan cell to appear "0", ">The logical probability of the i+1 candidate scan cell having a "1", pr, is the probability that the fault is triggered.
Specifically, S34 includes: calculating a matching score Match according to the ratio of the number of the explained fault bits to the total number of the fault bits after the fault injection is accumulated; wherein the matching score is obtained based on historical simulated responses and observed fault circuit responses;
calculating Mismatch scores Mismatch according to the ratio of the number of the good values of the accumulated errors to the total number of the good values in the test mode; the mismatch score is used to describe the difference between the simulated and good values observed in the event of an injection fault;
calculating the cost loss factor CL of the class according to the matching score and the unmatched score 1 The formula is as follows:
CL 1 =K 1 *Match+K 2 *Mismatch
wherein ,K1 and K2 Is a correlation coefficient, and K 1 Is a negative value, K 2 Is a positive value;
obtaining a type A mismatch score UF calculated when a fault is detected during a history period 1 And a type B mismatch score UF calculated when no fault is detected 2 Calculating the second class cost loss factor CL according to the two classes of mismatch scores 2 The formula is as follows:
CL 2 =L 1 *UF 1 +L 2 *UF 2
wherein ,L1 and L2 For positive values, the two types of mismatch scores are judged according to the two mismatch probabilities;
and determining the target fault point according to the one type of cost loss factors and the two types of cost loss factors.
Specifically, the process of determining the target fault point includes:
acquiring the one type of cost loss factors and the two types of cost loss factors of all the candidate scanning units in the suspicious range, and sorting the one type of cost loss factors in ascending order;
when only one lowest cost loss factor exists, determining the corresponding candidate scanning unit as the target fault point of the fault scanning chain; and when at least two identical lowest cost loss factors exist, comparing the two kinds of cost loss factors of a plurality of uncertain points, and determining the uncertain point with the smaller two kinds of cost loss factors as the target fault point.
Specifically, S2 includes: based on the fault type loading and unloading value characteristics, the modified ATPG test mode is used for covering the influence of a fault unit on the result obtained after the scanning process, and the upper bound and the lower bound of the suspicious range are identified by comparing the analog value obtained in the test process with the value observed in the fault circuit response.
Specifically, S4 includes: after the target fault point of the xth period is determined, the fault is injected and the sum of one class and two classes of cost loss factors corresponding to the scanning unit is recalculated after modification, so as to obtain the total cost loss factor CL in the xth period x The expression is as follows:
CL x =CL x1 +CL x2 wherein ,CL1x A class of cost penalty factors, CL, representing the x-th period 2x A second class cost penalty factor representing an x-th period;
when CL is x ≥CL x-1 And when the total cost loss factor in the x-th period is not smaller than the total cost loss factor in the x-1 th period, indicating that all fault points are found and ending the fault diagnosis of the chip.
Specifically, when CL x ≤L x-1 And when the total cost loss factor in the x-th period is not more than the total cost loss factor in the x-1 th period, removing the current scanning point, re-determining the suspicious range and searching the next fault point, and determining the rest target fault points by traversing all scanning units until all fault points are queried.
Specifically, the fault scan chain is identified by a flushing pattern of several chains, and a fault result different from a predetermined result occurs according to a fault occurring in a part of units or combinational logic of the scan chain during loading or unloading.
The beneficial effects that technical scheme that this application embodiment provided include at least: the scheme uses the matching degree cost loss factor calculation to carry out fault diagnosis, combines two types of cost loss calculation methods to carry out the algorithm simultaneously, improves the decision accuracy and reduces the traditional fault diagnosis time. Through carrying out corresponding operation by utilizing the known fault type judgment in the loading and unloading process, the influence of faults on other good point positions is avoided, the method has good effect on accurate fault point position judgment of multiple fault situations, the peripheral hardware cost can be saved, the fault points on each fault scanning chain can be accurately positioned, and the diagnosis efficiency and the detection precision are improved.
Drawings
FIG. 1 is a flow chart of a scan chain and combinational logic fault diagnosis method based on cost penalty factors;
FIG. 2 is a flow chart for calculating a cost penalty factor of a type of candidate scan cell;
FIG. 3 is a flow chart for calculating a candidate scan cell class II cost penalty factor;
FIG. 4 is a logic diagram of a scan chain and combinational logic fault diagnosis method based on cost penalty factors;
FIG. 5 is an algorithm flow chart of a scan chain and combinational logic fault diagnosis method based on cost penalty factors.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
References herein to "a plurality" means two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship.
Fig. 1 is a flowchart of a scan chain and combinational logic fault diagnosis method based on a cost loss factor according to an embodiment of the present application, including the following steps:
s1, finding out all fault scan chains by detecting the chip to be detected and judging the fault type.
The fault type of a faulty scan chain is typically identified by the flushing pattern of some of the chains, and the scan chain may have a different fault result during loading (load) or unloading (unload) from the originally intended result because part of the units or combinational logic in the scan chain fail. Taking table 1 as an example, it is assumed here that one scan chain is shifted in a pattern of "0001110001110001", and a comparison is made according to these examples listed in the table, and then a failure determination is made based on the observation result and the original setting result, and most of the cases in actual cases are intermittent failures. And judging all fault scan chains of the chip and corresponding fault types through contents shown in table 1.
TABLE 1 Fault Scan chain and fault type
Fault type | Unloading value (permanent fault) | Unloading value (intermittent fault) |
|
0000000000000000 | 0000100000100000 |
|
1111111111111111 | 1101111101111111 |
Slow and slow | 001110001110001X | —— |
Quick speed | X000111000111000 | —— |
Slowly rise up | 000110000110000X | 000110001110001X |
Slowly descend | 001111001111001X | 001111001110001X |
Fast rise | X001111001111001 | X001111000111000 |
Rapidly descend | X000110000110000 | X000110000111000 |
S2, determining suspicious ranges of suspicious scanning units in the fault scanning chain by using the ATPG test mode set corresponding to the scanning chain.
After the fault type is determined, the specific modified ATPG test mode is used according to the corresponding loading and unloading value characteristics, the influence of the fault unit on the result obtained after the scanning process is covered, and other values in the scanning chain are not influenced. The upper and lower bounds of the candidate scan cells, i.e., the suspicious ranges of suspicious scan cells in the fault scan chain, are identified by comparing the analog values obtained during the test with the values observed in the fault circuit response.
S3, sequentially injecting faults of the same type as the fault scanning chain into each candidate scanning unit in the suspicious range, calculating cost loss factors of the fault scanning chain by comparing simulation responses of the candidate scanning units and fault circuit responses, and determining target fault points of the fault scanning chain.
The main purpose of the process is to calculate the cost loss factors, the scheme adopts the synchronous calculation of the first type cost loss factors and the second type cost loss factors, and the second type cost loss factors are calculated based on a probability search method. The method specifically comprises the following detailed steps:
s31, sequentially injecting the selected candidate scanning units into faults of the same type as the faults, changing the suspicious bit values of the candidate scanning units according to the fault types in the loading process, and loading the fault scanning chains.
The purpose of fault injection is to observe the difference of the front and rear output test responses, and the scheme can be split into two independent parts, namely, the process of calculating the first class and second class cost loss factors of the selected candidate scan chain, and the scheme participates in fig. 3 and 4.
For one type of cost loss factor calculation step, the suspicious bit corresponding to the candidate scanning unit and the adjacent bits thereof are set as output values which fail after loading, namely, the output values which should be changed after assuming that the failure occurs, and other bits can be correctly shifted in. And then loading the fault scanning chain after the fault injection.
And for the second-class cost loss factor calculation step, judging through logic probability, and calculating the first logic probability of all candidate scanning units loaded in the suspicious range through the position of fault injection and the probability that the fault is triggered after loading is completed.
S32, performing four-value (0, 1, X, Z) logic simulation on the loaded fault scanning chain, capturing test response, and calculating a logic probability value of the test response.
Four-value (0, 1, X, Z) logic simulation is required for all scan chains for both the first class and second class cost calculation processes, so as to obtain captured test responses. And the second-class cost calculation also needs to update and calculate the first logic probability through test response and COP algorithm on the basis of obtaining the four-value logic simulation, so as to obtain the second logic probability of the candidate scanning unit.
S33, changing the suspicious bit again according to the assumed output value of the fault type in the unloading process, and unloading the fault scan chain.
The unloading process is used for front-to-back comparison calculation, and similar to the process of loading the fault scan chain, one type of cost calculation process sets the suspicious bit corresponding to the candidate scan unit and the adjacent bit thereof as an output value which is supposed to have faults after unloading, and the values captured by other normal chains are unchanged, so that the fault scan chain is unloaded.
And the second-class cost calculation process continuously updates the second logic probability according to the output and probability calculation method according to the test response after the fault scan chain is unloaded, so as to obtain the third logic probability of each candidate scan unit.
The update process is calculated according to the following formula:
wherein ,is the logical probability of the i-th candidate scan cell to appear "0",>logic probability of occurrence of "1" for ith candidate scan cell, ">Logical probability of the i+1 candidate scan cell to appear "0", ">The logical probability of the i+1 candidate scan cell having a "1", pr, is the probability that the fault is triggered. The logical probability value is known to consist of the impact of the occurrence and non-occurrence of 0,1 transitions, respectively, and whether a fault has occurred.
S34, obtaining logic probability of updating the candidate scanning units according to simulation response and fault circuit response of the candidate scanning units in the loading and unloading processes, and calculating cost loss factors of the fault scanning chains according to the logic probability and the number of fault bits.
A class of cost penalty factors: calculating a matching score Match according to the ratio of the number of the explained fault bits to the total number of the fault bits after the fault injection is accumulated; and calculating Mismatch score Mismatch according to the ratio of the number of the good values of the accumulated errors to the total number of the good values in the test mode.
Wherein the match score is obtained based on the historical simulated response and the observed fault circuit response, and the total match score is the sum of all match scores for each fault cell. Whereas Mismatch score Mismatch is a measure of the difference between the simulated value and the good value observed in the event of an injected fault, which is the ratio of the number of false good values to the total number of good values in this pattern.
Calculating a cost loss factor CL of one type according to the matching score and the unmatched score 1 The formula is as follows:
CL 1 =K 1 *Match+K 2 *Mismatch
wherein ,K1 and K2 Is a correlation coefficient, and K 1 Is a negative value, K 2 Is positive.
And calculating the second class cost loss factor, namely after calculating the corresponding logic probability in the first three steps, judging by a calculation method according to the two mismatch probabilities. Assuming that a "0" ("1") is observed at i, the mismatch score is P i 1 (P i 0 ) The corresponding type A mismatch score is noted as UF 1 Type B mismatch scores are noted as UF 2 . Type a mismatch scores are calculated from cycles in which faults are detected during historical cycles, type B mismatch scores UF 2 Is calculated in the period of no detected fault, and after logic probability is summarized and updated several times, the two kinds of scores are added to obtain two kinds of cost loss factors CL 2 Referring to fig. 4 for a schematic diagram of calculation logic, the formula is as follows:
CL 2 =L 1 *UF 1 +L 2 *UF 2
wherein ,L1 and L2 For positive values, two classes of mismatch scores are determined based on two mismatch probabilities.
Through the steps, two types of cost loss factors of each candidate scanning unit can be calculated in a polling mode, and the target fault point is determined according to the size of the cost loss factors. The method specifically comprises the following steps:
a, obtaining one type of cost loss factors and two types of cost loss factors of all candidate scanning units in a suspicious range, and sorting the one type of cost loss factors in ascending order.
And b, when only one lowest cost loss factor exists, determining the corresponding candidate scanning unit as a target fault point of the fault scanning chain.
And c, when at least two identical lowest cost loss factors exist, comparing the two kinds of cost loss factors of the plurality of uncertain points, and determining the uncertain point with the smaller two kinds of cost loss factors as a target fault point.
The process is to find out the lowest cost loss factor of the first class, when the parallel condition exists, the existence of at least two uncertain points is indicated, and at the moment, the two cost loss factors of the second class are started for comparison, and the lower cost loss factor is taken as the target fault point.
S4, modifying the target fault point location, and comparing the total cost loss factor accumulated in the current period with the total cost loss factor accumulated in the previous period; if the total cost loss factor of the current period is not less than the total cost loss factor of the previous period, determining all fault points and ending the fault diagnosis of the chip.
The method specifically comprises the following steps:
a, after determining the target fault point of the xth period, the fault is injected and the sum of the first class and the second class cost loss factors corresponding to the scanning unit is recalculated after modification to obtain the total cost loss factor CL in the xth period x The expression is as follows:
CL x =CL x1 +CL x2 wherein ,CL1x A class of cost penalty factors, CL, representing the x-th period 2x Representing the second class cost penalty factor for the x-th period.
b, when CL x ≥CL x-1 And when the total cost loss factor in the x-th period is indicated to be not smaller than the total cost loss factor in the x-1 th period, namely, the loss factor is larger relative to the last query modification result, so that all fault points are found, the modification is not needed, and the chip fault diagnosis is finished.
c, when CL x ≤CL x-1 And when the total cost loss factor in the x-th period is not more than the total cost loss factor in the x-1 th period, removing the current scanning point, redefining the suspicious range and searching the next fault point, and determining the rest target fault points by traversing all scanning units until all fault points are queried and modified.
It should be noted that, when there is only one fault point on one fault scan chain, the process is directly finished, and the next fault scan chain is entered to continue to execute the above steps.
FIG. 5 is an algorithm flow chart of a scan chain and combinational logic fault diagnosis method based on cost penalty factors, comprising the steps of:
determining the fault type of a fault scanning chain machine;
determining the scannable range of the scannable unit, i.e. determining the upper and lower limits;
injecting corresponding faults into the ith candidate scanning unit;
changing suspicious bits and loading a fault scan chain;
performing four-value logic simulation on the test unit, capturing test response and calculating logic probability of the candidate scanning unit;
changing suspicious bits, unloading the fault scan chain and updating logic probability;
calculating one class and two classes of cost loss factors according to the calculation and test processes;
after all the candidate scanning units in the suspicious range are tested, determining a target fault point by comparing two types of cost loss factors and the total cost loss factors and modifying the target fault point;
if the total cost loss factor of the current period is larger than that of the previous period, finding all fault points, ending diagnosis, otherwise, removing the determined target fault points, re-determining the suspicious range, and circularly executing the process until the conditions are met.
In summary, the scheme uses the matching degree cost loss factor calculation to perform fault diagnosis, combines two types of cost loss calculation methods to perform algorithms simultaneously, improves the decision accuracy, and reduces the traditional fault diagnosis time. Through carrying out corresponding operation by utilizing the known fault type judgment in the loading and unloading process, the influence of faults on other good point positions is avoided, the method has good effect on accurate fault point position judgment of multiple fault situations, the peripheral hardware cost can be saved, the fault points on each fault scanning chain can be accurately positioned, and the diagnosis efficiency and the detection precision are improved.
The scheme is to compare in a scan chain to be tested with 147000 scan units, and if the algorithm provided by the scheme is not adopted, the traditional physical and hardware methods need to compare each scan unit one by one, so that the number is too large, and the comprehensive detection of faults is difficult to complete. And the true situation is that in the 147000 scanning units, more than one fault exists, and the existing algorithm cannot accurately judge the fault points. When the cost calculation method algorithm is adopted, the running time is only about 1 hour, the design 3 is 5 hours, and the diagnosis resolution is higher, and the artificial silicon debugging of the large design usually takes several months. In contrast, a great deal of labor time and time cost are saved, and meanwhile, the detection precision is improved.
The foregoing describes preferred embodiments of the present invention; it is to be understood that the invention is not limited to the specific embodiments described above, wherein devices and structures not described in detail are to be understood as being implemented in a manner common in the art; any person skilled in the art will make many possible variations and modifications, or adaptations to equivalent embodiments without departing from the technical solution of the present invention, which do not affect the essential content of the present invention; therefore, any simple modification, equivalent variation and modification of the above embodiments according to the technical substance of the present invention still fall within the scope of the technical solution of the present invention.
Claims (10)
1. A scan chain and combinational logic fault diagnosis method based on a cost loss factor, the method comprising:
s1, finding out all fault scan chains by detecting a chip to be detected and judging fault types;
s2, determining suspicious ranges of suspicious scanning units in the fault scanning chain by using an ATPG test mode set corresponding to the scanning chain;
s3, sequentially injecting faults of the same type as the fault scanning chain into each candidate scanning unit in the suspicious range, calculating cost loss factors of the fault scanning chain by comparing simulation responses of the candidate scanning units and fault circuit responses, and determining target fault points of the fault scanning chain;
s4, modifying the target fault point location, and comparing the total cost loss factor accumulated in the current period with the total cost loss factor accumulated in the previous period; if the total cost loss factor of the current period is not less than the total cost loss factor of the previous period, determining all fault points and ending the fault diagnosis of the chip.
2. The scan chain and combinational logic fault diagnosis method based on cost loss factor according to claim 1, wherein S3 comprises:
s31, sequentially injecting the selected candidate scanning units into faults of the same type as the faults, changing the suspicious bit values of the candidate scanning units according to the fault types in the loading process, and loading the fault scanning chains;
s32, performing four-value (0, 1, X, Z) logic simulation on the loaded fault scanning chain, capturing test response, and calculating a logic probability value of the test response;
s33, changing the suspicious bit again according to the assumed output value of the fault type in the unloading process, and unloading the fault scanning chain;
s34, obtaining logic probability of updating the candidate scanning units according to simulation response and fault circuit response of the candidate scanning units in the loading and unloading processes, and calculating the cost loss factor of the fault scanning chain according to the logic probability and the number of fault bits.
3. The scan chain and combinational logic fault diagnosis method based on cost penalty factors according to claim 2, wherein the cost penalty factors include a class one cost penalty factor and a class two cost penalty factor, and the class two cost penalty factors are calculated based on a probabilistic search method; s31 includes:
setting suspicious bits corresponding to the candidate scanning units and adjacent bits thereof as output values which are subjected to fault after loading; and calculating the first logic probability of all the candidate scanning units loaded in the suspicious range through the position of fault injection and the probability of triggered faults.
4. The scan chain and combinational logic fault diagnosis method based on cost penalty factor as claimed in claim 3,
s32 includes: capturing a test response of the four-value logic simulation; updating and calculating the first logic probability based on a test response and a COP algorithm to obtain a second logic probability of the candidate scanning unit;
s33 includes: setting suspicious bits corresponding to the candidate scanning units and adjacent bits thereof as output values with faults after unloading, wherein the values captured by other normal chains are unchanged, and unloading the fault scanning chains; updating and calculating a third logic probability of the candidate scanning unit after unloading through the following formula;
wherein ,is the logical probability of the i-th candidate scan cell to appear "0",>logic probability of occurrence of "1" for ith candidate scan cell, ">Logical probability of the i+1 candidate scan cell to appear "0", ">The logical probability of the i+1 candidate scan cell having a "1", pr, is the probability that the fault is triggered.
5. The scan chain and combinational logic fault diagnosis method based on cost penalty factor according to claim 4, wherein S34 comprises:
calculating a matching score Match according to the ratio of the number of the explained fault bits to the total number of the fault bits after the fault injection is accumulated; wherein the matching score is obtained based on historical simulated responses and observed fault circuit responses;
calculating Mismatch scores Mismatch according to the ratio of the number of the good values of the accumulated errors to the total number of the good values in the test mode; the mismatch score is used to describe the difference between the simulated and good values observed in the event of an injection fault;
calculating the cost loss factor CL of the class according to the matching score and the unmatched score 1 The formula is as follows:
CL 1 =K 1 *Match+K 2 *Mismatch
wherein ,K1 and K2 Is a correlation coefficient, and K 1 Is a negative value, K 2 Is a positive value;
obtaining a type A mismatch score UF calculated when a fault is detected during a history period 1 And a type B mismatch score UF calculated when no fault is detected 2 Calculating the second class cost loss factor CL according to the two classes of mismatch scores 2 The formula is as follows:
CL 2 =L 1 *UF 1 +L 2 *UF 2
wherein ,L1 and L2 For positive values, the two types of mismatch scores are judged according to the two mismatch probabilities;
and determining the target fault point according to the one type of cost loss factors and the two types of cost loss factors.
6. The cost-penalty factor-based scan chain and combinational logic fault diagnosis method of claim 5, wherein determining the target fault point process comprises:
acquiring the one type of cost loss factors and the two types of cost loss factors of all the candidate scanning units in the suspicious range, and sorting the one type of cost loss factors in ascending order;
when only one lowest cost loss factor exists, determining the corresponding candidate scanning unit as the target fault point of the fault scanning chain; and when at least two identical lowest cost loss factors exist, comparing the two kinds of cost loss factors of a plurality of uncertain points, and determining the uncertain point with the smaller two kinds of cost loss factors as the target fault point.
7. The scan chain and combinational logic fault diagnosis method based on cost loss factor according to claim 1, wherein S2 comprises:
based on the fault type loading and unloading value characteristics, the modified ATPG test mode is used for covering the influence of a fault unit on the result obtained after the scanning process, and the upper bound and the lower bound of the suspicious range are identified by comparing the analog value obtained in the test process with the value observed in the fault circuit response.
8. The cost-penalty-factor-based scan chain and combinational logic fault diagnosis method according to claim 7, wherein S4 comprises:
after the target fault point of the xth period is determined, the fault is injected and the sum of one class and two classes of cost loss factors corresponding to the scanning unit is recalculated after modification, so as to obtain the total cost loss factor CL in the xth period x The expression is as follows:
CL x =CL x1 +CL x2
wherein ,CL1x A class of cost penalty factors, CL, representing the x-th period 2x A second class cost penalty factor representing an x-th period;
when CL is x ≥CL x-1 And when the total cost loss factor in the x-th period is not smaller than the total cost loss factor in the x-1 th period, indicating that all fault points are found and ending the fault diagnosis of the chip.
9. The method for fault diagnosis of scan chain and combinational logic based on cost loss factor according to claim 1, wherein when CL x ≤CL x-1 And when the total cost loss factor in the x-th period is not more than the total cost loss factor in the x-1 th period, removing the current scanning point, re-determining the suspicious range and searching the next fault point, and determining the rest target fault points by traversing all scanning units until all fault points are queried.
10. The method for diagnosing a fault of a scan chain and combinational logic based on a cost penalty factor according to claim 1, wherein the faulty scan chain is identified by a flushing pattern of several chains, and a fault result different from a predetermined result occurs according to a fault occurring in a part of units of the scan chain or combinational logic during loading or unloading.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310100980.1A CN116106729B (en) | 2023-02-10 | 2023-02-10 | Scan chain and combinational logic fault diagnosis method based on cost loss factor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310100980.1A CN116106729B (en) | 2023-02-10 | 2023-02-10 | Scan chain and combinational logic fault diagnosis method based on cost loss factor |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116106729A true CN116106729A (en) | 2023-05-12 |
CN116106729B CN116106729B (en) | 2024-06-07 |
Family
ID=86267031
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310100980.1A Active CN116106729B (en) | 2023-02-10 | 2023-02-10 | Scan chain and combinational logic fault diagnosis method based on cost loss factor |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116106729B (en) |
Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1531046A (en) * | 2003-03-14 | 2004-09-22 | 矽统科技股份有限公司 | Fault positioning method for scanning link of logic integrated circuit |
US20080040637A1 (en) * | 2006-08-14 | 2008-02-14 | Yu Huang | Diagnosing mixed scan chain and system logic defects |
CN101285871A (en) * | 2008-05-09 | 2008-10-15 | 中国科学院计算技术研究所 | Scanning chain diagnosis vector generation method and device and scanning chain diagnosis method |
CN101315412A (en) * | 2008-06-12 | 2008-12-03 | 中国科学院计算技术研究所 | Scanning chain fault diagnosis method and system |
CN101320078A (en) * | 2008-07-04 | 2008-12-10 | 中国科学院计算技术研究所 | Scanning chain fault diagnosis system and method, and diagnosis vector generation apparatus |
CN101911491A (en) * | 2007-10-31 | 2010-12-08 | 惠瑞捷(新加坡)私人有限公司 | Be used for the number of retention time fault of analyzing scan chains and definite scan chain or the method for position |
CN102129031A (en) * | 2006-02-17 | 2011-07-20 | 明导公司 | Multi-stage test response compactors |
CN102221671A (en) * | 2011-03-30 | 2011-10-19 | 中国科学院计算技术研究所 | Signal stability detector and time delay tester |
JP2013036903A (en) * | 2011-08-09 | 2013-02-21 | Renesas Electronics Corp | Fault spot estimation system, fault spot estimation method and program for fault spot estimation |
JP2017062222A (en) * | 2015-09-24 | 2017-03-30 | ルネサスエレクトロニクス株式会社 | Test point circuit, scan flip-flop for sequential test, semiconductor device and design device |
KR101837899B1 (en) * | 2017-04-18 | 2018-03-13 | 연세대학교 산학협력단 | Apparatus and method for diagnosing failure of scan chain |
CN109444727A (en) * | 2018-09-20 | 2019-03-08 | 北京工业大学 | A kind of low-power consumption LFSR replay kind test compression method towards Scan Design |
CN111650499A (en) * | 2020-05-29 | 2020-09-11 | Oppo广东移动通信有限公司 | Scanning chain fault diagnosis method and device, test equipment and storage medium |
CN113454471A (en) * | 2019-03-13 | 2021-09-28 | 美商新思科技有限公司 | Single pass diagnosis for multiple strand defects |
CN114398848A (en) * | 2022-02-23 | 2022-04-26 | 无锡玖熠半导体科技有限公司 | Test vector generation method and device and storage medium |
-
2023
- 2023-02-10 CN CN202310100980.1A patent/CN116106729B/en active Active
Patent Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1531046A (en) * | 2003-03-14 | 2004-09-22 | 矽统科技股份有限公司 | Fault positioning method for scanning link of logic integrated circuit |
CN102129031A (en) * | 2006-02-17 | 2011-07-20 | 明导公司 | Multi-stage test response compactors |
US20080040637A1 (en) * | 2006-08-14 | 2008-02-14 | Yu Huang | Diagnosing mixed scan chain and system logic defects |
CN101911491A (en) * | 2007-10-31 | 2010-12-08 | 惠瑞捷(新加坡)私人有限公司 | Be used for the number of retention time fault of analyzing scan chains and definite scan chain or the method for position |
CN101285871A (en) * | 2008-05-09 | 2008-10-15 | 中国科学院计算技术研究所 | Scanning chain diagnosis vector generation method and device and scanning chain diagnosis method |
CN101315412A (en) * | 2008-06-12 | 2008-12-03 | 中国科学院计算技术研究所 | Scanning chain fault diagnosis method and system |
CN101320078A (en) * | 2008-07-04 | 2008-12-10 | 中国科学院计算技术研究所 | Scanning chain fault diagnosis system and method, and diagnosis vector generation apparatus |
CN102221671A (en) * | 2011-03-30 | 2011-10-19 | 中国科学院计算技术研究所 | Signal stability detector and time delay tester |
JP2013036903A (en) * | 2011-08-09 | 2013-02-21 | Renesas Electronics Corp | Fault spot estimation system, fault spot estimation method and program for fault spot estimation |
JP2017062222A (en) * | 2015-09-24 | 2017-03-30 | ルネサスエレクトロニクス株式会社 | Test point circuit, scan flip-flop for sequential test, semiconductor device and design device |
KR101837899B1 (en) * | 2017-04-18 | 2018-03-13 | 연세대학교 산학협력단 | Apparatus and method for diagnosing failure of scan chain |
CN109444727A (en) * | 2018-09-20 | 2019-03-08 | 北京工业大学 | A kind of low-power consumption LFSR replay kind test compression method towards Scan Design |
CN113454471A (en) * | 2019-03-13 | 2021-09-28 | 美商新思科技有限公司 | Single pass diagnosis for multiple strand defects |
CN111650499A (en) * | 2020-05-29 | 2020-09-11 | Oppo广东移动通信有限公司 | Scanning chain fault diagnosis method and device, test equipment and storage medium |
CN114398848A (en) * | 2022-02-23 | 2022-04-26 | 无锡玖熠半导体科技有限公司 | Test vector generation method and device and storage medium |
Non-Patent Citations (1)
Title |
---|
王飞 等: "扫描链故障确定性诊断向量生成算法", 《计算机辅助设计与图形学学报》, vol. 21, no. 1, 31 January 2009 (2009-01-31), pages 6 - 12 * |
Also Published As
Publication number | Publication date |
---|---|
CN116106729B (en) | 2024-06-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6971054B2 (en) | Method and system for determining repeatable yield detractors of integrated circuits | |
US20030005353A1 (en) | Methods and apparatus for storing memory test information | |
Xue et al. | PADRE: Physically-aware diagnostic resolution enhancement | |
JP3734392B2 (en) | Semiconductor integrated circuit failure inspection method and layout method | |
CN114398848B (en) | Test vector generation method, device and storage medium | |
Guo et al. | An algorithmic technique for diagnosis of faulty scan chains | |
CN116106729B (en) | Scan chain and combinational logic fault diagnosis method based on cost loss factor | |
CN101315412A (en) | Scanning chain fault diagnosis method and system | |
Huang | Dynamic learning based scan chain diagnosis | |
Desineni et al. | Identifying design systematics using learning based diagnostic analysis | |
Appello et al. | Understanding yield losses in logic circuits | |
US7007214B2 (en) | Diagnosable scan chain | |
US8397113B2 (en) | Method and system for identifying power defects using test pattern switching activity | |
US6941235B2 (en) | Method and system for analyzing quiescent power plane current (IDDQ) test data in very-large scale integrated (VLSI) circuits | |
US5940413A (en) | Method for detecting operational errors in a tester for semiconductor devices | |
Lim et al. | Diagnosis of scan chain faults based-on machine-learning | |
US6751765B1 (en) | Method and system for determining repeatable yield detractors of integrated circuits | |
Pomeranz et al. | Location of stuck-at faults and bridging faults based on circuit partitioning | |
Pomeranz et al. | Observation point placement for improved logic diagnosis based on large sets of candidate faults | |
CN112148536A (en) | Method and device for detecting deep learning chip, electronic equipment and computer storage medium | |
Song et al. | A method for optimum test point selection and fault diagnosis strategy for BIT of avionic system | |
Pomeranz et al. | Selection of a fault model for fault diagnosis based on unique responses | |
Jana et al. | Deep Learning-assisted Scan Chain Diagnosis with Different Fault Models during Manufacturing Test | |
CN118209847A (en) | Optimization method of scan chain fault diagnosis range based on self-adaptive mode | |
CN116298832A (en) | Fault scan chain shielding method based on compression environment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant |