Fitting method and device for testing chip delay

Through the multiple linear regression fitting method, the accuracy problem of signal delay adjustment in high-performance chip testing is solved, efficient and accurate delay estimation is achieved, the needs of high-frequency testing are met, and a stable testing solution is provided.

CN112285527BActive Publication Date: 2024-10-22HANGZHOU ACCELERATION CLOUD INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011021893.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-25
Publication Date
2024-10-22
Estimated Expiration
2040-09-25

AI Technical Summary

Technical Problem

In high-performance chip testing, it is difficult to accurately adjust the signal delay with existing technology, resulting in low test efficiency and poor accuracy, which cannot meet the testing requirements of high-performance chips. Especially when the frequency exceeds 1GHz, nanosecond-level adjustment accuracy is difficult to achieve. .

Method used

The multiple linear regression method is used to fit the input voltage and delay of the test chip. By obtaining multiple sets of training data, a fitting equation is established, including the independent variables VIH, VIL, VOH and the dependent variable delay, and linear regression is used to solve the parameters. Obtain accurate fitting equations to calculate comparison delays or drive delays.

Benefits of technology

It achieves efficient, stable and accurate estimation of the test chip delay, improves the test accuracy, and meets the test requirements of high-performance chips. The root mean square error is within 0.21ns and the absolute error is within 0.67ns, which meets the high-frequency requirements. Testing needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112285527B_ABST
    Figure CN112285527B_ABST
Patent Text Reader

Abstract

The present invention discloses a fitting method and device for testing chip delay. The fitting method comprises: obtaining multiple sets of training data, each set of training data comprises input voltage measurement values ​​of a test chip in a test environment and delay measurement values ​​of the test chip; fitting the multiple sets of training data by means of multivariate linear regression to obtain a fitting equation. In the fitting equation, the chip delay is a dependent variable, and the input voltage of the test chip is an independent variable. The chip delay fitting method obtained by the present invention can realize efficient, stable and accurate estimation of chip delay.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of chip detection technology, and in particular to a delay fitting method and device for testing a chip. Background Art

[0002] In the process of using a test chip to test the chip under test, there is a physical delay in the transmission of electrical signals. The physical delay is caused by many reasons, such as the propagation time of the electric field, the stabilization time of the set voltage in the circuit, the line length of the printed circuit board, etc. Under different test conditions, this delay is not a fixed value, but a variable value that varies with the test object and the test environment. When there are stricter timing requirements for the drive signal and comparison signal of the test chip, it is necessary to adjust the signal delay to meet the timing constraints. In the prior art, the estimation and adjustment of signal delays are achieved by relying on the experience of test engineers and the measurement of experimental equipment.

[0003] As the performance of chips gradually increases, the operating frequency of chips also gradually increases. In order to test the chip, the frequency of the test signal needs to be consistent with the operating frequency of the chip. When the frequency of the test signal exceeds 1GHz, the adjustment accuracy of the drive signal and comparison signal of the test chip needs to reach the nanosecond level. However, the method of adjusting the delay through experience and experiments has low adjustment efficiency, poor accuracy, and lack of stability, which cannot meet the testing requirements for high-performance chips.

[0004] Therefore, it is necessary to provide an efficient, stable and accurate test chip delay estimation method. Summary of the invention

[0005] In view of this, the present invention proposes a test chip delay fitting method and device, which can efficiently, stably and accurately estimate the delay of the test chip.

[0006] According to a first aspect of the present invention, a method for fitting a delay of a test chip is provided, comprising:

[0007] Acquire multiple sets of training data, each set of training data includes an input voltage measurement value of the test chip in a test environment and a delay measurement value of the test chip,

[0008] The multiple sets of training data are fitted by multivariate linear regression to obtain a fitting equation, wherein the delay of the test chip is a dependent variable and the input voltage of the test chip is an independent variable.

