A kind of method and device for realizing chip top-layer metal covering circuit test
Technical field
The present invention relates to Circuit Measurement Technology, espespecially a kind of method and dress for realizing chip top-layer metal covering circuit test
It sets.
Background technique
Chip top-layer metal covering is one of the design method of high safety intelligent card chip.By covering one in chip top-layer
Layer metal medium, can not be carried out malicious external attack with effective protection chip bottom circuit and signal.Due to producing and processing
Journey may cause the disabler of the top-level metallic covering of segment chip, and the safety of critical data in chip is caused to be unable to get guarantor
Card.Therefore it needs to reject the chip that top-level metallic covering function fails.
Top-level metallic covering is generally tested by logic integrity circuit: the design principle of logic integrity circuit
It is: logic gates is increased separately at the metal wire both ends of top layer covering, by increased logic gates test data from gold
Belong to whether line input terminal is correctly transmitted to output end, if the data of all metal wires are by normal transmission, it is determined that top layer covers
The metal wire of lid is effectively connection, and then determines that top-level metallic covering function is normal;If there is metal wire data not by just
Often transmission, such as metal wire are drawn and are broken, then the circuit logic value at metal wire both ends differs, it is determined that top-level metallic covering function
There are exceptions.Fig. 1 is the logic integrity circuit schematic diagram of single metal line, as shown in Figure 1, respectively adding at metal wire both ends one anti-
Phase device determines that metal wire effectively connects if the data output of metal wire is equal to data input (Dout=Din);If metal wire
Data output inputs not identical with data, it is determined that metal wire connection is invalid, and chip protects circuit to pass through report by malicious sabotage
Alert signal notifies chip control circuit, realizes the protection to chip.Fig. 2 is the principle of existing chip logic integrity circuit
Figure, as shown in Fig. 2, the metal wire that top layer covers is divided into n group (n >=2) by logic integrity circuit, every group includes m metal
Line (m >=2).When logic integrity circuit works, applies certain data in the input of metal wire, judge whether Din [i] is equal to
Dout [i] (i=1~m), by comparing, whether two end data of n*m metal line is equal to judge whether chip is attacked.Base
In the method that logic integrity circuit carries out the test of chip top-layer metal covering include following two: the first is, passes through logic
Whether integrity circuit, which generates alarm signal, determines chip whether function is normal;Second is that logic integrity circuit does not generate
Under the premise of alarm signal, draws selected several metal lines of breaking and determine chip if logic integrity circuit produces alarm
Function is normal.
Existing chip top-layer metal covering test method has the following problems: when being tested using first method,
Only there is no whether to generate alarm signal in situation under attack to logic integrity circuit and determines whether top-level metallic covering is complete;
Alarm signal whether can be generated when not under attack to logic integrity circuit to test, and cannot achieve the number to chip interior
According to offer protection.Second of test method is to make chip by destroying several metal wires on the basis of the first test method
Top-level metallic covering goes wrong, and generates alarm by logic integrity circuit and determines that logic integrity circuit function is normal, the
Two kinds of test methods are destructive testings, and chip top-layer metal covering one can not be represented by drawing the test that several metal wires carry out of breaking
It is fixed that there is no problem;In addition, the result individually tested cannot represent the test of all chips, this test method is not used to core
The volume production of piece is tested;In addition, there is also inefficiency, problems at high cost for this test method.Summary, existing method can not
It determines the test of chip top-layer metal covering effectively, can not effectively reject the chip of metal wire Joint failure.
Summary of the invention
In order to solve the above technical problem, the present invention provides a kind of methods for realizing chip top-layer metal covering circuit test
And device, it can determine logic integrity circuit function under normal circumstances, chip top-layer metal covering circuit is being tested.
It is right the present invention provides a kind of method for realizing the test of chip top-layer metal covering in order to reach the object of the invention
All metal wires of top-level metallic covering circuit, comprising:
Gradually selected section metal wire in batches carries out the signal overturning of input data;
Input data and output number when each batch metal wire completes the signal overturning of input data, to all metal wires
It is analyzed according to being compared;
Summarized according to the comparative analysis result of the input data of all batches and output data, it is true according to summarized results
Whether the function of determining chip top-layer metal covering circuit is normal.
Optionally, selected section metal wire progress input data signal gradually in batches, which is overturn, includes:
The each group metal wire of top-level metallic covering circuit is ranked up respectively;
Successively according to sequence, it did not carried out gradually selecting the first default number of branches in the metal wire of the signal overturning from each group
Metal wire carry out input data signal overturning;
First default number of branches be one or one or more.
Optionally, being compared analysis to input data and output data includes:
When each batch metal wire completes the signal overturning of input data,
Each metal wire input data of circuit and defeated is covered by top-level metallic described in logic integrity circuit comparative analysis
Data out, determine whether each metal wire input data and output data are equal;
The anti-data for taking the input data of each metal wire of the top-level metallic covering circuit, pass through the logic integrality
Whether the anti-data of the input data of each metal wire of circuit comparative analysis are unequal with output data.
Optionally, determine chip top-layer metal covering circuit function whether normally include:
The comparative analysis result of the input data and the output data to all batches summarizes,
If the input data and the output data of each metal wire are equal, the input data of each metal wire
Anti- data and the output data it is unequal when, it is determined that chip the top-level metallic covering circuit function it is normal;
The output data of input data and metal wire if there is metal wire is unequal;And/or there are the defeated of metal wire
The anti-data for entering data are equal with the output data of metal wire, it is determined that the top-level metallic covering circuit function of chip is different
Often.
On the other hand, the application also provides a kind of device for realizing the test of chip top-layer metal covering, comprising: signal overturning
Unit, in batches analytical unit and determination unit;Wherein,
Signal roll-over unit is used for, and all metal wires of circuit is covered to top-level metallic, gradually selector parting in batches
Belong to the signal overturning that line carries out input data;
Analytical unit is used in batches, when each batch metal wire completes the signal overturning of input data, to all metals
The input data and output data of line are compared analysis;
Determination unit is used for, and is summarized according to the comparative analysis result of the input data of all batches and output data,
Determine whether the function of chip top-layer metal covering circuit is normal according to summarized results.
Optionally, signal roll-over unit is specifically used for, to all metal wires of top-level metallic covering circuit, to each group metal
Line is ranked up respectively;
Successively according to sequence, the gold that the first default number of branches are selected in the metal wire of signal overturning was not carried out from each group gradually
Belong to the signal overturning that line carries out input data;
First default number of branches be one or one or more.
Optionally, analytical unit is specifically used in batches,
When each batch metal wire completes the overturning of input data signal,
Each metal wire input data of circuit and defeated is covered by top-level metallic described in logic integrity circuit comparative analysis
Data out, determine whether each metal wire input data and output data are equal;
The anti-data for taking the input data of each metal wire of the top-level metallic covering circuit, pass through the logic integrality
Whether the anti-data of the input data of each metal wire of circuit comparative analysis are unequal with output data.
Optionally, determination unit is specifically used for,
The comparative analysis result of the input data and the output data to all batches summarizes,
If the input data and the output data of each metal wire are equal, the input data of each metal wire
Anti- data and the output data it is unequal when, it is determined that chip the top-level metallic covering circuit function it is normal;
The output data of input data and metal wire if there is metal wire is unequal;And/or there are the defeated of metal wire
The anti-data for entering data are equal with the output data of metal wire, it is determined that the top-level metallic covering circuit function of chip is different
Often.
Compared with prior art, technical scheme includes: all metal wires to top-level metallic covering circuit, gradually
Selected section metal wire in batches carries out the signal overturning of input data;The signal that each batch metal wire completes input data turns over
When turning, input data and output data to all metal wires are compared analysis;According to the input data of all batches and defeated
The comparative analysis result of data is summarized out, whether just to determine the function of chip top-layer metal covering circuit according to summarized results
Often.The method of the present invention is overturn by the signal that gradually selected section metal wire carries out input data in batches, to all batch signals
The input data and output data of overturning are compared analysis, are realized by logic integrity circuit and cover electricity to top-level metallic
Whether road function normally judges, reduces top-level metallic covering circuit test cost, improves top-level metallic covering circuit and surveys
The working efficiency of examination.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair
Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the logic integrity circuit schematic diagram of single metal line;
Fig. 2 is the schematic diagram of existing chip logic integrity circuit;
Fig. 3 is the flow chart for the method that the present invention realizes the test of chip top-layer metal covering;
Fig. 4 is the structural block diagram for the device that the present invention realizes the test of chip top-layer metal covering;
Fig. 5 is the structural block diagram that the present invention applies example logic integrity circuit;
Fig. 6 is this application example metals line line open circuit schematic diagram.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention
Embodiment be described in detail.It should be noted that in the absence of conflict, in the embodiment and embodiment in the application
Feature can mutual any combination.
Fig. 3 is the flow chart for the method that the present invention realizes the test of chip top-layer metal covering, as shown in figure 3, to top layer gold
Belong to all metal wires of covering circuit, comprising:
Step 300, selected section metal wire gradually in batches carry out the signal overturning of input data;
This step specifically includes: gradually selected section metal wire progress input data signal overturning in batches includes:
The each group metal wire of top-level metallic covering circuit is ranked up respectively;
Successively according to sequence, the gold that the first default number of branches are selected in the metal wire of signal overturning was not carried out from each group gradually
Belong to the signal overturning that line carries out input data;
First default number of branches be one or one or more.
It should be noted that the general value of the first default number of branches, which is one, carries out the test analysis that top-level metallic covers circuit
Relatively sharp convenience;When default number of branches are one, in the group of each group metal wire, each metal wire is compared with the metal wire in group
The overturning of signal is certainly existed, may be implemented that there are the case where adhesion to test to metal wire in organizing;It is above-mentioned gradually in batches
Selected section metal wire carry out input data signal overturning method be the embodiment of the present invention alternative embodiment;Whether
Be ranked up, whether the identical item number metal wire of every group selection, if every group require selection metal wire carry out input data letter
Number overturning, can be adjusted according to practical application by those skilled in the art.Optionally, present invention progress signal overturning can
To be that each metal wire has and only once carry out signal overturning, i.e., all metal wires necessarily pass a signal overturning.
When step 301, each batch metal wire complete the signal overturning of input data, to the input data of all metal wires
Analysis is compared with output data;
In this step, being compared analysis to input data and output data includes:
When each batch metal wire completes the overturning of input data signal,
Each metal wire input data and output number of circuit are covered by logic integrity circuit comparative analysis top-level metallic
According to determining whether each metal wire input data and output data are equal;
The anti-data for taking the input data of each metal wire of top-level metallic covering circuit, are compared by logic integrity circuit
Whether anti-data and the output data for analyzing the input data of each metal wire are unequal.
Step 302 is summarized according to the input data of all batches and the comparative analysis result of output data, according to remittance
Overall result determines whether the function of chip top-layer metal covering circuit is normal.
In this step, determine chip top-layer metal covering circuit function whether normally include:
The comparative analysis result of input data and output data to all batches summarizes,
If each metal wire input data and output data are equal, the anti-data and output of the input data of each metal wire
When data are unequal, it is determined that the top-level metallic covering circuit function of chip is normal;
The output data of input data and metal wire if there is metal wire is unequal;And/or there are the defeated of metal wire
The anti-data for entering data are equal with the output data of metal wire, it is determined that the top-level metallic covering circuit function of chip is abnormal.
The method of the present invention is overturn by the signal that gradually selected section metal wire carries out input data in batches, to all batches
The input data and output data of signal overturning are compared analysis, and avoiding logic integrity circuit operation irregularity influences to top
Whether layer metal covering circuit function normally judges;Top-level metallic covering circuit test cost is reduced, top layer gold is improved
Belong to the working efficiency of covering circuit test.
Fig. 4 is the structural block diagram for the device that the present invention realizes the test of chip top-layer metal covering, as shown in Figure 4, comprising: letter
Number roll-over unit, in batches analytical unit and determination unit;Wherein,
Signal roll-over unit is used for, and all metal wires of circuit is covered to top-level metallic, gradually selector parting in batches
Belong to the signal overturning that line carries out input data;
Signal roll-over unit is specifically used for, and to all metal wires of top-level metallic covering circuit, distinguishes each group metal wire
It is ranked up;
Successively according to sequence, the gold that the first default number of branches are selected in the metal wire of signal overturning was not carried out from each group gradually
Belong to the signal overturning that line carries out input data;
First default number of branches be one or one or more.
Analytical unit is used in batches, when each batch metal wire completes the signal overturning of input data, to all metals
The input data and output data of line are compared analysis;
Analytical unit is specifically used in batches,
When each batch metal wire completes the overturning of input data signal,
Each metal wire input data and output number of circuit are covered by logic integrity circuit comparative analysis top-level metallic
According to determining whether each metal wire input data and output data are equal;
The anti-data for taking the input data of each metal wire of top-level metallic covering circuit, are compared by logic integrity circuit
Whether anti-data and the output data for analyzing the input data of each metal wire are unequal.
Determination unit is used for, and is summarized according to the comparative analysis result of the input data of all batches and output data,
Determine whether the function of chip top-layer metal covering circuit is normal according to summarized results.
Determination unit is specifically used for,
The comparative analysis result of input data and output data to all batches summarizes;
If each metal wire input data and output data are equal, the anti-data and output of the input data of each metal wire
When data are unequal, it is determined that the top-level metallic covering circuit function of chip is normal;
The output data of input data and metal wire if there is metal wire is unequal;And/or there are the defeated of metal wire
The anti-data for entering data are equal with the output data of metal wire, it is determined that the top-level metallic covering circuit function of chip is abnormal.
The method of the present invention is carried out below by way of specific embodiment to understand that detailed description, embodiment are only used for stating this hair
It is bright, it is not intended to limit the present invention the protection scope of method.
Embodiment
Fig. 5 is the structural block diagram that the present invention applies example logic integrity circuit, as shown in figure 5, clk is clock signal,
Rst is reset signal, and en is work enable signal, and rn is random number input signal, and te is test enable signal, and error is top
The alarm signal of layer metal covering circuit operation irregularity.
The metal wire of the top-level metallic covering circuit of chip is divided into n group, every group of 8 metal lines, i.e. m=by this application example
8.After system reset, every group of metal wire ([8:1]) initial value is complete " 0 ".Work is enabled to open (en=" 1 "), and logic is complete
Property circuit enters operating mode, and whether the top-level metallic circuit for starting detection chip is working properly.Logic integrity circuit is supported
Cycle detection.
Metal wire covers entire chip, when testing chip top-layer metal covering circuit, if metal wire line is just
Often, then the input data with output data of metal wire should be all equal.It is unequal with output data if there is input data
Situation, it is determined that the top-level metallic of chip covers circuit operation irregularity.
The selected section metal wire of this application example successive in batches carries out the signal overturning of input data;
Input data and output number when each batch metal wire completes the signal overturning of input data, to all metal wires
It is analyzed according to being compared;
Summarized according to the comparative analysis result of the input data of all batches and output data, it is true according to summarized results
Whether the function of determining chip top-layer metal covering circuit is normal.
Fig. 6 is this application example metals line line open circuit schematic diagram, as shown in fig. 6, after being ranked up to every group of metal wire,
Successively according to sequence, it selects one group of metal wire to carry out the Data flipping of input signal each time, i.e., circuit is covered to top-level metallic
Metal wire carried out one by one according to single-bit signal overturning mode traversed, due to metal wire disconnect, input data with
Output data is inevitable different, it can be determined that the top-level metallic of the chip covers circuit abnormality, i.e. chip exists abnormal, by should
Determine there is abnormal chip with exemplary test method object, to carry out the screening and rejecting processing of chip.This application example
Design is simple, and test is efficient, can be used for the test of top-level metallic covering circuit when chip volume production.
Although disclosed herein embodiment it is as above, the content only for ease of understanding the present invention and use
Embodiment is not intended to limit the invention.Technical staff in any fields of the present invention is taken off not departing from the present invention
Under the premise of the spirit and scope of dew, any modification and variation, but the present invention can be carried out in the form and details of implementation
Scope of patent protection, still should be subject to the scope of the claims as defined in the appended claims.