Abstract:
An N 2  algorithm for optimizing correlated events, applicable to the optimization of the detection of redundant tests and inefficient tests (RIT&#39;s), is disclosed. This algorithm represents a set of N tests with L defects as N L-dimensional correlation vectors. The N 2  algorithm optimizes in terms of the minimum set of vectors, and the set of vectors that take the minimum time to detect the L defects. The minimum set optimization determines a set of vectors (tests) that contains the minimum number of vectors (tests) by analyzing the correlation among the N vectors. This minimum set optimization provides the minimum test set containing all defects in an algorithm that takes O(N 2 ) operations. The minimum time optimization determines a sequence of vectors (tests) that will detect the defects in a minimum amount of time. Taking into the account of the different execution time of each vector (test), the algorithm analyzes the complicated correlation among the vectors (tests) and gives an optimized sequence of vectors (tests) within O(N 2 ) operations. The optimized sequence of vectors (tests) takes a minimum amount of time to find all the defects.

Description:
TECHNICAL FIELD 
   This invention relates generally to the field of integrated circuit systems, and more specifically to the detection of defects in digital integrated circuits. 
   BACKGROUND OF THE INVENTION 
   An important aspect of the manufacture of integrated circuits (IC&#39;s) is the post-production testing process. The goal of the post-production testing process is to apply test inputs to a device and determine if the device is defective. Preferably, this defect detection process occurs as early point as possible since further integration of faulty components rapidly becomes very expensive. Consider for example, attempting to determine the location of a faulty IC in a personal computer system. There are several different kinds of tests that can be applied to IC defect testing. Exhaustive tests seek to apply every possible input in order to determine if any defects are present in the IC. Functional testing tests the functions present on the IC for correct operation. The fault model test determines each type of fault that is likely to occur, and devises tests for these common faults. The exhaustive test can be the most time-consuming and may also be expensive. Functional testing is problematic in that the test design must accurately ensure that all functionality is correctly tested. Functionality testing requires application specific knowledge to ensure that all incorporated functionality has been tested. Fault modeling will detect the faults assumed within the framework of the fault model. An example of the fault model is the stuck-at fault model. This model assumes a limited number of faults and assumes that the faults are permanent. 
   A well-designed test plan should use the least number of test inputs to cover the most number of defects or defective dice (DD&#39;s), and the test plan should be designed so that a test sequence is executed in an efficient fashion. Many of the exhaustive, functional, and fault models are based upon RTL and schematics. Thus the influence of the physical layout of the IC and the manufacture process (PLMP) on the defect creation in IC circuits is not exploited in the test strategy. The lack of relation between the test input data creation and the PLMP makes these methods susceptible to having redundant tests and performing a test inefficiently. The number of redundant tests and inefficient tests (RIT&#39;s) is a valuable parameter to consider when designing test plans, since there is a strong benefit in terms of reducing test execution time and test complexity when the number of RIT&#39;s are reduced. Current strategies that reduce the number of RIT&#39;s seek to eliminate the execution of redundant tests in the IC testing process using the same exhaustive, functional, and fault model strategies used in IC standardized IC testing. 
   Eliminating redundant tests and reordering tests to increase the test efficiency has become an important area of research as the IC test becomes increasingly expensive. In IC testing, tests are generated using simulations and other means. Evaluating the tests is important for increasing test efficiency and reducing test time. Efficient numerical algorithms for analyzing the test redundancy and the test sequence efficiency are required to meet the need for IC test time reduction techniques. 
   Thus, there is an unmet need in the art for an efficient numerical algorithm for analyzing a given test sequence redundancy and efficiency. 
   SUMMARY OF THE INVENTION 
   This invention discloses an N 2  algorithm for optimizing IC tests. The test optimization of the present invention refers to minimizing the amount of time spent on RIT&#39;s. The method of the present invention uses the IC simulation data or IC production test data. The simulation data contains the relation between tests and defects. The IC production data reflects the PLMP and gives the relation between tests and DD&#39;s. Both of the data can then be processed to detect RIT&#39;s in IC tests. The test optimization can occur on the defect (fault) level using IC simulation data and the DD level using IC production data. The optimization process is the same for both defects (faults) and DD&#39;s, so only one approach will be described here. 
   The test optimization problem may be described as follows: Given N tests in a test sequence and L DD&#39;s, each of the N tests detects between 1 and L of the L DD&#39;s. And each test takes a certain amount of time to be executed. The first part of the test optimization problem determines the set of tests which takes the minimum number of tests to detect all the L DD&#39;s. The second part of the test optimization problem determines the set of tests and the execution sequence of the tests that takes the minimum time to detect all the DD&#39;s. 
   Both test optimization problems can be framed in terms of representing N tests as N vectors. Each of the N vectors has L components, corresponding to the L DD&#39;s. For each of the N tests, we create a correlation vector, V. For test i, we have
 
 V ( i )=( v   1 ( i ),  v   2 ( i ), . . . ,  v   L ( i )),
 
where v j (i) is equal to zero if test i does not detect DD j and is equal to one if test i detects DD j. After representing each test as a correlation vector, each test can be treated as an event in a correlated event problem. The execution time of a test can be treated as the time taken by the corresponding event. The list of DD&#39;s that a test detects is the correlation vector for the test. Therefore, the test optimization problem is the same as the minimum set optimization and the minimum time optimization problems of correlated events.
 
   Both parts of the test optimization problem can take on the order of N! operations to determine the optimum set. A vector projection technique is used to calculate the correlation between the N correlation vectors. This projection technique requires on the order of N 2  operations to optimize the correlated event problem. 
   The following algorithm takes on the order of N 2  operations to determine the minimum set in which each test is represented as a correlation vector:
         a. Choose a correlation vector in the N vectors such that the correlation vector contains the most number of non-zero components. Assign this vector to vector W. Store this vector.   b. Determine a correlation vector of the remaining correlation vectors such that the length of the projection of the multiplication of W and the complement of the vector onto the unit vector is the smallest.   c. Store this vector, and update W to be the multiplication of W and the complement of this vector. Repeat the previous step b until the projection of W onto the unit vector becomes zero.       

   The following algorithm takes on the order of N 2  operations to determine the minimum time: 
   Represent each test as a correlation vector.
         a. Choose a correlation vector in the N vectors such that the vector has the largest value of the number of non-zero components divided by the time associated with the vector. Multiply the complement of this vector with the unit vector and form a vector W. Store this vector.   b. Determine a correlation vector of the remaining correlation vectors such that the length of the projection of the vector onto vector W divided by the time associated with the vector is the largest.   c. Store this vector, and update W to be the multiplication of W and the complement of this vector. Repeat the previous step b until the projection of vector W onto the unit vector becomes zero.       

   
     BRIEF DESCRIPTION OF THE DRAWINGS 
     The features of the invention believed to be novel are set forth with particularity in the appended claims. The invention itself however, both as to organization and method of operation, together with objects and advantages thereof, may be best understood by reference to the following detailed description of the invention, which describes certain exemplary embodiments of the invention, taken in conjunction with the accompanying drawings in which: 
       FIG. 1  is a block diagram of a minimum set optimization method, according to an embodiment of the present invention. 
       FIG. 2  is a block diagram of a minimum time optimization method, according to an embodiment of the present invention. 
   

   DETAILED DESCRIPTION OF THE INVENTION 
   While this invention is susceptible of embodiment in many different forms, there is shown in the drawings and will herein be described in detail specific embodiments, with the understanding that the present disclosure is to be considered as an example of the principles of the invention and not intended to limit the invention to the specific embodiments shown and described. In the description below, like reference numerals are used to describe the same, similar or corresponding parts in the several views of the drawings. 
   The disclosed algorithm for optimizing correlated events is applied to the problem of analyzing redundant tests and reordering tests. Thus, as will be shown below, the problem of analyzing redundant tests and reordering tests is equivalent to analyzing correlated events. The description of this invention contains three parts: The formulation for correlated events, the algorithm for optimizing the correlated event problem, and the mapping between the correlated event optimization problem and the related test optimization problem. 
   Correlated Events 
   Consider N events that may occur in any sequence. Number the N events using integers from 1 to N. If the N events are correlated, the occurrence of some of the events depends on the occurrence of other events. For example, consider N=5. The correlation among the five events may be the following:
         1) If events 2, 4 and 5 take place before events 1 and 3, then events 1 and 3 will not occur.   2) If events 1 and 5 take place before events 2, 3 and 5, then events 2, 3, and 5 will not occur.
 
Conditions 1) and 2) define the correlation among the five events in this example.
       

   In the N correlated events, there is at least one such set of events that their occurrence prevents other events from occurring. In general, there exists more than one such set of events. Such a set of events is called a minimum set. The problem of finding the minimum set of events is referred to as a minimum set optimization problem. In the above example, events 1 and 5, are the minimum set. Finding the minimum set of a collection of events is difficult in general because the correlation among events is defined implicitly and the value of N is often large. Therefore, the complexity of the computation for finding a minimum set is very high. 
   To formulate the correlation among N events, we represent each of the N events as a binary vector in an L-dimensional correlation space. Each of the components of a binary vector is (0,1) valued. The binary vectors are called correlation vectors. Let V(i) be the correlation vector associated with event i. Then,
 
 V ( i )=( v   1 ( i ),  v   2 ( i ), . . . ,  v   L ( i ))
 