[0009] According to a preferred embodiment of the present invention, the test chip has an output test signal DUT, and the input voltage measurement value includes the measurement values ​​of VIH, VIL, VOH and VOL, wherein VIH controls the highest voltage of DUT, VIL controls the lowest voltage of DUT, and VOH and VOL are both reference voltages of the comparator of the test chip. Due to the limitation of the fitting equation, VOH=VOL is set, and the test range is between 0-3.

[0010] According to a preferred embodiment of the present invention, the delay is a comparison delay or a driving delay of the test chip.

[0011] According to a preferred embodiment of the present invention, the fitting equation is:

[0012] h(x)=θ 0 +θ 1 X 1 +θ 2 X 2 +θ 3 X 3

[0013] Among them, θ 0 is a constant, X 1 , X 2 , X 3 Respectively represent the independent variables VIH, VIL, VOH, θ 1 ,θ 2 ,θ 3 Represent three parameter variables, and h(x) represents the delay of the test chip.

[0014] According to a preferred embodiment of the present invention, the input signal and the delay are fitted by linear regression, and the fitting equation includes:

[0015] Establishing a delay loss function of the test chip;

[0016] Solve the parameter θ by minimizing the loss function 0 ,θ 1 ,θ 2 ,θ 3 .

[0017] According to a preferred embodiment of the present invention, the matrix and vector of the fitting equation are expressed as: θ (x) = θ T X,

[0018] Among them, θ represents the parameter matrix, X represents the independent variable vector, and h θ (x) represents the delay of the test chip,

[0019] The loss function is:

[0020] The solution of the parameter matrix is: θ = (x T x) -1 x T Y,

[0021] Wherein, Y is the vector of the delay measurement values.

[0022] According to a preferred embodiment of the present invention, the method further comprises calculating the comparison delay and / or driving delay of the test chip using the fitting equation.

[0023] According to a second aspect of the present invention, there is provided a fitting device for testing chip delay, comprising:

[0024] an acquisition unit, configured to acquire multiple sets of training data, each set of training data including an input voltage measurement value of the test chip in a test environment and a delay measurement value of the test chip,

[0025] A fitting unit is used to fit the multiple sets of training data by means of multivariate linear regression to obtain a fitting equation, wherein the delay of the test chip is a dependent variable and the input voltage of the test chip is an independent variable.

[0026] According to a preferred embodiment of the present invention, the test chip has an output test signal DUT, and the input voltage measurement values ​​include measurement values ​​of VIH, VIL, VOH and VOL, wherein VIH controls the highest voltage of the DUT, VIL controls the lowest voltage of the DUT, and VOH and VOL are equal and are both reference voltages of the comparator of the test chip.

[0027] According to a preferred embodiment of the present invention, the delay is a comparison delay or a driving delay of the test chip.

[0028] According to a preferred embodiment of the present invention, the fitting equation is:

[0029] h(x)=θ 0 +θ 1 X 1 +θ 2 X 2 +θ 3 X 3

[0030] Among them, θ 0 is a constant, X 1 , X 2 , X 3 Respectively represent the independent variables VIH, VIL, VOH, θ 1 ,θ 2 ,θ 3Represent three parameter variables, and h(x) represents the delay of the test chip.

[0031] According to a preferred embodiment of the present invention, the fitting unit is configured as follows:

[0032] Establishing a delay loss function of the test chip;

[0033] Solve the parameter θ by minimizing the loss function 0 ,θ 1 ,θ 2 ,θ 3 .

[0034] According to a preferred embodiment of the present invention, the matrix and vector of the fitting equation are expressed as: θ (x) = θ T X,

[0035] Among them, θ represents the parameter matrix, X represents the independent variable vector, and h θ (x) represents the delay of the test chip,

[0036] The loss function is:

[0037] The solution of the parameter matrix is: θ = (x T x) -1 x T Y,

[0038] Wherein, Y is the vector of the delay measurement values.

[0039] According to a preferred embodiment of the present invention, the method further comprises a calculation unit for calculating the comparison delay and / or driving delay of the test chip using the fitting equation.

[0040] According to a third aspect of the present invention, there is provided a computer-readable storage medium having a computer program stored thereon, wherein the computer program executes the method described above when executed by a processor.

