Summary of the invention
In order to solve the above-mentioned technical problem, present invention aims at detection of concealed in " transmission probability is compared with small path " i.e. difficult surveyHardware Trojan horse in circuit.
Specifically, the invention discloses a kind of based on the difficult integrated circuit detection method for surveying Path selection, including:
Step 1 obtains to-be-measured integrated circuit, according to the logic and the order of connection of logic gate in the to-be-measured integrated circuit, reallyThe output probability of each logic gate output particular logic value in the fixed to-be-measured integrated circuit;
Step 2, according to the output probability, obtain to-be-measured integrated circuit each propagation path logical value jump propagateProbability, and propagation path corresponding lower than the logical value of preset value jump probability of spreading is found as path to be selected;
Step 3 generates test vector, and judges whether the test vector can jump a logical value from the path to be selectedInput terminal transmitted to output end, if so, using the path to be selected as difficult survey path, for detecting hardware Trojan horse, otherwise, thenDelete the path to be selected.
This is based on the difficult integrated circuit detection method for surveying Path selection, and wherein the particular logic value is 0 or 1.
This surveys integrated circuit detection method of Path selection based on hardly possible, wherein the step 1 further include:
Step 11, the input terminal that random vector is input to the to-be-measured integrated circuit, and to the defeated of the to-be-measured integrated circuitOutlet carries out logic calculation, to obtain the logical value of each line in the to-be-measured integrated circuit;
Step 12, according to the following formula, calculates the dynamic that each line in the to-be-measured integrated circuit exports the particular logic valueProbability;
Wherein, PdIt (i) is the dynamic probability of i-th line, n is the sum of the random vector, n1(i) refer to n at random toUnder amount input, the logical value of line i is the vector number of the particular logic value;
Step 13 sets the particular logic value and is input to the static probability of the to-be-measured integrated circuit input terminal as 0.5, with to thisThe output end of to-be-measured integrated circuit carries out logic probability calculating, and obtaining each line in the to-be-measured integrated circuit, to export this specificThe static probability of logical value,
Step 14 calibrates the static probability according to the dynamic probability and calibration function, obtains the integrated electricity to be measuredEach line exports the calibration probability of the particular logic value in road, and using the calibration probability as the output probability.
This wherein finds the process in the path to be selected based on the difficult integrated circuit detection method for surveying Path selection in step 2It specifically includes: using the output logic gate of the to-be-measured integrated circuit as starting point, to input terminal direction finding, the logical value being selected to jumpThe smallest input link of probability of spreading is as jumping edge transmission end, and the logic gate to export the input link is as new starting pointContinue to input terminal direction finding, the input terminal until reaching the to-be-measured integrated circuit, a path to be selected, which is found, to terminate.
This is based on the difficult integrated circuit detection method for surveying Path selection, and wherein the calibration function includes: arithmetic in step 14Average function, geometric mean function, harmonic average function.
The invention also discloses a kind of based on the difficult integrated circuit detection system for surveying Path selection, including:
Output probability computing module is patrolled for obtaining to-be-measured integrated circuit according to logic gate in the to-be-measured integrated circuitVolume and the order of connection, determine the output probability of the output particular logic value of each logic gate in the to-be-measured integrated circuit;
Module is found in path, for obtaining patrolling for to-be-measured integrated circuit each propagation path according to the output probabilityValue jump probability of spreading is collected, and finds and jumps the corresponding propagation path of probability of spreading as to be selected lower than the logical value of preset valuePath;
Trojan horse detection module for generating test vector, and judges whether the test vector can jump a logical valueIt is transmitted from the input terminal in the path to be selected to output end, if so, path is surveyed using the path to be selected as hardly possible, for detecting hardwareOtherwise wooden horse then deletes the path to be selected.
This is based on the difficult integrated circuit detection system for surveying Path selection, and wherein the particular logic value is 0 or 1.
This surveys integrated circuit detection system of Path selection based on hardly possible, wherein the output probability computing module further include:
Random vector is input to the input terminal of the to-be-measured integrated circuit, and is carried out to the output end of the to-be-measured integrated circuitLogic calculation, to obtain the logical value of each line in the to-be-measured integrated circuit;
According to the following formula, the dynamic probability that each line in the to-be-measured integrated circuit exports the particular logic value is calculated;
Wherein, PdIt (i) is the dynamic probability of i-th line, n is the sum of the random vector, n1(i) refer to n at random toUnder amount input, the logical value of line i is the vector number of the particular logic value;
If the static probability that the particular logic value is input to the to-be-measured integrated circuit input terminal is 0.5, with to the collection to be measuredLogic probability calculating is carried out at the output end of circuit, each line in the to-be-measured integrated circuit is obtained and exports the particular logic valueStatic probability,
The static probability is calibrated according to the dynamic probability and calibration function, is obtained each in the to-be-measured integrated circuitLine exports the calibration probability of the particular logic value, and using the calibration probability as the output probability.
This is based on the difficult integrated circuit detection system for surveying Path selection, and wherein path is found in module and finds the path to be selectedProcess specifically include: using the output logic gate of the to-be-measured integrated circuit as starting point, to input terminal direction finding, select the logicThe value the smallest input link of jump probability of spreading is as jump edge transmission end, and the logic gate to export the input link is as newlyStarting point continue to input terminal direction finding, knot is found in the input terminal until reaching the to-be-measured integrated circuit a, path to be selectedBeam.
This based on difficult integrated circuit detection system for surveying Path selection, wherein the calibration function include: arithmetic mean function,Geometric mean function, harmonic average function.
As a result, the present invention by determine in circuit it is difficult survey path, can check whether to have in circuit and be present in " transmission probabilityCompared with small path " in hardware Trojan horse.
Specific embodiment
Inventor deeply divide when studying the hardware Trojan horse based on path delay, to the principle of the wooden horseAnalysis, it was found that this hardware Trojan horse is caused to be difficult to two detected key factors:
(1) increase path delay and cause input jump after circuit output malfunction hardware Trojan horse so that hardware Trojan horse canThe potential activation condition of energy is more vast, it is more difficult to be detected in actual operation or in random vector test.
(2) hardware Trojan horse based on path delay can increase certain small time delay for logic gate each on path, these are smallTime delay, which only accumulates just, will lead to final output error, if only having selected a part of logic gate, then the hour accumulatedProlong and not will cause circuit output mistake, this equally also increases the difficulty of detection.
Inventor proposes and the completely new circuit of the two factors is overcome to detect by the further investigation to above-mentioned two reasonMethod.Firstly, proposing the method that a kind of sound state collaboration calibration logic door output line be 1 (or being 0) probability, realization is higherProbability calculation precision.Secondly, covering more majority gate by searching out the lesser path of a plurality of jump edge transmission probability, improveDetect the probability for giving the hardware Trojan horse in path delay.It should be noted that finding the lesser path of transmission probability and coveringMore majority gate is two targets, that is to say, that by finding the lesser path of transmission probability and covering more logics as far as possibleDoor, to improve the probability of detection hardware Trojan horse.The present invention is directed this kind of hardware Trojan horse based on transmission probability compared with small path.Which paths actual hardware wooden horse is not aware that when actual test is, so finding the lesser path of transmission probabilityThe probability for detecting actual hardware wooden horse will be improved with covering more majority gate.
The invention discloses a kind of based on the difficult integrated circuit detection method for surveying Path selection, including:
Step 1 obtains to-be-measured integrated circuit, according to the logic and the order of connection of logic gate in the to-be-measured integrated circuit, reallyThe output probability of each logic gate output particular logic value in the fixed to-be-measured integrated circuit;
Step 2, according to the output probability, obtain to-be-measured integrated circuit each propagation path logical value jump propagateProbability, and propagation path corresponding lower than the logical value of preset value jump probability of spreading is found as path to be selected;
Step 3 generates test vector, and judges whether the test vector can jump a logical value from the path to be selectedInput terminal transmitted to output end, if so, using the path to be selected as difficult survey path, for detecting hardware Trojan horse, otherwise, thenDelete the path to be selected.
This is based on the difficult integrated circuit detection method for surveying Path selection, and wherein the particular logic value is 0 or 1.
This surveys integrated circuit detection method of Path selection based on hardly possible, wherein the step 1 further include:
Step 11, the input terminal that random vector is input to the to-be-measured integrated circuit, and to the defeated of the to-be-measured integrated circuitOutlet carries out logic calculation, to obtain the logical value of each line in the to-be-measured integrated circuit;
Step 12, according to the following formula, calculates the dynamic that each line in the to-be-measured integrated circuit exports the particular logic valueProbability;
Wherein, PdIt (i) is the dynamic probability of i-th line, n is the sum of the random vector, n1(i) refer to n at random toUnder amount input, the logical value of line i is the vector number of the particular logic value;
Step 13 sets the particular logic value and is input to the static probability of the to-be-measured integrated circuit input terminal as 0.5, with to thisThe output end of to-be-measured integrated circuit carries out logic probability calculating, and obtaining each line in the to-be-measured integrated circuit, to export this specificThe static probability of logical value,
Step 14 calibrates the static probability according to the dynamic probability and calibration function, obtains the integrated electricity to be measuredEach line exports the calibration probability of the particular logic value in road, and using the calibration probability as the output probability.
This wherein finds the process in the path to be selected based on the difficult integrated circuit detection method for surveying Path selection in step 2It specifically includes: using the output logic gate of the to-be-measured integrated circuit as starting point, to input terminal direction finding, the logical value being selected to jumpThe smallest input link of probability of spreading is as jumping edge transmission end, and the logic gate to export the input link is as new starting pointContinue to input terminal direction finding, the input terminal until reaching the to-be-measured integrated circuit, a path to be selected, which is found, to terminate.
To allow features described above and effect of the invention that can illustrate more clearly understandable, special embodiment below, and cooperateBright book attached drawing is described in detail below.
The present invention is directed to the hardware Trojan horse that may be present based on path delay as a result, proposes a kind of detection method, walksIt is rapid as follows:
A, for to-be-measured integrated circuit, the analysis method for using sound state to cooperate with calculate its all lines output logical value for1 or 0 probability, is introduced for 1 below, in which:
Dynamic analysing method described in A11, step A, refers to using random vector, simulates to circuit under test, to obtainThe dynamic probability P that all wired logic values are 1d, an input vector, is exactly made of 0,1 bit in integrated circuits, such asIn Fig. 2, circuit has 8 inputs, and endways to see, first row 00011001 is exactly an input vector, secondary series 11000000It is an input vector, in which:
Each random vector described in A111, step A11 all refers to the input data comprising equiprobability 0,1 logical value, at random toThe number of amount is determined by tester, such as in Fig. 2, circuit has 8 inputs, so the number of bits of each input vector is8,5 input vectors (endways to have seen 5 column) is illustrated altogether in Fig. 2, the number of input vector is 5.Number is bigger, and gained is generalRate is more accurate, but the time is longer, on the contrary, number is smaller, the time is shorter, but gained probability precision has loss;
Simulation described in A112, step A11 refers to for random vector described in circuit under test input step A111, then from circuitInput terminal to output end carry out logic calculation, to the logic gate of each known input logic value calculate its export line logicValue, until all lines of circuit under test calculate logical value;
The probability that wired logic value described in A113, step A11 is 1 are as follows:
Wherein, Pd(i) passing through the dynamic probability that simulation obtains for i-th line, n is the sum of random vector described in A11,n1(i) refer in the case where n random vector inputs, the vector number that the logical value of line i is 1.
Static Analysis Method described in A12, step A refers to and sets circuit under test input logic value as the static general of 1 (or being 0)Rate Ps is 0.5, carries out logic probability calculating from input terminal to output end, and a logic gate is somebody's turn to do according to its logic knownIn the case of the static probability of all inputs of logic gate, the static probability of logic gate output line is calculated, until circuit under testAll lines calculate static probability.Wherein, Ps(i) static probability of line is exported for i-th of logic gate.
Sound state Cooperative Analysis method described in A13, step A, refers to the result P using dynamic analysing methoddStatic point of calibrationThe result P of analysis methods, the calibration probability P (i) that wired logic value is 1 after calibrating is finally obtained, step includes:
A131, the calibration probability of all inputs of circuit under test is set as 0.5;
A132, one logic gate is patrolled according to it from the input terminal of circuit to output end progress logic probability calculatingVolume, under its known input calibration probability scenarios, calculates it and export static probability;
If A133, Pd(i) it is equal to Ps(i), then P (i)=Pd(i)=Ps(i), otherwise P (i)=Func { Pd(i),Ps(i) },The Func function is a kind of calibration function, is defined according to the actual situation by tester, and 3 kinds of calibration functions are listed below, butIt is not limited to this 3 kinds of calibration functions:
A1331, arithmetic mean function, when | Pd(i)-Ps(i)|<Δ1, thenOtherwise, P (i)=Pd(i);
A1332, geometric mean function, when | Pd(i)-Ps(i)|<Δ2, thenOtherwise, P(i)=Ps(i);
A1333, harmonic average function, when | Pd(i)-Ps(i)|<Δ3, thenOtherwise,.Wherein,Δ1、Δ2、Δ3It can be determined by tester according to actual circuit.
If all lines of A134, circuit under test have all calculated calibration probability, calculating terminates, and otherwise returns to A12 and continuesIt calculates.
B, the logical value jump lesser path of probability of spreading is found from circuit under test according to calibration probability, " logical value is jumpedBecome the lesser path of probability of spreading " it is the probability very little for inputting jump a to path, the output in the path and also jumping.Such as one the inputs of paths be originally 0, this 0 is become 1 now, just produces a jump from 0 to 1, then thisThe output in path is originally 1, because this paths probability of spreading is smaller, after input jumps, output is likely to still1, there is no variations.Its step includes:
B1, be at least selected, the calibration the smallest output line L of probability is selected from circuit under testj, LjIt is logic gateGjOutput line;
B2, with GjFor starting point, to GjInput direction select a logic gate, if logic gate GjInput link be respectivelyLj1, Lj2, Lj3…..Ljn, P (j1), P (j2), P (j3) ... ..P (jn) is L respectivelyj1, Lj2, Lj3…..LjnCalibration probability, rootAccording to the logic of logic gate, calculates all input links propagation logical values of the logic gate and jumps to the probability of logic gate output line,Point 3 kinds of situations are found forward, for logic gate GjFor, if logic gate GjThe z articles input link Ljz(1 < z≤n) propagation is patrolledThe probability for collecting value jump to logic gate output line is PPz(j):
If B21, logic gate GjThe z articles input link Ljz(1 < z≤n) was not chosen, and PPz(j)=Min { PP1(j),PP2(j)…..PPn(j) }, then we select the z articles input link to jump edge transmission line as logical value, and to export the lineLogic gate be new starting point, continue to input direction select logic gate, until searching out the input terminal of circuit under test, onePaths searching terminates;
If B22, logic gate GjThere are several input links to be chosen, then from logic gate GjAll companies not being chosenThe smallest line L of a PPp (j) is selected in linejpPth input link is jumped edge transmission line by (1 < p≤n),And to export the logic gate of the line as new starting point, continue to select logic gate to input direction, until searching out circuit under testInput terminal until, a paths searching terminate;
If B23, logic gate GjAll input links be chosen, then from logic gate GjAll lines in select oneIt is selected the least input link of number to jump edge transmission line as logical value, and is new rise to export the logic gate of the linePoint continues to select logic gate to input direction, and until searching out the input terminal of circuit under test, paths searching terminates.
B3, paths searching terminate, and judge that the number of path found whether more than m, terminates if being more than, otherwise returnsStep B is continually looked for, and m is customized by tester.
It C, is the coordinates measurement validity test vector searched out, validity test vector meets, and can jump a logical valueIt is transmitted from the path input terminal searched out to output end, if validity test vector exists, retains, otherwise, then delete the path.Validity test vector wherein is generated for a paths, this road can be traveled to from the input of this paths for jump by referring to generatingThe vector of diameter output.Such as Fig. 6 is that path a- > d- > e generates validity test vector, is just desirable to work as there are three a, b, c is inputtedA from 0 become 1 when, e also can become 1 (or becoming 0 from 1, that is, jump) from 0.So in this circuit, effectivelyTest vector is exactly abc=010, after a becomes 1 from 0, because b is that 1, d from 0 becomes 1, because c is that 0, e also canBecome 1 from 0.
To allow features described above and effect of the invention that can illustrate more clearly understandable, special embodiment below, and cooperateBright book attached drawing is described in detail below.
Fig. 1 is framework figure of the invention, which includes following four main modular:
Module 1: dynamic analysis module, dynamic analysis module inputs equiprobable 0,1 logical value to circuit under test, by rightThe simulation of each logic gate output line of circuit, calculates separately out it and exports the probability that logical value is 1 (or being 0), is i.e. dynamic is generalRate.The computational accuracy of dynamic analysis depends on the quantity of input logic value, and input logic value is more, and it is more accurate to calculate, from trueIt is worth closer.
Further, for ease of understanding, it is illustrated by taking Fig. 2 as an example below.In Fig. 2,5 input vectors are illustrated.For logic gate G1For, export line L1Analog logic value in have 41,10, then logic gate G1Dynamic probabilityFor logic gate G10For, export line L10Analog logic value in have 21,30, thenLogic gate G10Dynamic probabilityThe dynamic probability of other logic gate output lines can similarly be obtained.IFurther simulate more input vectors, gained dynamic probability is as shown in Figure 3.
Module 2: static analysis module, static analysis refer to that setting circuit under test input logic value as the probability of 1 (or 0) is 0.5,Output line is calculated by the logic behaviour of Different Logic door from input terminal to output end.
Further, for ease of understanding, it is illustrated by taking Fig. 4 static analysis as an example below.If circuit under test input 0,1 is patrolledThe probability for collecting value is 0.5, is calculated from input terminal to output extreme direction.Wherein: logic sum gate G1Two input terminal inputs are patrolledCollecting the probability that value is 1 is 0.5, only works as G1Input at least one be 1 when, output logical value be just 1, therefore its output lineL1Static probability Ps(1)=1-0.5 × 0.5=0.75.Logical AND gate G9The probability that input logic value is 1 is respectively 0.25 He0.75, only work as G9Input when being all 1, output logical value is just 1, therefore its output line L9Static probability Ps(9)=0.25× 0.75=0.1875.Logic XOR gate G10The probability that input logic value is 1 is respectively 0.203125 and 0.1875, only works as G10Input one for 0 one be 1 when, output logical value be just 1, therefore its output line L10Static probability Ps(10)=1-(0.203125 × 0.1875)-(1-0.203125) × (1-0.1875)=0.314453.Other logic gate outputs can similarly be obtainedThe static probability of line.
Module 3: static and dynamic analysis module, static and dynamic analysis combine dynamic analysis and static analysis, by calibrating letterNumber, obtains the calibration probability of circuit under test.It during calibration, to calibrate when calculating, output line only passes through calibrationIt just can be used as the input of next logic gate afterwards.
Further, for ease of understanding, it is illustrated by taking Fig. 5 static and dynamic analysis as an example below.For being patrolled in circuit under testCollect door G1~G8Output line L1~L8, dynamic probability and static probability are equal, therefore calibrate probability P (i)=Pd(i)=Ps(i) (1≤i≤8, for logic gate G9Output line L9, dynamic probability Pd(9)=0, static probability Ps(9)=0.1875,It is calibrated with arithmetic mean function, that is, is worked as | Pd(9)-Ps(9)|<Δ1(Δ1=0.2) when, probability is calibratedAt this point, the output line L after calibration9As logic gateG10Input carry out next step calculating.
Module 4: path testing module, path testing module include two steps of searching and test in path.Wherein: finding in pathRefer to and searches out more lesser paths of hopping edge transmission probability from the circuit under test after calibration;Path testing refers to searching outCoordinates measurement validity test vector.
Further, for ease of understanding, it is illustrated by taking Fig. 5 static and dynamic analysis as an example below.With calibrate after circuit it is defeatedIt is used as starting point, i.e. logic gate G out11For starting point, found to input extreme direction, logic gate G11Input link be respectively L7WithL10, to export line L7For logic gate G11First input link, export line L10For logic gate G11Article 2 input connectLine can obtain PP2(11)=Min { PP1(11), PP2(11) }=0.258790, therefore to export L10Logic gate G10For starting point continuationIt is found to input terminal, logic gate G10Input link be respectively L8And L9, to export line L8For logic gate G10First it is defeatedEnter line, exports line L9For logic gate G10Article 2 input link, PP can be obtained2(10)=Min { PP1(10), PP2(10)}=0.09375, therefore to export L9Logic gate G9Continue to find to input terminal for starting point, logic gate G9Input link be respectivelyL3And L6, to export line L3For logic gate G9First input link, export line L6For logic gate G9Article 2 inputLine can obtain PP1(9)=Min { PP1(9), PP2(9) }=0.25, therefore to export L3Logic gate G3Continue for starting point to inputEnd is found, logic gate G3Input link be circuit input terminal, a paths searching terminate.
Again to export as starting point, i.e. logic gate G11For starting point, found to input extreme direction, logic gate G11It is defeatedEntering line is respectively L7And L10, to export line L7For logic gate G11First input link, export line L10For logic gateG11Article 2 input link, PP can be obtained2(11)=Min { PP1(11), PP2(11) }=0.258790, therefore to export L10PatrolCollect door G10Continue to find to input terminal for starting point, logic gate G10Input link be respectively L8And L9, but in a upper pathsL9Be selected, so when selection output L8Logic gate G8Continue to find to input terminal for starting point, logic gate G8Input linkRespectively L3And L5, to export line L3For logic gate G8First input link, export line L5For logic gate G8SecondInput link, can obtain PP1(8)=Min { PP1(8), PP2(8) }=0.25 therefore to export L3Logic gate G3For starting point continue toInput terminal is found, logic gate G3Input link be circuit input terminal, a paths searching terminate.Similarly, the jump of m item can be found outTransmit lesser transmission path in edge.
After transmission path is found, Yao Shengcheng test vector simultaneously rejects Invalid path, with two paths of above-mentioned searchingFor: in the first paths, when test vector is transferred to logic gate G9When, jumping edge can not continue to transmit, and the first paths areIf G3- > G9- > G10- > G11 is in Fig. 5 it can be seen that an input in G3 occurs for a jump, as long as G3's is anotherAn outer input is 1, then the output of G3 will jump, so jump can propagate to G3's from the input of this pathsOutput.But if the input that the output of G3 becomes 1, G9 from 0 is to become 1 from 0, and another is inputted, i.e. G6Output then become 0 from 1, therefore the output of G9 still maintains 0, and there is no become 1 from 0, that is to say, that the jump in G3 outputThe output of G9 can not be traveled to., logic gate G9Output be always 0, be a nothing so paths can not generate test vectorImitate path.In second paths, the jump edge of test vector can be efficiently transmitted to output end, so paths are successfully generated testVector can be used for detecting hardware Trojan horse, for example, select it is difficult survey path after, it is only necessary to corresponding test vector is inputed to circuit,Observe whether circuit output is correct, the process of this input vector observation output is identical with general test process.
What is surveyed due to the present invention is this kind of hardware Trojan horse based on transmission probability compared with small path, and this path is because of transmissionProbability is smaller, and existing test method does not account for this kind of hardware Trojan horse again, so the test vector used seldom jumps oneOutput is traveled to from the input in this path.Which road actual hardware wooden horse is not aware that when actual test isDiameter, so the present invention searches out many this lesser paths of transmission probability, it is then each coordinates measurement vector, so that jumpingChange can travel to output from the input in these paths, and the path searched out is more, successfully be detected actual hardware wooden horseProbability is bigger.
The following are system embodiment corresponding with above method embodiment, present embodiment can be mutual with above embodimentCooperation is implemented.The relevant technical details mentioned in above embodiment are still effective in the present embodiment, in order to reduce repetition,Which is not described herein again.Correspondingly, the relevant technical details mentioned in present embodiment are also applicable in above embodiment.
The invention also discloses a kind of based on the difficult integrated circuit detection system for surveying Path selection, including:
Output probability computing module is patrolled for obtaining to-be-measured integrated circuit according to logic gate in the to-be-measured integrated circuitVolume and the order of connection, determine the output probability of the output particular logic value of each logic gate in the to-be-measured integrated circuit;
Module is found in path, for obtaining patrolling for to-be-measured integrated circuit each propagation path according to the output probabilityValue jump probability of spreading is collected, and finds and jumps the corresponding propagation path of probability of spreading as to be selected lower than the logical value of preset valuePath;
Trojan horse detection module for generating test vector, and judges whether the test vector can jump a logical valueIt is transmitted from the input terminal in the path to be selected to output end, if so, path is surveyed using the path to be selected as hardly possible, for detecting hardwareOtherwise wooden horse then deletes the path to be selected.
This is based on the difficult integrated circuit detection system for surveying Path selection, and wherein the particular logic value is 0 or 1.
This surveys integrated circuit detection system of Path selection based on hardly possible, wherein the output probability computing module further include:
Random vector is input to the input terminal of the to-be-measured integrated circuit, and is carried out to the output end of the to-be-measured integrated circuitLogic calculation, to obtain the logical value of each line in the to-be-measured integrated circuit;
According to the following formula, the dynamic probability that each line in the to-be-measured integrated circuit exports the particular logic value is calculated;
Wherein, PdIt (i) is the dynamic probability of i-th line, n is the sum of the random vector, n1(i) refer to n at random toUnder amount input, the logical value of line i is the vector number of the particular logic value;
If the static probability that the particular logic value is input to the to-be-measured integrated circuit input terminal is 0.5, with to the collection to be measuredLogic probability calculating is carried out at the output end of circuit, each line in the to-be-measured integrated circuit is obtained and exports the particular logic valueStatic probability,
The static probability is calibrated according to the dynamic probability and calibration function, is obtained each in the to-be-measured integrated circuitLine exports the calibration probability of the particular logic value, and using the calibration probability as the output probability.
This is based on the difficult integrated circuit detection system for surveying Path selection, and wherein path is found in module and finds the path to be selectedProcess specifically include: using the output logic gate of the to-be-measured integrated circuit as starting point, to input terminal direction finding, select the logicThe value the smallest input link of jump probability of spreading is as jump edge transmission end, and the logic gate to export the input link is as newlyStarting point continue to input terminal direction finding, knot is found in the input terminal until reaching the to-be-measured integrated circuit a, path to be selectedBeam.
This based on difficult integrated circuit detection system for surveying Path selection, wherein the calibration function include: arithmetic mean function,Geometric mean function, harmonic average function.