where v j (i) is the jth component of correlation vector V(i) and is (0,1)-valued. To describe the correlation among the N events, we need to define the operations of the multiplication, addition, and complement of correlation vectors. Define multiplication of correlation vectors V(i) and V(j) to be
 
 V ( i ) V ( j )=( v   1 ( i )&amp; v   1 ( i ),  v   2 ( i )&amp; v   2 ( i ), . . . ,  v   L ( i )&amp; v   L ( i )),
 
where &amp; is the Boolean AND operator. Define the addition of correlation vectors V(i) and V(j) to be
 
 V ( i )+ V ( j )=( v   1 ( i )| v   1 ( i ),  v   2 ( i )| v   2 ( i ), . . . ,  v   L ( i )| v   L ( i )),
 
where | is the Boolean OR operator. Finally, define the complementary vector of correlation vector V(i), V(i)′ to be the complement of the individual components.
 
   Let I be the unit correlation vector. All the components of the unit correlation vector are one. The correlation among the N events is defined to be that the occurrence of events i 1 , i 2 , . . . , i a  prevents the occurrence of events i a+1 , . . . , i L  if 
                   ∑     j   =   1     a     ⁢           ⁢     V   ⁡     (     i   j     )         =   I     ,           (   1   )             
 
where 1&lt;=a&lt;=L, 1&lt;=I j &lt;=N, i j I=i k  and 1&lt;=j, k&lt;=L. This equation can also be written as 
                 ∏     j   =   1     a     ⁢           ⁢       V   ⁡     (     i   j     )       ′       =     I   ′             (   2   )             
 
   The correlation vectors determine the correlation among the N events through equation (1) or equation (2). The minimum set optimization is to find a set of events so that the value of the variable a in equation (1) or equation (2) reaches it&#39;s minimum. 
   In a more general case, each event is associated with a time. Let t(i) be the time that event i takes. Then the total time T that events i 1 , i 2 , . . . , i a  take is 
               T   ⁡     (       i   1     ,     i   2     ,   …   ⁢           ,     i   a       )       =       ∑     j   =   1     a     ⁢           ⁢     t   ⁡     (     i   j     )                 (   3   )             
 
   The minimum time optimization problem is to find a set of events so that the total time T reaches it&#39;s minimum. This problem is called minimum time optimization. If all the t(i)&#39;s are equal, then this problem reduces to the minimum set optimization problem. 
   From the formulation of correlated events above, we can see that the values of N and L determine the complexity of the correlation. In practice, the values of N and L are large, so that the optimization problem can be intractable. 
   Minimum Set Optimization Problem 
   If an exhaustive search is performed, the computation across N events requires O(N!) operations, so that this method is not practical for large values of N. The following minimum set optimization algorithm is O(N 2 ). 
   Define P A (B) to be the square of the length of the projection of correlation vector B onto correlation vector A. So 
           P   A     ⁢     (   B   )       =       ∑     i   =   1     L     ⁢           ⁢       a   i     ·     b   i             
 
   Define W(i 1 , i 2 , . . . , i k ) to be 
         W   ⁢     (       i   1     ,     i   2     ,   …   ⁢           ,     i   k       )       =     I   ⁢       ∏     j   =   1     k     ⁢           ⁢         (     V   ⁢     (     i   j     )       )     ′     .             
 
   With this definition, P I (W(i 1 , i 2 , . . . , i a ))=P i (I′)=0. By definition, for a given W, P I (W)&gt;=0 and is a decreasing function of k in W. That is, adding a correlation vector to W decreases P I (W). In the process of searching a minimum set, if we keep the value of P I (W) to be as small as possible while adding correlation vectors to W, then the set of events in W will approach a minimum set. Assume that a set of correlation vectors V(i 1 ), V(i 2 ), . . . , V(i k )) in the N vectors is chosen such that P I (W) is a minimum. As we add additional vectors to W from the remaining N−k vectors while we keep P i (W) to the minimum, we will eventually reach P I (W)=0. This set of vectors in W will represent the minimum set. Referring to  FIG. 1 , and the following pseudo-code, the minimum time optimization algorithm is summarized: 
                                                                                                                 U(i) = minimum set; W = I; n = 1;// block 110           for (I=1;I&lt;=N;I+ +)                {           M 0  = L and i 0  = 1 // block 120           for (j=i;j&lt;=N;j+ +)                {           // start block 130           M = P l (W*V(j)′);           if (M &lt;= M 0 )                {           M 0  = M;           i 0  = j;           }                // end block 130           }                // start block 140           U(n) = V(i 0 );           if (M 0  = = 0)                stop;                // end block 140           // start block 150           W = WU(n)′;           n=n+1;           // end block 150           }                        