[0041] It can be seen from the above technical solutions that the technical solution of the present invention uses multiple linear regression to fit the input voltage and delay of the test chip to obtain a fitting equation. The obtained fitting equation can achieve efficient, stable and accurate estimation of chip delay. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] The disclosure of the present invention will become easier to understand with reference to the accompanying drawings. It is easy for those skilled in the art to understand that these drawings are only used to illustrate the technical solution of the present invention and are not intended to limit the scope of protection of the present invention. In the drawings:

[0043] Figure 1A schematic diagram of a chip testing scenario according to an embodiment of the present invention;

[0044] Figure 2 is a flow chart of a fitting method for testing chip delay according to an embodiment of the present invention;

[0045] Figure 3 Schematic diagram of the structure of a fitting device for testing chip delay according to an embodiment of the present invention. DETAILED DESCRIPTION

[0046] In order to make the purpose, technical solutions and advantages of the present invention more clear, the present invention is described in detail below with reference to the accompanying drawings and specific embodiments.

[0047] Figure 1 FIG. 1 is a schematic diagram of a chip test scenario according to an embodiment of the present invention. Figure 1 As shown, when testing the chip to be tested, a dedicated test chip is required to send a test signal DUT to the chip to be tested. In order to generate the required DUT signal, the FPGA chip needs to be programmed in advance so as to drive the test chip to generate the required DUT signal. After receiving the DUT signal, the chip to be tested generates an output signal and feeds it back to the comparison end of the test chip. In order to meet the timing requirements of the test, it is necessary to accurately estimate the drive delay and comparison delay of the chip. The fitting method of the test chip delay according to the present invention can achieve accurate estimation of the delay of the test chip.

[0048] Figure 1 The test chip shown in the figure is a special test chip of model ADATE318 produced by ANALOG DEVICES, USA. The method of the present invention is introduced in conjunction with the chip in the embodiment of the present invention. However, the method and device of the present invention are not only applicable to fitting the delay of the ADATE318 test chip, but also other types of test chips can also use the method and device of the present invention to perform chip delay fitting.

[0049] Figure 2 FIG. 1 is a flow chart of a method for fitting a test chip delay according to an embodiment of the present invention. Figure 1 As shown, the fitting method includes:

[0050] Step 21: Acquire multiple sets of training data, each set of training data includes an input voltage measurement value of the test chip in a test environment and a delay measurement value of the test chip.

[0051] Step 22: Multiple sets of training data are fitted by multivariate linear regression to obtain a fitting equation, in which the delay of the test chip is the dependent variable and the input voltage of the test chip is the independent variable.

[0052] In step 21, multiple sets of training data are obtained in e.g. Figure 1The test data is actually measured in the measurement environment shown. Each set of test data may include the input voltage measurement value of the test chip and the delay measurement value of the test chip. The delay measurement value may be the comparative delay measurement value or the drive delay measurement value of the test chip. Specifically, each input voltage of the test chip and the delay at this time may be measured and recorded first, and then the input voltage value may be changed, and a new set of input voltage values ​​and corresponding delays may be measured and recorded.

[0053] Combination Figure 1 In a specific embodiment, the test chip has an output test signal DUT, and the input voltage measurement value of the test chip includes the measurement values ​​of VIH, VIL, VOH and VOL. Among them, VIH controls the highest voltage of DUT, VIL controls the lowest voltage of DUT, VOH and VOL are equal and are both reference voltages of the comparator of the test chip. In this embodiment, multiple groups of VIH, VIL, VOH and VOL can be input to the test chip, and the corresponding comparison delay and / or drive delay can be measured at the same time. Each group of VIH, VIL, VOH and VOL measurement values ​​and the corresponding comparison delay and / or drive delay are a set of training data. In order to achieve a good fitting effect, it is generally necessary to obtain hundreds of sets of training data. In addition to the training data, multiple sets of test data can also be obtained to verify the accuracy of the fitting equation. The content of the test data is the same as that of the training data, so a part of the collected training data (for example, 50%) can be used to generate the fitting equation, and the other part can be reserved as test data for testing the accuracy of the fitting equation.

