CN111289876A - Method for generating boundary scan interconnection test vector of large-scale circuit - Google Patents

Method for generating boundary scan interconnection test vector of large-scale circuit Download PDF

Info

Publication number
CN111289876A
CN111289876A CN202010134651.5A CN202010134651A CN111289876A CN 111289876 A CN111289876 A CN 111289876A CN 202010134651 A CN202010134651 A CN 202010134651A CN 111289876 A CN111289876 A CN 111289876A
Authority
CN
China
Prior art keywords
circuit
fault
short
population
probability
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
Application number
CN202010134651.5A
Other languages
Chinese (zh)
Other versions
CN111289876B (en
Inventor
刘震
王原
程杰
程玉华
黄建国
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
University of Electronic Science and Technology of China
Original Assignee
University of Electronic Science and Technology of China
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by University of Electronic Science and Technology of China filed Critical University of Electronic Science and Technology of China
Priority to CN202010134651.5A priority Critical patent/CN111289876B/en
Publication of CN111289876A publication Critical patent/CN111289876A/en
Application granted granted Critical
Publication of CN111289876B publication Critical patent/CN111289876B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/28Testing of electronic circuits, e.g. by signal tracer
    • G01R31/2801Testing of printed circuits, backplanes, motherboards, hybrid circuits or carriers for multichip packages [MCP]
    • G01R31/281Specific types of tests or tests for a specific type of fault, e.g. thermal mapping, shorts testing
    • G01R31/2815Functional tests, e.g. boundary scans, using the normal I/O contacts
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/28Testing of electronic circuits, e.g. by signal tracer
    • G01R31/2851Testing of integrated circuits [IC]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/12Computing arrangements based on biological models using genetic models
    • G06N3/126Evolutionary algorithms, e.g. genetic algorithms or genetic programming

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Biophysics (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Theoretical Computer Science (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Evolutionary Biology (AREA)
  • Computer Hardware Design (AREA)
  • Physiology (AREA)
  • Artificial Intelligence (AREA)
  • Biomedical Technology (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Evolutionary Computation (AREA)
  • General Health & Medical Sciences (AREA)
  • Molecular Biology (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Genetics & Genomics (AREA)
  • Tests Of Electronic Circuits (AREA)

Abstract

The invention discloses a method for generating a boundary scan interconnection test vector of a large-scale circuit, which comprises the steps of firstly extracting characteristic information of a circuit to be tested from a related report file of a circuit board, calculating the short-circuit fault probability of an interconnection network in the circuit to be tested, and establishing a fault limiting model; then constructing a fault set according to the fault model and determining a fitness function of a genetic algorithm; then randomly generating an initial test vector; and finally, injecting the faults in the fault set into a limited model of the tested circuit, evaluating whether the faults in the fault set can be diagnosed by using a fitness function, and optimizing the current test vector by using a genetic algorithm if the faults in the fault set cannot be diagnosed by using the current test vector until the test vector meets the expectation.

Description

Method for generating boundary scan interconnection test vector of large-scale circuit
Technical Field
The invention belongs to the technical field of circuit fault testing, and particularly relates to a method for generating boundary scan interconnection testing vectors of a large-scale circuit.
Background
With the development of large-scale integrated circuit technology, the structure of a circuit is more and more complex, the physical size of a device is smaller and smaller, the testing and maintenance difficulty is increased, and the access to the internal nodes of a circuit system by a physical probe is difficult or even impossible in the traditional testing methods such as a needle bed test, a flying needle test and the like. The advent of boundary scan technology has provided a powerful means for solving the testing problem of complex circuits.
A hotspot and difficulty in the study of boundary scan technology is the algorithm for generating interconnection test vectors. Algorithms can be divided into four categories: a conventional test vector generation algorithm, a self-adaptive test vector generation algorithm, a structural test vector generation algorithm and a test vector generation algorithm based on fault simulation. With the increase of circuit scale, the number of measurable networks on a tested circuit board is rapidly increased, and the conventional vector generation algorithm has difficulty in considering the length of a test vector and the fault diagnosis capability at the time of testing. The test vector generation algorithm based on the fault simulation provides a new idea for the generation of the test vector, so that the genetic algorithm, the neural network and the like are applied to the interconnection test. The basic idea is to randomly generate an initial test vector set, inject the faults in a predetermined fault set into a circuit model to be tested, then verify whether the current test vector set can diagnose the faults, and if not, modify the current test vector set until the test vector set can cover all the faults in the fault set.
At present, a test vector generation algorithm based on fault simulation does not combine structural information of a circuit when a fault set is predetermined, and an unlimited fault model is adopted, namely, any two networks are assumed to be possible to be short-circuited, and actually, only networks with close physical positions are possible to be short-circuited. The preset fault set directly influences the fault diagnosis capability of the test vector set generated by the algorithm, and the fault set determined by using the unlimited fault model is obviously not superior enough, so that the improvement space is still provided.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a method for generating boundary scan interconnection test vectors of large-scale circuits, which utilizes a genetic algorithm to quickly generate the test vectors.
In order to achieve the above object, the present invention provides a method for generating a boundary scan interconnection test vector of a large-scale circuit, comprising the steps of:
(1) extracting characteristic information of the circuit to be tested
Analyzing a netlist file, a BOM file and a BSDL file of a circuit to be tested, and recording the total number of measurable networks in the circuit to be tested and the distance between any two objects on a circuit board in the circuit to be tested; wherein, the total number of measurable networks is recorded as N, the ith measurable network is recorded as Ni,i=1,2,…,n;
(2) Constructing a test vector set MTV
In boundary scan testing, test vector STV loaded onto ith testable networkiI ═ 1,2, …, n; then STV is usediForming a Boolean matrix as a row vector, which is called a test vector set MTV;
Figure BDA0002396908250000021
wherein,
Figure BDA0002396908250000022
anmthe element which represents the nth row and the mth column in the matrix MTV has a Boolean value;
(3) calculating the short-circuit fault probability of the interconnection network in the circuit to be tested
(3.1) calculating fault probability α (P) of short circuit between any two objects (such as welding spots, wires, etc.) on the circuit boardm,Pn);
Figure BDA0002396908250000023
Wherein, PmAnd PnRepresenting two objects on a circuit board, α0A represents a decay function of the probability of a short-circuit fault with respect to the distance between two objects, L0As two objectsA minimum distance between two objects, L is the distance between two objects, LMThe maximum physical distance when a short-circuit fault occurs between two objects;
(3.2) computing two networks N interconnectediAnd NjProbability of short-circuit failure β (N)i,Nj);
Figure BDA0002396908250000024
(4) Establishing a limited fault model P
Figure BDA0002396908250000031
(5) Structural failure set
(5.1) constructing a fault set H1
H1={NiNj|β(Ni,Nj)≠0,β(Ni,Nj)∈P},
Wherein N isiNjRepresentation network NiAnd NjShort-circuit fault occurring therebetween, short-circuit fault NiNjIs marked as a fault
Figure BDA0002396908250000032
(5.2) constructing a fault set H2
The fault probabilities in the P are sorted in a descending manner, two networks with the maximum short-circuit probability in the P are selected as a group of short-circuit faults, corresponding rows and columns of the two networks in the P are deleted, whether the maximum short-circuit probability in the current P is 0 or not is finally judged, and if not, the two selected networks are added to the H2Then, continuously selecting two networks with the next highest short-circuit probability and judging again; otherwise, ending the circulation; thereby obtaining H2Comprises the following steps:
H2={Ni1Nj1,Ni2Nj2,…,NixNjx,…,NiqNjq}
wherein q is H2The total number of the short-circuit fault groups in two, x is 1,2, …, q, NixNjxRepresenting the x-th group of networks NixAnd NjxShort-circuit fault occurring therebetween, short-circuit fault NixNjxIs marked as a fault
Figure BDA0002396908250000033
(6) Structural fitness function F
F={F0,F1,F2,F3}=F0+F1+F2+F3
Wherein,
Figure BDA0002396908250000034
λ is a constant;
Figure BDA0002396908250000035
Figure BDA0002396908250000036
Figure BDA0002396908250000037
Figure BDA0002396908250000041
Figure BDA0002396908250000042
is a fault set H1Medium network NiAnd NjThe fault symptom when the short circuit occurs, if the circuit occurs the line and the short circuit,
Figure BDA0002396908250000043
∩, indicates a bitwise AND operation, if a wired-OR circuit occurs,
Figure BDA0002396908250000044
∪ denotes a bitwise OR operation;
F3=β(Ni1Nj1)+β(Ni2Nj2)+…,β(Ni1,Nj1)、β(Ni2,Nj2) .. is failure set H2The short-circuit probability corresponding to the network in which the fault symptom is confused;
(7) generating a test vector using a genetic algorithm
(7.1) encoding with MTV as Individual
Splitting each line of the MTV and splicing the split lines into a line in order by adopting a binary coding mode to obtain an individual:
T=[STV1,STV2,…,STVn]=[a11,a12,…,a21,a22,…,an1,…,anm]
(7.2) initializing genetic algorithm population
If the size of the population is M, then initializing the genetic algorithm population P ═ T1,T2,…,Tk,…TM](ii) a The cross probability of initializing the genetic algorithm is PcThe mutation probability is Pv(ii) a Setting the maximum iteration number as tmaxInitializing the current iteration time t to be 0; if the average fitness threshold of the individuals is F'end
(7.3) crossover, variation and population merging
Performing cross and variation treatment on the population, wherein the sequence of individual population is firstly disturbed during the cross treatment, and the population has a probability PcPerforming analog binary cross processing, and then performing probability PvPerforming polynomial variation treatment, and marking the population after crossing and variation treatment as Q;
merging the population P and the population Q to obtain a merged population C, wherein C is P ∪ Q, and the number of individuals in the merged population C is 2N;
(7.4) calculating the individual fitness value
Calculating the fitness value of each individual in the combined population C by using the fitness function constructed in the step (6);
(7.5) preferred individuals make up the next generation population
Adopting a championship selection algorithm, disordering the sequence of individuals in the combined population C, comparing fitness values F pairwise, retaining individuals with small F values, and eliminating individuals with large F values to obtain a next generation population;
(7.6) calculating the average fitness value F' of individuals in the next generation of population;
Figure BDA0002396908250000045
wherein, FkThe fitness value of the kth individual in the next generation population;
(7.7) judging whether the current iteration time t reaches the maximum iteration time tmaxOr whether the individual average fitness value F 'is less than a set threshold value F'endIf yes, entering the step (7.8), otherwise, adding 1 to the current iteration time t, and returning to the step (7.3);
and (7.8) sequencing the individuals in the next generation population in an ascending order according to the fitness value F, and selecting the individual with the minimum fitness value F as an optimal individual, wherein the optimal individual is the generated boundary scanning interconnection test vector.
The invention aims to realize the following steps:
the invention relates to a method for generating a boundary scan interconnection test vector of a large-scale circuit, which comprises the steps of firstly extracting characteristic information of a circuit to be tested from a related report file of a circuit board, calculating the short-circuit fault probability of an interconnection network in the circuit to be tested, and establishing a limited fault model; then constructing a fault set according to the fault model and determining a fitness function of a genetic algorithm; then randomly generating an initial test vector; and finally, injecting the faults in the fault set into a limited model of the tested circuit, evaluating whether the faults in the fault set can be diagnosed by using a fitness function, and optimizing the current test vector by using a genetic algorithm if the faults in the fault set cannot be diagnosed by using the current test vector until the test vector meets the expectation.
Meanwhile, the method for generating the boundary scan interconnection test vector of the large-scale circuit further has the following beneficial effects:
(1) the test vector is generated by utilizing the genetic algorithm, an approximate optimal solution can be obtained in a short time, the generated test vector has superior compactness index and low symptom misjudgment rate and symptom confusion rate, and the test time and the fault diagnosis capability can be considered;
(2) compared with the test vector generated by the improved counting sequence algorithm, the test vector generated by the method has the same PTV number, but the symptom misjudgment rate and the symptom confusion rate are far lower than those of the test vector generated by the improved counting sequence algorithm;
(3) the two algorithms of the test vector generation algorithm based on fault simulation and the structural test vector generation algorithm are combined, so that the number of concentrated faults is reduced, the fault diagnosis capability is ensured, the PTV number is reduced, and the test time is shortened;
(4) the fault simulation-based test vector generation algorithm does not combine the structural information of the circuit when constructing the fault set, and an unlimited fault model is adopted, namely, any two networks are assumed to be possible to be short-circuited, and only the networks with similar physical positions are possible to be short-circuited actually, so that the constructed fault set has a large number of faults, but many short-circuit faults are impossible to occur; according to the invention, the limited fault model is established by extracting the circuit information, and the limited fault model is applied to the construction of the fault set, so that the constructed fault set is more reasonable, and the finally generated test vector can take the test time and the fault diagnosis capability into consideration.
Drawings
FIG. 1 is a flow chart of a method for generating boundary scan interconnect test vectors for large scale circuits according to the present invention;
FIG. 2 is a fabric fault set H2A flow chart of (1);
FIG. 3 is a schematic diagram of an interconnection network of circuits;
FIG. 4 is a plot of the average fitness value of individuals in a population as a function of the number of iterations.
Detailed Description
The following description of the embodiments of the present invention is provided in order to better understand the present invention for those skilled in the art with reference to the accompanying drawings. It is to be expressly noted that in the following description, a detailed description of known functions and designs will be omitted when it may obscure the subject matter of the present invention.
Examples
FIG. 1 is a flowchart of a method for generating boundary scan interconnection test vectors for large-scale circuits according to the present invention.
In this embodiment, as shown in fig. 1, the method for generating boundary scan interconnection test vectors of a large-scale circuit according to the present invention includes the following steps:
s1, extracting characteristic information of the circuit to be tested
Analyzing a netlist file, a BOM file and a BSDL file of a circuit to be tested, and recording the total number of measurable networks in the circuit to be tested and the distance between any two objects on a circuit board in the circuit to be tested; wherein, the total number of measurable networks is recorded as N, the ith measurable network is recorded as Ni,i=1,2,…,n;
S2, constructing a test vector set MTV
In boundary scan testing, test vector STV loaded onto ith testable networkiI ═ 1,2, …, n; then STV is usediForming a Boolean matrix as a row vector, which is called a test vector set MTV;
Figure BDA0002396908250000061
wherein,
Figure BDA0002396908250000062
anmthe element which represents the nth row and the mth column in the matrix MTV has a Boolean value;
s3, calculating the short-circuit fault probability of the interconnection network in the circuit to be tested
S3.1, a lot of studies show that the probability of short circuit between any two objects (such as solder joints, wires, etc.) on the circuit board is significantly reduced with the distance between the two objects, so we can calculate the failure probability α (P) of short circuit between any two objects (such as solder joints, wires, etc.) on the circuit board by using the following formulam,Pn);
Figure BDA0002396908250000071
Wherein, PmAnd PnRepresenting two objects on a circuit board α0The probability of short-circuit fault between two nearest objects is usually much less than 1; a represents a decay function of the probability of a short-circuit fault with respect to the distance between two objects; l is0Is the minimum distance between two objects, depending on the manufacturing process of the circuit board; l is the distance between two objects, typically L0Integer multiples of; l isMThe maximum physical distance when a short-circuit fault occurs between two objects;
s3.2, the network on the circuit board is usually composed of a plurality of interconnected objects, the probability of short circuit between different networks is different, and the two interconnected networks N can be calculated by the following formulaiAnd NjProbability of short-circuit failure β (N)i,Nj);
Figure BDA0002396908250000072
S4, establishing a limited fault model P
Calculating the short-circuit possibility among the networks by using the formula in the step S3 to obtain a short-circuit probability matrix P among the networks, namely the established limited fault model;
Figure BDA0002396908250000073
the matrix P being a symmetric matrix, the network Ni、NjProbability of short circuit β (N)i,Nj) And network Nj、NiProbability of short circuit β (N)j,Ni) Are the same. The elements on the diagonal of the matrix are all 1, indicating that the network itself is shorted to itself. If the calculated probability of the short circuit between two networks is 0, the element of the corresponding position in the matrix is 0, and the short circuit between the two networks in the fault model with the limitation does not occur. A large part of the inter-network short probability matrix of an actual circuit board has 0 elements because only the networks with close physical positions can be short-circuited. Thus electricityThe fault model of the way is greatly simplified.
S5, constructing fault set
S5.1, constructing a fault set H1
H1={NiNj|β(Ni,Nj)≠0,β(Ni,Nj)∈P},
Wherein N isiNjRepresentation network NiAnd NjShort-circuit fault occurring therebetween, short-circuit fault NiNjIs marked as a fault
Figure BDA0002396908250000081
Set H1And the network pairwise short-circuit faults corresponding to all non-zero probabilities in the network short-circuit probability matrix P are contained.
S5.2, constructing a fault set H2
As shown in fig. 2, the failure probabilities in P are sorted in a descending order, two networks with the maximum short-circuit probability in P are selected as a group of short-circuit failures, the rows and columns corresponding to the two networks in P are deleted, and finally whether the maximum short-circuit probability in P is 0 or not is judged, if not, the two selected networks are added to H2Then, continuously selecting two networks with the next highest short-circuit probability and judging again; otherwise, ending the circulation; thereby obtaining H2Comprises the following steps:
H2={Ni1Nj1,Ni2Nj2,…,NixNjx,…,NiqNjq}
wherein q is H2The total number of the short-circuit fault groups in two, x is 1,2, …, q, NixNjxRepresenting the x-th group of networks NixAnd NjxShort-circuit fault occurring therebetween, short-circuit fault NixNjxIs marked as a fault
Figure BDA0002396908250000082
S6 construction fitness function F
The fitness function directly influences the quality of a test vector set finally obtained by the algorithm. In the embodiment, MTV is used as an individual in a genetic algorithm, and the fitness value of the individual is evaluated from the fault detection rate of a test vector, the symptom misjudgment which may occur to the test vector when a preset fault set is injected, and the symptom confusion condition, wherein the lower the fitness value is, the stronger the fault diagnosis capability of the individual is, and the more possible the individual is to be selected to enter the next generation of population during iteration.
The fitness function is designed as follows:
F={F0,F1,F2,F3}=F0+F1+F2+F3
wherein,
Figure BDA0002396908250000083
lambda is a constant and takes a value between 0 and 1. According to the limited topology fault detection theorem: a sufficient requirement to be able to detect any constrained topology failure is that all STVs will not be all "0" or all "1" and that the STVs of neighboring networks are not identical. A larger value for F0 indicates that the greater the number of STVs in the test vector set in which all 0 s or all 1 s occur, the more likely the individual is to be eliminated.
Figure BDA0002396908250000084
A larger value of F1 represents more STVs among neighboring networks. If both the F0 and F1 values are 0, such individuals satisfy the conditions in the limited topology fault detection process, and the fault detection rate is 100%.
Figure BDA0002396908250000091
Figure BDA0002396908250000092
Figure BDA0002396908250000093
Figure BDA0002396908250000094
Is a fault set H1Medium network NiAnd NjThe fault symptom when the short circuit occurs, if the circuit occurs the line and the short circuit,
Figure BDA0002396908250000095
∩, indicates a bitwise AND operation, if a wired-OR circuit occurs,
Figure BDA0002396908250000096
∪ represents bitwise OR operation, the larger the value of F2, the more the case of sign misjudgment between adjacent networks, if F2 of a certain individual is 0, any two networks N which may be short-circuitedi、NjIs short-circuit fault sign
Figure BDA0002396908250000097
No misjudgment occurs with the SRV of any network adjacent to the two networks.
F3=β(Ni1Nj1)+β(Ni2Nj2)+…,β(Ni1,Nj1)、β(Ni2,Nj2) … set of faults H2The short circuit probability corresponding to the network in which all fault symptoms are subjected to symptom confusion; a larger value for F3 represents H for the fault set2The larger the number of sign confusion among the sign faults corresponding to the test vectors. If the individual's F3 value is 0, then H is the set of failures2The failure mode of (1), any symptom of failure of the individual
Figure BDA0002396908250000098
No sign confusion occurs between them.
S7, generating test vector by using genetic algorithm
S7.1 encoding with MTV as individual
Because the elements of the MTV are Boolean quantities, the invention adopts a binary coding mode, takes the MTV as an individual and takes the elements of the MTV as individual genes. Randomly generating n rows and m columns of Boolean matrixes as an initial test vector set MTV, splitting each row of MTV and then sequentially splicing the split rows into a row to obtain an individual example T:
T=[STV1,STV2,…,STVn]=[a11,a12,…,a21,a22,…,an1,…,anm]
s7.2, initializing genetic algorithm population
If the size of the population is M, then initializing the genetic algorithm population P ═ T1,T2,…,Tk,…TM](ii) a Setting crossover probability of genetic algorithm as PcThe mutation probability is Pv(ii) a Setting the maximum iteration number as tmaxInitializing the current iteration time t to be 0; if the average fitness threshold of the individuals is F'end
S7.3 crossover, variation and population merging
Performing cross and variation treatment on the population, wherein the sequence of individual population is firstly disturbed during the cross treatment, and the population has a probability PcPerforming analog binary cross processing, and then performing probability PmPerforming polynomial variation treatment, and marking the population after crossing and variation treatment as Q;
merging the population P and the population Q to obtain a merged population C, wherein C is P ∪ Q, and the number of individuals in the merged population C is 2M;
s7.4, calculating individual fitness value
Calculating the fitness value of each individual in the combined population C by using the fitness function constructed in the step S6; in this embodiment, the fitness value F represents the fault diagnosis capability of the individual, and the smaller the fitness value F is, the stronger the fault diagnosis capability of the individual is.
S7.5, preferred individuals make up the next generation population
Adopting a championship selection algorithm, disordering the sequence of individuals in the combined population C, comparing the fitness values F pairwise, retaining the individuals with small F values in the two individuals, and eliminating the other individual to obtain a next generation population;
s7.6, calculating the average fitness value F' of individuals in the next generation of population;
Figure BDA0002396908250000101
wherein, FkThe fitness value of the kth individual in the next generation population;
s7.7, judgment whenWhether the number of previous iterations t reaches the maximum number of iterations tmaxOr whether the individual average fitness value F 'is less than a set threshold value F'endIf yes, step S7.8 is carried out, otherwise, the current iteration time t is added with 1, and then step S7.3 is carried out again;
s7.8, sequencing the individuals in the next generation population in an ascending order according to the fitness value F, and selecting the individual with the minimum fitness value F as an optimal individual, wherein the optimal individual is the generated boundary scanning interconnection test vector.
Examples of the invention
In order to better explain the technical scheme of the invention, the invention is explained in detail by using a specific example. Fig. 3 is a schematic diagram of an interconnection network of the circuits in this example. Firstly, extracting information of a circuit related file, then, establishing a limited fault model by calculating the short-circuit fault probability of the interconnection network, wherein if the total number n of the interconnection network is 9, m is 4, and a network short-circuit relation table is shown in table 1.
Figure BDA0002396908250000102
Figure BDA0002396908250000111
TABLE 1
Set of structural faults H1: all possible pairwise short-circuit faults form a fault set 1, in this example H1={N1N2,N1N3,N1N4,N2N3,N2N4,N2N5,N2N6,N3N8,N4N8,N5N6,N5N9,N6N7,N6N8,N7N8,N77N9,N8N9In which N is1N2Representation network N1And N2A short circuit occurs therebetween. Set of faults H1The fault in (2) is injected into MTV in turn and then measured by a fitness functionF2 values were calculated for individuals.
Building a failure set H2: obtaining H according to the flow chart shown in FIG. 22In this example, H2={N1N3,N8N9,N6N7,N2N5H is assumed2The fault in (2) is simultaneously generated, and is injected into the MTV as a fault mode which is most likely to occur, whether symptom confusion occurs among fault symptoms corresponding to the STVs is judged, and the F3 value of each individual is calculated through a fitness function.
Setting the population size to be 50, randomly generating 50 MTVs with 9 rows and 4 columns by taking the MTVs as individuals, and initializing a genetic algorithm population. The test vector set portion represented by an individual is exemplified as follows:
Figure BDA0002396908250000112
in actual calculation, each row of the matrix in the example is split and then spliced into a row in sequence to serve as an individual, so that operations such as crossing, mutation and the like are performed.
In this example, when the average fitness value F' <0.001 of the individuals in the population is set or the maximum iteration number is 100 generations, the iteration is ended, and after the iteration is performed by the genetic algorithm defined by the present invention, the obtained test vector set MTV approximates to the optimal solution as follows:
Figure BDA0002396908250000121
the fitness value F of the MTV is 0, and the network NiCorresponding test vector is STViI is 1,2, …, 9. Wherein, STV1=STV5Network N, according to the constrained topology fault detection theorem, {0,0, 1}, is based on the constrained topology fault detection theorem1And N5Has a short-circuit probability of 0, and thus STV1And STV5May be the same. The MTV can detect any limited topology fault, and the fault detection rate is 100%. Network N3And N4Fault indication of short circuit
Figure BDA0002396908250000122
And network N9STV of9Similarly, under the unrestricted short-circuit fault model, the network N cannot be judged9Whether a short circuit also occurs, but under a limited fault model, N9And N3、N4The short-circuit probability of (2) is 0, so there is no symptom misjudgment.
The fitness value F of the MTV is 0, and under the limited fault model, the MTV does not have symptom misjudgment and confusion for the faults in the fault set 1 and the fault set 2. Individuals of the genetic algorithm use the improved count sequence algorithm for initialization, a compactness index
Figure BDA0002396908250000123
However, the MTV obtained by the improved counting sequence algorithm has serious symptom misjudgment and symptom confusion, and the fault diagnosis capability of the MTV finally obtained by the algorithm defined by the invention is far better than that of the MTV obtained by the improved counting sequence algorithm.
The average fitness value F' of the individuals in the population in the example as a function of the number of iterations t is shown in fig. 4. In the figure, the initial population F ' is 0.953, then F ' decreases rapidly with iteration, converging after about 20-30 iterations, and the final F ' value fluctuates in a small range towards 0.
The algorithm defined in the invention has fast convergence, the obtained test vector set has good compactness index and strong fault diagnosis capability, the technical advantages of the algorithm are obvious in boundary scan interconnection test of large-scale circuits, and the test time and the fault diagnosis capability can be taken into consideration.
Although illustrative embodiments of the present invention have been described above to facilitate the understanding of the present invention by those skilled in the art, it should be understood that the present invention is not limited to the scope of the embodiments, and various changes may be made apparent to those skilled in the art as long as they are within the spirit and scope of the present invention as defined and defined by the appended claims, and all matters of the invention which utilize the inventive concepts are protected.

Claims (1)

1. A method for generating boundary scan interconnection test vectors of large-scale circuits is characterized by comprising the following steps:
(1) extracting characteristic information of the circuit to be tested
Analyzing a netlist file, a BOM file and a BSDL file of a circuit to be tested, and recording the total number of measurable networks in the circuit to be tested and the distance between any two objects on a circuit board in the circuit to be tested; wherein, the total number of measurable networks is recorded as N, the ith measurable network is recorded as Ni,i=1,2,…,n;
(2) Constructing a test vector set MTV
In boundary scan testing, test vector STV loaded onto ith testable networkiI ═ 1,2, …, n; then STV is usediForming a Boolean matrix as a row vector, which is called a test vector set MTV;
Figure FDA0002396908240000011
wherein,
Figure FDA0002396908240000012
anmthe element which represents the nth row and the mth column in the matrix MTV has a Boolean value;
(3) calculating the short-circuit fault probability of the interconnection network in the circuit to be tested
(3.1) calculating fault probability α (P) of any two objects on the circuit board short circuitm,Pn);
Figure FDA0002396908240000013
Wherein, PmAnd PnRepresenting two objects on a circuit board, α0A represents a decay function of the probability of a short-circuit fault with respect to the distance between two objects, L0Is the minimum distance between two objects, L is the distance between two objects, LMAs two objectsThe maximum physical distance between the two when short-circuit fault occurs;
(3.2) two networks N interconnected by computational calculationiAnd NjProbability of short-circuit failure β (N)i,Nj);
Figure FDA0002396908240000014
(4) Establishing a limited fault model P
Figure FDA0002396908240000021
(5) Structural failure set
(5.1) constructing a fault set H1
H1={NiNj|β(Ni,Nj)≠0,β(Ni,Nj)∈P},
Wherein N isiNjRepresentation network NiAnd NjShort-circuit fault occurring therebetween, short-circuit fault NiNjIs marked as a fault
Figure FDA0002396908240000022
(5.2) constructing a fault set H2
The fault probabilities in the P are sorted in a descending manner, two networks with the maximum short-circuit probability in the P are selected as a group of short-circuit faults, corresponding rows and columns of the two networks in the P are deleted, whether the maximum short-circuit probability in the current P is 0 or not is finally judged, and if not, the two selected networks are added to the H2Then, continuously selecting two networks with the next highest short-circuit probability and judging again; otherwise, ending the circulation; thereby obtaining H2Comprises the following steps:
H2={Ni1Nj1,Ni2Nj2,…,NixNjx,…,NiqNjq}
wherein q is H2Middle two short circuitTotal number of fault groups, x is 1,2, …, q, NixNjxRepresenting the x-th group of networks NixAnd NjxShort-circuit fault occurring therebetween, short-circuit fault NixNjxIs marked as a fault
Figure FDA0002396908240000023
(6) Structural fitness function F
F={F0,F1,F2,F3}=F0+F1+F2+F3
Wherein,
Figure FDA0002396908240000024
Figure FDA0002396908240000025
Figure FDA0002396908240000026
Figure FDA0002396908240000027
Figure FDA0002396908240000031
Figure FDA0002396908240000032
is a fault set H1Medium network NiAnd NjThe fault symptom when the short circuit occurs, if the circuit occurs the line and the short circuit,
Figure FDA0002396908240000033
∩, indicates a bitwise AND operation, if a wired-OR circuit occurs,
Figure FDA0002396908240000034
∪ denotes a bitwise OR operation;
F3=β(Ni1Nj1)+β(Ni2Nj2)+…,β(Ni1,Nj1)、β(Ni2,Nj2) .. is failure set H2The short-circuit probability corresponding to the network in which the fault symptom is confused;
(7) generating a test vector using a genetic algorithm
(7.1) encoding with MTV as Individual
Splitting each line of the MTV and splicing the split lines into a line in order by adopting a binary coding mode to obtain an individual:
T=[STV1,STV2,…,STVn]=[a11,a12,…,a21,a22,…,an1,…,anm]
(7.2) initializing genetic algorithm population
If the size of the population is M, then initializing the genetic algorithm population P ═ T1,T2,…,Tk,…TM](ii) a Setting crossover probability of genetic algorithm as PcThe mutation probability is Pv(ii) a Setting the maximum iteration number as tmaxInitializing the current iteration time t to be 0; if the average fitness threshold of the individuals is F'end
(7.3) crossover, variation and population merging
Performing cross and variation treatment on the population, wherein the sequence of individual population is firstly disturbed during the cross treatment, and the population has a probability PcPerforming analog binary cross processing, and then performing probability PvPerforming polynomial variation treatment, and marking the population after crossing and variation treatment as Q;
merging the population P and the population Q to obtain a merged population C, wherein C is P ∪ Q, and the number of individuals in the merged population C is 2N;
(7.4) calculating the individual fitness value
Calculating the fitness value of each individual in the combined population C by using the fitness function constructed in the step (6);
(7.5) preferred individuals make up the next generation population
Adopting a championship selection algorithm, disordering the sequence of individuals in the combined population C, comparing fitness values F pairwise, retaining individuals with small F values, and eliminating individuals with large F values to obtain a next generation population;
(7.6) calculating the average fitness value F' of individuals in the next generation of population;
Figure FDA0002396908240000035
wherein, FkThe fitness value of the kth individual in the next generation population;
(7.7) judging whether the current iteration time t reaches the maximum iteration time tmaxOr whether the individual average fitness value F 'is less than a set threshold value F'endIf yes, entering the step (7.8), otherwise, adding 1 to the current iteration time t, and returning to the step (7.3);
and (7.8) sequencing the individuals in the next generation population in an ascending order according to the fitness value F, and selecting the individual with the minimum fitness value F as an optimal individual, wherein the optimal individual is the generated boundary scanning interconnection test vector.
CN202010134651.5A 2020-03-02 2020-03-02 Method for generating boundary scan interconnection test vector of large-scale circuit Active CN111289876B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010134651.5A CN111289876B (en) 2020-03-02 2020-03-02 Method for generating boundary scan interconnection test vector of large-scale circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010134651.5A CN111289876B (en) 2020-03-02 2020-03-02 Method for generating boundary scan interconnection test vector of large-scale circuit