Minimum Time Optimization
 
   In this problem, it is necessary to include the changes to P I (W) and the changes to time T by t(I k +1) when we add the (k+1)th correlation vector into W. First note that,
 
 P   A ( B )= P   B ( A )  (4)
 
and
 
 P   A ( I )= P   A ( B+B ′)= P   A ( B )+ P   A ( B ′)  (5)
 
   Using equations (4) and (5), one can readily obtain
 
 P   W(i1, i2, . . . , ik) ( V ( i   k+ 1))=−[ P   I ( W ( i   1   , i   2   , . . . , i   k+1 ))−P I ( W ( i   1   , i   2   , . . . , i   k ))].
 
From this equation, it is seen that P W(i1, i2, . . . , ik)  (V(i k+1 )) is an amount of the decrement of P I (W) after adding a (k+1)th correlation vector into W. It is possible to treat the value of P W(i1, i2, . . . , ik)  (V(ik+1)) as a measure of a displacement of P I (W) towards 0 after time t(i k+1 ) is taken by event (i k+1 ). Then, the quantity P W(i1, i2, . . . , ik)  (V(i k+1 ))/t(i k+1 ) is the measure of the speed of P I (W) towards 0 when event vector V(i k+1 ) is added into W. If we choose the (k+1)th event such that the value of P W(i1, i2, . . . , ik)  (V(i k+1 ))/t(i k+1 ) is a maximum, then this selection causes the total time T to be a minimum, T(i 1 , i 2 , . . . , i a ). Referring to  FIG. 2 , and the following pseudo-code, the minimum time optimization algorithm is summarized:
 
   
     
       
             
           
             
             
           
             
             
           
             
             
           
             
             
           
             
             
           
             
             
           
             
             
           
         
             
                 
             
           
           
             
               U(i) = the minimum set of correlated events, W = I, and n = 1 // block 210 
             
             
               for (i=1;i&lt;=N;i+ +) 
             
           
        
         
             
                 
               { 
             
             
                 
               M 0  = 0; // block 220 
             
             
                 
               for (j=i;j&lt;=N;j+ +) 
             
           
        
         
             
                 
               { 
             
             
                 
               // start block 230 
             
             
                 
               M = P W (V(j))/t(j); 
             
             
                 
               if (M &gt;= M 0 ) 
             
           
        
         
             
                 
               { 
             
             
                 
               M 0  = M; 
             
             
                 
               i 0  = j; 
             
             
                 
               } 
             
           
        
         
             
                 
               // end block 230 
             
             
                 
               } 
             
           
        
         
             
                 
               // start block 240 
             
             
                 
               U(n) = V(i 0 ); 
             
             
                 
               if (M 0  = = 0) 
             
           
        
         
             
                 
               stop; 
             
           
        
         
             
                 
               // end block 240 
             
             
                 
               W = WU(n)′; n=n+1; // block 250 
             
             
                 
               } 
             
             
                 
                 
             
           
        
       
     
   
   The minimum time algorithm and the minimum set algorithm contain two loops related to the number of events, N. The number of operations is proportional to N 2  which is much smaller than O(N!). Also, note that bit maps can be used to store the correlation vectors so that less memory is used and bit-wise operations are used to calculate W. The use of bit maps and bit-wise operations also reduce the amount of time required to execute the algorithms. 
   When the execution time of each test is the same, the minimum set optimization algorithm can be applied to the determination of how to remove redundant tests and reorder tests in an efficient sequence such that higher efficient tests are executed earlier. When the execution time of each test is different, the minimum time optimization algorithm can be applied to the determination of how to remove redundant tests and the efficient test execution sequence. If we associate N with the number of tests in a given test sequence, and L with the number of DD&#39;s, then we can represent the N tests as L-dimensional correlation vectors. With this assignment, it becomes possible to apply the minimum set optimization and minimum time optimization to RIT&#39;s. 
   While the minimum time optimization and the minimum set optimization have been applied to the RIT&#39;s, it will be clear to one of skill in the art that the minimum time optimization and minimum set optimization may be applied to other optimization problems. Examples of other optimization problems include determining DD. 
   While the invention has been described in conjunction with specific embodiments, it is evident that many alternatives, modifications, permutations and variations will become apparent to those of ordinary skill in the art in light of the foregoing description. Accordingly, it is intended that the present invention embrace all such alternatives, modifications and variations as fall within the scope of the appended claims.