[0054] In step 22, multiple sets of training data obtained in step 21 are fitted by multivariate linear regression to obtain a fitting equation. In the fitting equation, the delay of the test chip is the dependent variable, and the input voltage of the test chip is the independent variable. Figure 1 In a specific embodiment, the delay of the test chip (comparison delay or driving delay) is linearly related to VIH, VIL, and VOH (VOH is equal to VOL). VIH, VIL, and VOH in the training data are used as independent variables, and the delay of the test chip is used as the dependent variable. The delay of the test chip can be linearly fitted. The fitting equation is:

[0055] h(x)=θ 0 +θ 1 X 1 +θ 2 X 2 +θ 3 X 3 (Equation 1)

[0056] Among them, θ 0 is a constant, X 1 , X 2 and X 3Represent three independent variables, VIH, VIL and VOH, θ 1 ,θ 2 and θ 3 Represents three parameter variables. h(x) represents the estimated value of the chip's comparison delay or drive delay. For convenience, matrices and vectors are used to represent these data. The formula is as follows:

[0057] h θ (x) = θ T X (Equation 2)

[0058] Where θ represents the parameter matrix, X represents the independent variable vector, and h θ (x) represents the estimated value of the chip's comparison delay or drive delay.

[0059] Assume that the actual value of the comparison delay or driving delay measured in the training data is vector Y. A loss function is established to measure the error between the estimated value and the actual value of the test chip delay. The minimization of the loss function is used as a constraint to find the optimal solution for the parameter vector. The loss function is as follows:

[0060]

[0061] This loss function is the least squares method. By taking the partial derivative of the parameter θ through equation 3 and setting the partial derivative to 0, the coefficient matrix θ = (x T x) -1 x T Y. Substituting the coefficient matrix θ into equation 1, the fitting equation can be obtained. Obviously, the obtained fitting equation can be used to calculate the comparison delay and / or driving delay of the test chip.

[0062] In order to verify the accuracy of the fitting equation obtained above, the method of the present invention may further include the step of verifying the above fitting equation. According to one embodiment of the present invention, this step includes verifying the accuracy of the fitting equation by calculating the root mean square error. Specifically, first substitute the VIH, VIL and VOH in the test data set and the coefficient matrix calculated above into the fitting equation, calculate the estimated value of the test chip delay of the test set, and then calculate the root mean square error between the estimated value and the actual value. The accuracy of the fitting equation is evaluated by the root mean square error. The root mean square error calculation formula is as follows:

[0063]

[0064] Through equation 4, the root mean square error of the test data set is calculated to be 0.21ns, and the absolute error between the actual value and the estimated value of the delay of the test chip is less than 0.67ns, which is within the allowable error range.

[0065] The above is a description of the method provided by the present invention. The device provided by the present invention is described in detail below in conjunction with embodiments.

[0066] Figure 3 Schematic diagram of the structure of the test chip delay fitting device according to an embodiment of the present invention. Figure 3 As shown, the chip delay fitting device according to this embodiment includes: an acquisition unit 41 and a fitting unit 42.

[0067] The acquisition unit 41 is responsible for acquiring multiple sets of training data, each set of training data includes an input voltage measurement value of the test chip in a test environment and a delay measurement value of the test chip.

[0068] Multiple sets of training data are in e.g. Figure 1 The test data is actually measured in the measurement environment shown. Each set of test data may include the input voltage measurement value of the test chip and the delay measurement value of the test chip. The delay measurement value may be the comparative delay measurement value or the drive delay measurement value of the test chip. Specifically, each input voltage of the test chip and the delay at this time may be measured and recorded first, and then the input voltage value may be changed, and a new set of input voltage values ​​and corresponding delays may be measured and recorded.