Publications (2)

Publication Number Publication Date
CN111289876A true CN111289876A (en) 2020-06-16
CN111289876B CN111289876B (en) 2021-03-30

Family

ID=71030163

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010134651.5A Active CN111289876B (en) 2020-03-02 2020-03-02 Method for generating boundary scan interconnection test vector of large-scale circuit

Country Status (1)

Country Link
CN (1) CN111289876B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6055659A (en) * 1999-02-26 2000-04-25 Texas Instruments Incorporated Boundary scan with latching output buffer and weak input buffer
CN102279357A (en) * 2011-06-23 2011-12-14 哈尔滨工业大学 Decomposed circuit interconnection testing method based on boundary scanning technology
JP2014202634A (en) * 2013-04-05 2014-10-27 国立大学法人徳島大学 Electric inspection method for bidirectional signal line of electric circuit
CN105486999A (en) * 2015-11-27 2016-04-13 中国电子科技集团公司第三十八研究所 Boundary scanning digital circuit test system based on PXI bus and test method thereof
CN207965054U (en) * 2018-01-18 2018-10-12 绍兴快晴贸易有限公司 A kind of boundary scan testing device for integrated circuit testing
CN109445413A (en) * 2018-10-26 2019-03-08 电子科技大学 A kind of test vector automatic generation method of large-scale circuit interference networks

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6055659A (en) * 1999-02-26 2000-04-25 Texas Instruments Incorporated Boundary scan with latching output buffer and weak input buffer
CN102279357A (en) * 2011-06-23 2011-12-14 哈尔滨工业大学 Decomposed circuit interconnection testing method based on boundary scanning technology
JP2014202634A (en) * 2013-04-05 2014-10-27 国立大学法人徳島大学 Electric inspection method for bidirectional signal line of electric circuit
CN105486999A (en) * 2015-11-27 2016-04-13 中国电子科技集团公司第三十八研究所 Boundary scanning digital circuit test system based on PXI bus and test method thereof
CN207965054U (en) * 2018-01-18 2018-10-12 绍兴快晴贸易有限公司 A kind of boundary scan testing device for integrated circuit testing
CN109445413A (en) * 2018-10-26 2019-03-08 电子科技大学 A kind of test vector automatic generation method of large-scale circuit interference networks

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
SHANG YULING等: "Study on boundary scan interconnect test of PCB based on genetic algorithm", 《IEEE》 *
陆鹏等: "基于边界扫描技术的集成电路测试系统设计与实现", 《电子质量》 *