[0069] Combination Figure 1 In a specific embodiment, the test chip has an output test signal DUT, and the input voltage measurement value of the test chip includes the measurement values ​​of VIH, VIL, VOH and VOL. Among them, VIH controls the highest voltage of DUT, VIL controls the lowest voltage of DUT, VOH and VOL are equal and are both reference voltages of the comparator of the test chip. In this embodiment, multiple groups of VIH, VIL, VOH and VOL can be input to the test chip, and the corresponding comparison delay and / or drive delay can be measured at the same time. Each group of VIH, VIL, VOH and VOL measurement values ​​and the corresponding comparison delay and / or drive delay are a set of training data. In order to achieve a good fitting effect, it is generally necessary to obtain hundreds of sets of training data. In addition to the training data, multiple sets of test data can also be obtained to verify the accuracy of the fitting equation. The content of the test data is the same as that of the training data, so a part of the collected training data (for example, 50%) can be used to generate the fitting equation, and the other part can be reserved as test data for testing the accuracy of the fitting equation.

[0070] The fitting unit 42 is responsible for fitting multiple sets of training data by means of multivariate linear regression to obtain a fitting equation, in which the delay of the test chip is the dependent variable and the input voltage of the test chip is the independent variable.

[0071] In the fitting equation, the delay of the test chip is the dependent variable, and the input voltage of the test chip is the independent variable. Figure 1In a specific embodiment, the delay of the test chip (comparison delay or driving delay) is linearly related to VIH, VIL, and VOH (VOH is equal to VOL). VIH, VIL, and VOH in the training data are used as independent variables, and the delay of the test chip is used as the dependent variable. The delay of the test chip can be linearly fitted. The fitting equation is:

[0072] h(x)=θ 0 +θ 1 X 1 +θ 2 X 2 +θ 3 X 3 (Equation 5)

[0073] Among them, θ 0 is a constant, X 1 , X 2 and X 3 Represent three independent variables, VIH, VIL and VOH, θ 1 ,θ 2 and θ 3 Represents three parameter variables. h(x) represents the estimated value of the chip's comparison delay or drive delay. For convenience, matrices and vectors are used to represent these data. The formula is as follows:

[0074] h θ (x) = θ T X (Equation 6)

[0075] Where θ represents the parameter matrix, X represents the independent variable vector, and h θ (x) represents the estimated value of the chip's comparison delay or drive delay.

[0076] Assume that the actual value of the comparison delay or driving delay measured in the training data is vector Y. A loss function is established to measure the error between the estimated value and the actual value of the test chip delay. The minimization of the loss function is used as a constraint to find the optimal solution for the parameter vector. The loss function is as follows:

[0077]

[0078] This loss function is the least squares method. By taking the partial derivative of the parameter θ through equation 3 and setting the partial derivative to 0, the coefficient matrix θ = (x T x) -1 x T Y. Substituting the coefficient matrix θ into equation 5, the fitting equation can be obtained. The fitting device according to this embodiment may further include a calculation module, which is used to calculate the comparison delay and / or driving delay of the test chip using the fitting equation.

[0079] In order to verify the accuracy of the fitting equation obtained above, the present invention also provides a verification unit for verifying the above fitting equation. According to one embodiment of the present invention, the verification unit verifies the accuracy of the fitting equation by calculating the root mean square error. Specifically, the verification unit first substitutes the VIH, VIL and VOH in the test data set and the coefficient matrix calculated above into the fitting equation, calculates the estimated value of the test chip delay of the test set, and then calculates the root mean square error between the estimated value and the actual value. The accuracy of the fitting equation is evaluated by the root mean square error. The root mean square error calculation formula is as follows:

[0080]

[0081] Through equation 8, the root mean square error of the test data set is calculated to be 0.21ns, and the absolute error between the actual value and the estimated value of the delay of the test chip is less than 0.67ns, which is within the allowable error range.

[0082] The device embodiments described above are only illustrative. The division of each unit may be based on the division of logical functions, and other division methods may be adopted in actual implementation. For example, multiple units may be combined or integrated into another unit or system. The above-mentioned units may be implemented in the form of hardware or in the form of software functional units.

[0083] If the above-mentioned units are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for the processor of a computer device to execute all or part of the steps of the methods of various embodiments of the present invention. Storage media include, but are not limited to, flash drives, read-only memories (ROMs), random access memories (RAMs), mobile hard disks, magnetic disks, or optical disks, etc., which can store program codes.