Also Published As

Publication number Publication date
CN111289876B (en) 2021-03-30

Similar Documents

Publication Publication Date Title
CN110851491A (en) Network link prediction method based on multiple semantic influences of multiple neighbor nodes
CN111028939A (en) Multigroup intelligent diagnosis system based on deep learning
CN111294237B (en) 2-stage network fault diagnosis method based on PMC model
CN112217668B (en) Self-adaptive network fault diagnosis method based on comparison model
CN107168842A (en) Adaptive sequential fault diagnosis method based on pmc model
Chen et al. A method for local community detection by finding maximal-degree nodes
Nero et al. Concept recognition in production yield data analytics
CN111079348B (en) Method and device for detecting slowly-varying signal
CN116994044A (en) Construction method of image anomaly detection model based on mask multi-mode generation countermeasure network
CN117075582A (en) Industrial process generalized zero sample fault diagnosis method based on DSECMR-VAE
CN114170478A (en) Defect detection and positioning method and system based on cross-image local feature alignment
CN116743555A (en) Robust multi-mode network operation and maintenance fault detection method, system and product
CN111289876B (en) Method for generating boundary scan interconnection test vector of large-scale circuit
CN116106726B (en) High-efficiency integrated circuit test generation method based on optimized preprocessing technology
CN112785479A (en) Image invisible watermark universal detection method based on less-sample learning
CN117408947A (en) Deep learning-based multi-label bridge surface defect detection method and system
CN109445413B (en) Automatic test vector generation method for large-scale circuit interconnection network
CN114387524B (en) Image identification method and system for small sample learning based on multilevel second-order representation
CN115392434A (en) Depth model reinforcement method based on graph structure variation test
KR102241708B1 (en) Apparatus for diagnosing partial discharge
CN113516641A (en) End-to-end brain image data processing method and device based on deep learning
CN115656771A (en) Boundary scan test matrix generation method based on heuristic search
CN116203929B (en) Industrial process fault diagnosis method for long tail distribution data
CN111160454B (en) Quick change signal detection method and device
Zhu et al. Enhancing industrial anomaly detection using edge image reconstruction with neighbor masked convolutional transformer block

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
GR01 Patent grant