[0084] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A fitting method for testing chip delay, comprising: Acquire multiple sets of training data, each set of training data includes an input voltage measurement value of the test chip in a test environment and a delay measurement value of the test chip; The multiple sets of training data are fitted by multivariate linear regression to obtain a fitting equation, wherein the delay of the test chip is a dependent variable, and the input voltage of the test chip is an independent variable. The test chip has an output test signal DUT, and the input voltage measurement value includes the measurement values ​​of VIH, VIL, VOH and VOL, wherein VIH controls the highest voltage of DUT, VIL controls the lowest voltage of DUT, VOH and VOL are equal and are both reference voltages of the comparator of the test chip, Wherein, in the test environment, the test chip provides a DUT signal to the chip under test, and the chip under test generates an output signal according to the DUT signal and feeds it back to the comparison terminal of the test chip. Wherein, the fitting equation is: h(x)=θ0+θ1X1+θ2X2+θ3X3 Wherein, θ0 is a constant, X1, X2, and X3 represent independent variables VIH, VIL, and VOH respectively, θ1, θ2, and θ3 represent three parameter variables, and h(x) represents the delay of the test chip. The input voltage and the delay are fitted by linear regression, and the fitting equation includes: Establishing a delay loss function of the test chip; By minimizing the loss function, the parameters θ0, θ1, θ2, θ3 are solved. And wherein, the matrix and vector of the fitting equation are expressed as: θ (x) = θ T X, Among them, θ represents the parameter matrix, X represents the independent variable vector, and h θ (x) represents the delay of the test chip, The loss function is: The solution of the parameter matrix is: θ = (x T x) -1 x T Y, Wherein, Y is the vector of the delay measurement values.

2. The fitting method according to claim 1, characterized in that: The delay is a comparison delay or a driving delay of the test chip.

3. The fitting method according to claim 1, characterized in that: The method further includes calculating a comparison delay and / or a driving delay of the test chip using the fitting equation.

4. A fitting device for testing chip delay, comprising: An acquisition unit, used for acquiring multiple sets of training data, each set of training data including an input voltage measurement value of the test chip in a test environment and a delay measurement value of the test chip; A fitting unit is used to fit the multiple sets of training data by means of multivariate linear regression to obtain a fitting equation, wherein the delay of the test chip is a dependent variable and the input voltage of the test chip is an independent variable. The test chip has an output test signal DUT, and the input voltage measurement value includes the measurement values ​​of VIH, VIL, VOH and VOL, wherein VIH controls the highest voltage of DUT, VIL controls the lowest voltage of DUT, VOH and VOL are equal and are both reference voltages of the comparator of the test chip, Wherein, in the test environment, the test chip provides a DUT signal to the chip under test, and the chip under test generates an output signal according to the DUT signal and feeds it back to the comparison terminal of the test chip. Wherein, the fitting equation is: h(x)=θ0+θ1X1+θ2X2+θ3X3 Wherein, θ0 is a constant, X1, X2, and X3 represent independent variables VIH, VIL, and VOH respectively, θ1, θ2, and θ3 represent three parameter variables, and h(x) represents the delay of the test chip. Wherein, the fitting unit is configured as follows: Establishing a delay loss function of the test chip; By minimizing the loss function, the parameters θ0, θ1, θ2, θ3 are solved. And wherein, the matrix and vector of the fitting equation are expressed as: θ (x) = θ T X, Among them, θ represents the parameter matrix, X represents the independent variable vector, and h θ (x) represents the delay of the test chip, The loss function is: The solution of the parameter matrix is: θ = (x T x) -1 x T Y, Wherein, Y is the vector of the delay measurement values.

5. The fitting device according to claim 4, characterized in that The delay is a comparison delay or a driving delay of the test chip.

6. The fitting device according to claim 4, characterized in that The device also includes a calculation unit, which is used to calculate the comparison delay and / or driving delay of the test chip using the fitting equation.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 3 is performed.