Device and method for improving signal precision of signal generator of on-chip self-test system, terminal and medium
By configuring the test controller and signal generator in the on-chip self-test system to generate and calibrate the ramp wave analog signal, the problem that the signal generator cannot issue high-precision signals is solved, and effective testing of high-digit digital-to-analog converters is achieved.
Patent Information
- Application Number
- CN202411506369.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-28
- Publication Date
- 2024-11-26
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The signal generators in existing on-chip self-test systems cannot send high-precision signals and cannot meet the testing requirements of test analog-to-digital converters with high or higher bits.
By configuring the test controller, digital vector generator, signal generator and code memory in the on-chip self-test system, a ramp wave analog signal with the same gain and different biases is generated, and the analog-to-digital converter module is used to perform analog-to-digital conversion. , calculate the predistortion code of the signal generator to improve the signal accuracy of the signal generator.
The self-calibration of the signal generator is realized, so that it can send high-precision signals to meet the testing needs of high-digit digital-to-analog converters.
Smart Images

Figure CN119030541A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of chip testing technology, and in particular to a device, method, terminal and medium for improving the signal accuracy of a signal generator of an on-chip self-test system. Background Art
[0002] Analog-to-Digital Converter (ADC) is used to convert analog signals into digital signals and is a key part of chips used in many fields. With the development of CMOS technology, ADCs are becoming more and more advanced, and their conversion rate has exceeded 1 billion times per second (GS / s). After the ADC is manufactured, it needs to be tested to judge the quality of the ADC. The test cost of the ADC is an important part of the entire production cost. Usually, the ADC is tested on an expensive mixed-signal automatic test machine. However, this test solution has problems such as high test cost, limited test accuracy, and inability to ensure the performance of the chip throughout its life cycle.
[0003] On-chip self-test systems can be used to solve the above problems. On-chip self-test systems can test the performance of analog-to-digital converters integrated on the chip under test without the need for external equipment support, reducing testing costs and supporting self-testing throughout the life cycle.
[0004] However, since the signal generator in the on-chip self-test system has no self-calibration function, it cannot be used to generate a high-precision signal to test an analog-to-digital converter with the same or higher number of bits. Summary of the invention
[0005] In view of the above-mentioned shortcomings of the prior art, the purpose of the present application is to provide an apparatus, method, terminal and medium for improving the signal accuracy of a signal generator in an on-chip self-test system, so as to solve the problem that the signal generator in the existing on-chip self-test system cannot emit a high-precision signal.
[0006] To achieve the above-mentioned purpose and other related purposes, the first aspect of the present application provides a device for improving the signal accuracy of a signal generator of an on-chip self-test system, which is configured in an on-chip self-test system, and the on-chip self-test system is configured in an analog-to-digital converter chip. The device includes: a test controller, a digital vector generator, a signal generator and a code memory; the test controller is connected to the digital vector generator, the signal generator and the code memory respectively; the test controller controls the digital vector generator to generate a digital input code stream; the signal generator converts the digital input code stream into a ramp analog signal with the same gain and different bias, and inputs the ramp analog signal into the analog-to-digital converter module under test for analog-to-digital conversion; the code memory stores the digital signal output by the analog-to-digital converter module under test; the test controller reads the digital signal from the code memory, and calculates the pre-distortion code of the signal generator based on the read digital signal, so as to improve the signal accuracy generated by the signal generator through the pre-distortion code.
[0007] In some embodiments of the first aspect of the present application, the test controller includes: a nonlinear calculation module, connected to the code memory, for calculating the integral nonlinearity and differential nonlinearity of the analog-to-digital converter module under test based on the read digital signal; a pre-distortion code acquisition module, connected to the nonlinear calculation module, for calculating the integral nonlinearity and differential nonlinearity of the signal generator based on the integral nonlinearity of the analog-to-digital converter module under test using a least squares method, thereby obtaining the pre-distortion code of the signal generator.
[0008] In some embodiments of the first aspect of the present application, the ramp analog signal includes: a first ramp analog signal and a second ramp analog signal; the digital signal includes: a first digital signal and a second digital signal; wherein the first ramp analog signal is converted into a first digital signal by the analog-to-digital converter module under test; and the second ramp analog signal is converted into a second digital signal by the analog-to-digital converter module under test.
[0009] In some embodiments of the first aspect of the present application, the nonlinear calculation module includes: a transition time calculation unit, which is used to obtain a histogram of the first digital signal and the second digital signal based on the first digital signal and the second digital signal, and then obtain the transition time of the first digital signal and the second digital signal; a nonlinear calculation unit, which is connected to the transition time calculation unit, and is used to utilize the same transition level characteristic of the same measured analog-to-digital converter module, through the least squares method, based on the transition time of the first digital signal and the second digital signal, according to the integral nonlinearity calculation formula and the differential nonlinearity calculation formula, to calculate the integral nonlinearity and differential nonlinearity of the measured analog-to-digital converter module.
[0010] In some embodiments of the first aspect of the present application, the nonlinear calculation unit includes: a parameter calculation subunit, which is used to utilize the characteristic that the same transition level of the same analog-to-digital converter module under test is the same, and through the least squares method, based on the transition time of the first digital signal and the second digital signal, according to the integral nonlinearity calculation formula, calculate the estimated values of the nonlinear parameters and the bias value; a nonlinear calculation subunit, which is used to calculate the integral nonlinearity and differential nonlinearity of the analog-to-digital converter module under test based on the calculated nonlinear parameters and the estimated values of the bias value according to the integral nonlinearity calculation formula and the differential nonlinearity calculation formula.
[0011] In some embodiments of the first aspect of the present application, the pre-distortion code acquisition module includes: a gain factor calculation unit, which is used to determine an estimated value of the gain factor based on the integral nonlinearity of the analog-to-digital converter under test, the digital input code stream and the digital signal according to the constructed first ramp analog signal relationship and the second ramp analog signal relationship; a pre-distortion code acquisition unit, which is used to obtain a first integral nonlinearity and a second integral nonlinearity of a signal generator according to the estimated value of the gain factor and the estimated value of the offset value, according to the constructed first ramp analog signal relationship and the second ramp analog signal relationship; average the first integral nonlinearity and the second integral nonlinearity of the signal generator to obtain the integral nonlinearity of the signal generator; obtain the differential nonlinearity of the signal generator according to the integral nonlinearity of the signal generator; and output the integral nonlinearity and the differential nonlinearity of the signal generator as the pre-distortion code of the signal generator.
[0012] In some embodiments of the first aspect of the present application, the process of improving the accuracy of the signal generated by the signal generator through the pre-distortion code specifically includes: adding the pre-distortion code to the signal generator to improve the accuracy of the signal generated by the signal generator.
[0013] To achieve the above-mentioned purpose and other related purposes, the second aspect of the present application provides a method for improving the signal accuracy of a signal generator of an on-chip self-test system, which is applied to a device for improving the signal accuracy of a signal generator of an on-chip self-test system, wherein the device is configured in an on-chip self-test system, and the device includes: a digital vector generator, a signal generator, and a code memory; the on-chip self-test system is configured in an analog-to-digital converter chip, and the method includes: controlling the digital vector generator to generate a digital input code stream; allowing the signal generator to convert the digital input code stream into a ramp analog signal with the same gain and different bias, and inputting the ramp analog signal into the analog-to-digital converter module under test for analog-to-digital conversion; allowing the code memory to store the digital signal output by the analog-to-digital converter module under test; reading the digital signal from the code memory, and calculating the pre-distortion code of the signal generator based on the read digital signal, so as to improve the signal accuracy generated by the signal generator through the pre-distortion code.
[0014] To achieve the above-mentioned purpose and other related purposes, the third aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method for improving the signal accuracy of an on-chip self-test system signal generator.
[0015] To achieve the above-mentioned purpose and other related purposes, the fourth aspect of the present application provides an electronic terminal, including a memory, a processor and a computer program stored in the memory; the processor executes the computer program to implement the method for improving the signal accuracy of the on-chip self-test system signal generator.
[0016] As described above, the device, method, terminal and medium for improving the signal accuracy of the on-chip self-test system signal generator of the present application have the following beneficial effects:
[0017] The present application realizes self-calibration of the signal generator, so that it can emit high-precision signals. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 Shown is a schematic block diagram of a device for improving the signal accuracy of a signal generator of an on-chip self-test system in an embodiment of the present application.
[0019] Figure 2 Shown is a schematic diagram of a process of obtaining a pre-distortion code in an embodiment of the present application.
[0020] Figure 3 Shown is a schematic diagram of a digital signal histogram in a specific embodiment of the present application.
[0021] Figure 4 Shown is a flow chart of a method for improving the signal accuracy of a signal generator of an on-chip self-test system in one embodiment of the present application.
[0022] Figure 5 Shown is a schematic diagram of the structure of an electronic terminal in one embodiment of the present application. DETAILED DESCRIPTION
[0023] The following describes the embodiments of the present application through specific examples, and those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0024] In the embodiments of the present application, words such as "first" and "second" are used to distinguish the same or similar items with substantially the same functions and effects. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit the difference.
[0025] It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" represent examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0026] In the embodiments of the present application, "at least one" refers to one or more, and "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can represent: a, b, c, ab, ac, bc or abc, where a, b, c can be single or multiple.
[0027] The present application provides a device, method, terminal and medium for improving the signal accuracy of a signal generator of an on-chip self-test system. The device includes a test controller, a digital vector generator, a signal generator and a code memory. The test controller generates a digital input code stream by controlling the digital vector generator, which is then converted by the signal generator into a ramp analog signal with the same gain and different bias, and then the analog-to-digital converter module under test performs analog-to-digital conversion to obtain a digital signal; the test controller calculates the pre-distortion code of the signal generator based on the digital signal to improve the signal accuracy generated by the signal generator through the pre-distortion code. The present application realizes self-calibration of the signal generator so that it can emit high-precision signals.
[0028] Before further describing the present invention in detail, the nouns and terms involved in the embodiments of the present invention are explained. The nouns and terms involved in the embodiments of the present invention are applicable to the following interpretations:
[0029] <1> Integral Nonlinearity (INL): INL is an important performance parameter of analog-to-digital converters (ADCs) that describes the deviation of the ADC's overall transfer function from an ideal straight line.
[0030] <2> Differential Nonlinearity (DNL): DNL is an important performance parameter of analog-to-digital converters (ADCs). It measures the difference between the transition voltage between two adjacent digital output codes of the ADC and the ideal 1 LSB (least significant bit) step.
[0031] Before further describing the present invention in detail, the structure of the on-chip self-test system is described:
[0032] The on-chip self-test system is configured in the analog-to-digital converter, and includes: a test controller, a signal generator, a clock generator, and a digital signal processor;
[0033] The test controller is connected to the signal generator and the clock generator respectively, and controls the external input reference clock signal to be input to the signal generator and the clock generator at the same time, so that the signal generator and the clock generator are synchronized; the clock generator is connected to the analog-to-digital converter module under test, and provides the required clock signal for the analog-to-digital converter module under test; the signal generator generates the signal required by the analog-to-digital converter under test, and outputs it to the analog-to-digital converter module under test, so that the analog-to-digital converter module under test performs analog-to-digital conversion on the signal received from the signal generator and then outputs a digital signal; the digital signal processor is connected to the test controller and the analog-to-digital converter module under test respectively, tests the digital signal output by the analog-to-digital converter module under test, and outputs the test signal result.
[0034] To facilitate understanding of the embodiments of the present application, first Figure 1 Detailed description. Figure 11 is a schematic block diagram of a device for improving the signal accuracy of a signal generator of an on-chip self-test system provided by an embodiment of the present application. Figure 1 As shown, the device for improving the signal accuracy of the on-chip self-test system signal generator is configured in the on-chip self-test system, and the on-chip self-test system is configured in the analog-to-digital converter chip. The device for improving the signal accuracy of the on-chip self-test system signal generator includes:
[0035] Test controller 1, digital vector generator 2, signal generator 3 and code memory 4;
[0036] The test controller 1 is connected to the digital vector generator 2, the signal generator 3 and the code memory 4 respectively;
[0037] The test controller 1 controls the digital vector generator 2 to generate a digital input code stream;
[0038] The signal generator 3 converts the digital input code stream into a ramp wave analog signal with the same gain and different bias, and inputs the ramp wave analog signal into the analog-to-digital converter module under test for analog-to-digital conversion;
[0039] The code memory 4 stores the digital signal output by the analog-to-digital converter module under test;
[0040] The test controller 1 reads a digital signal from the code memory 4 and calculates a pre-distortion code of the signal generator 3 based on the read digital signal, so as to improve the accuracy of the signal generated by the signal generator 3 through the pre-distortion code.
[0041] It should be understood that the division of modules in the embodiments of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional module in each embodiment of the present application may be integrated into a processor, or may exist physically separately, or two or more modules may be integrated into one module. The above-mentioned integrated modules may be implemented in the form of hardware or in the form of software functional modules.
[0042] In one embodiment, the signal generator is a low-precision digital-to-analog converter (DAC).
[0043] In one embodiment, the test controller includes:
[0044] A nonlinear calculation module, connected to the code memory, for calculating the integral nonlinearity and differential nonlinearity of the analog-to-digital converter module under test based on the read digital signal;
[0045] The pre-distortion code acquisition module is connected to the nonlinear calculation module and is used to calculate the integral nonlinearity and differential nonlinearity of the signal generator based on the integral nonlinearity of the analog-to-digital converter module under test by using the least squares method, so as to obtain the pre-distortion code of the signal generator.
[0046] In one embodiment, the ramp analog signal includes: a first ramp analog signal and a second ramp analog signal; the digital signal includes: a first digital signal and a second digital signal;
[0047] The first ramp analog signal is converted into a first digital signal by the analog-to-digital converter module under test; and the second ramp analog signal is converted into a second digital signal by the analog-to-digital converter module under test.
[0048] In a specific embodiment, the analog output signal of the signal generator includes two parts, namely a linear part and a nonlinear part. When the sequence number of the digital input code stream is n, the linear part can be used express, is the linear coefficient, and the nonlinear part can be used express, are the coefficients of each order of cosine wave, and H is the order of the cosine wave to be included in the calculation; when the ordinal number of the digital input code stream is n, the following formula 1 is used to obtain the output analog signal:
[0049] ;(Formula 1);
[0050] The signal generator converts the digital input code stream generated by the digital vector generator into two ramp analog signals. The first ramp analog signal generated by the signal generator contains a gain factor Gain, and the second ramp analog signal generated by the signal generator contains a gain factor Gain and a DC bias code. The gain factor Gain is the same as in the ramp analog signal.
[0051] Furthermore, n is the ordinal number of the digital input code stream generated by the digital vector generator, , N is the number of bits of the signal generator or the analog-to-digital converter module under test, Represents the code value of the nth bit of the code stream generated by the digital vector generator, combined with the first ramp analog signal converted by the signal generator of formula 1 And the second ramp analog signal .
[0052] It can be expressed by the following formula 2 and formula 3:
[0053] (Formula 2)
[0054] ;(Formula 3)
[0055] in, Expressed as a gain factor, Expressed as DC bias code.
[0056] Furthermore, the first ramp analog signal and the second ramp analog signal are used as two inputs of the analog-to-digital converter module under test, respectively. as well as .
[0057] In one embodiment, the nonlinear calculation module includes:
[0058] a transition time calculation unit, configured to obtain a histogram of the first digital signal and the second digital signal based on the first digital signal and the second digital signal, and further obtain transition times of the first digital signal and the second digital signal;
[0059] The nonlinear calculation unit is connected to the transition time calculation unit, and utilizes the characteristic that the transition level of the same analog-to-digital converter module under test is the same, and calculates the integral nonlinearity and differential nonlinearity of the analog-to-digital converter module under test based on the transition time of the first digital signal and the second digital signal through the least squares method according to the integral nonlinearity calculation formula and the differential nonlinearity calculation formula.
[0060] In one embodiment, the nonlinear calculation unit includes:
[0061] The parameter calculation subunit calculates the estimated values of the nonlinear parameter and the bias value based on the transition time of the first digital signal and the second digital signal and the integral nonlinearity calculation formula by using the least square method and the characteristic that the transition level of the same analog-to-digital converter module under test is the same;
[0062] The nonlinear calculation subunit calculates the integral nonlinearity and differential nonlinearity of the measured analog-to-digital converter module based on the calculated nonlinear parameters and the estimated value of the bias value according to the integral nonlinearity calculation formula and the differential nonlinearity calculation formula.
[0063] The following will be combined with the attached Figure 2 Explain the process of calculating the integral nonlinearity and differential nonlinearity of the ADC module under test:
[0064] The first ramp analog signal And the second ramp analog signal The first digital signal and the second digital signal are input into the analog-to-digital converter module under test for analog-to-digital conversion.
[0065] Based on the first digital signal, a histogram of the first digital signal is obtained, and based on the histogram of the first digital signal, a transition time of the first digital signal is obtained. Based on the second digital signal, a histogram of the second digital signal is obtained, and then based on the histogram of the second digital signal, a transition time of the second digital signal is obtained .
[0066] It should be understood that a histogram of a digital signal is a statistical graph such as Figure 3 As shown in Figure 1, it is used to represent the distribution of signal values. In digital signal processing, histograms are often used to analyze the amplitude distribution of signals.
[0067] The transition time can be calculated using the following formula 4 and formula 5:
[0068] ;(Formula 4)
[0069] ;(Formula 5)
[0070] in, , N is the resolution of the analog-to-digital converter module under test, is represented as a histogram count of the first digital signal, Represented as a histogram count of the second digital signal.
[0071] Furthermore, the integral nonlinearity INL(M) of the analog-to-digital converter module under test is calculated as follows:
[0072] ;(Formula 6)
[0073] in, It is represented as the coefficient of each order of cosine wave, and H is represented as the order of cosine wave included in the calculation.
[0074] Furthermore, since the input stimulus of the analog-to-digital converter module under test is a nonlinear signal, its nonlinear part is , if this part can be accurately estimated, the INL(M) of the ADC module under test can also be accurately estimated.
[0075] Furthermore, the transition level of the analog-to-digital converter module under test is , the following formula 7 and formula 8 are used to express the transition level:
[0076] The following formula 7 and formula 8 are used to express the transition level:
[0077] ;(Formula 7)
[0078] ;(Formula 8)
[0079] Furthermore, for the same analog-to-digital converter module under test, the transition level is the same, that is, , and according to formula 6, the following equation is obtained:
[0080] ;
[0081] By moving the items, you can get:
[0082] ;
[0083] ;
[0084] Furthermore, because H is much smaller than , the number of equations is much greater than the number of unknowns, so it is an overdetermined system of equations. Therefore, the least squares method is used to estimate the nonlinear parameters. And the offset value The calculation process of the least squares method is shown in the following formula 9:
[0085] ;(Formula 9)
[0086] Get estimates of nonlinear parameters and an estimate of the bias value .
[0087] Furthermore, the estimated value of the nonlinear parameter and an estimate of the bias value Substituting into formula 6, the integral nonlinearity of the analog-to-digital converter module under test is obtained. The calculation formula of the integral nonlinearity is shown in the following formula 10:
[0088] ;(Formula 10)
[0089] Furthermore, based on the integral nonlinearity of the analog-to-digital converter module under test, the differential nonlinearity of the analog-to-digital converter module under test is obtained. The calculation formula is shown in the following formula 11:
[0090] ;(Formula 11)
[0091] In one embodiment, the pre-distortion code obtaining module includes:
[0092] A gain factor calculation unit, based on the integral nonlinearity of the analog-to-digital converter under test, the digital input code stream and the digital signal, determines an estimated value of the gain factor according to the constructed first ramp analog signal relationship and the second ramp analog signal relationship;
[0093] A predistortion code obtaining unit, which obtains a first integral nonlinearity and a second integral nonlinearity of a signal generator according to an estimated value of the gain factor and an estimated value of the offset value and according to a constructed first ramp wave analog signal relationship and a constructed second ramp wave analog signal relationship;
[0094] The first integral nonlinearity and the second integral nonlinearity of the signal generator are averaged to obtain the integral nonlinearity of the signal generator; the differential nonlinearity of the signal generator is obtained according to the integral nonlinearity of the signal generator; and the integral nonlinearity and the differential nonlinearity of the signal generator are output as the predistortion code of the signal generator.
[0095] The following will combine Figure 2 The process of obtaining the pre-distortion code is explained in detail:
[0096] The output of a signal generator can be considered to consist of two parts: an ideal linear component and a nonlinear component. The ideal linear component reflects the input of the signal generator, and the nonlinear component is caused by the nonlinear characteristics of the signal generator and noise. Since the noise is random and small in magnitude, it can be ignored in the calculation derivation. Because of the presence of nonlinear components, the output of the signal generator has a gain or offset error relative to the ideal value.
[0097] The constructed first ramp analog signal relationship and the second ramp analog signal relationship are shown in the following formula 12 and formula 13:
[0098] ;(Formula 12)
[0099] ;(Formula 13)
[0100] in, Represents the code value of the nth bit of the code stream generated by the digital vector generator, Represented as the first digital signal, Represented as the second digital signal, Indicates the integral nonlinearity of the analog-to-digital converter module under test.
[0101] Furthermore, the gain factor is obtained by the least square method. Estimated value of The calculation process is shown in the following formula 14:
[0102] ;(Formula 14)
[0103] Furthermore, according to the estimated value of the gain factor and an estimate of the bias value , combined with the above-mentioned first ramp wave analog signal relationship (Formula 12) and the second ramp wave analog signal relationship (Formula 13), the first integral nonlinearity and the second integral nonlinearity of the signal generator are calculated. The calculation process of the first integral nonlinearity and the second integral nonlinearity is shown in the following Formulas 15 and 16:
[0104] ;(Formula 15)
[0105] ;(Formula 16)
[0106] in, It is represented as the first integral nonlinearity calculated according to the first digital signal, Expressed as a second integral nonlinearity calculated based on and the second digital signal.
[0107] Furthermore, due to the presence of noise in actual tests, and The results will be slightly different. To improve the accuracy, the average value of the two can be calculated and used as the integral nonlinearity of the final signal generator. The calculation process is as follows:
[0108] ; (Formula 17).
[0109] Furthermore, according to the integral nonlinearity of the signal generator, the differential nonlinearity of the signal generator is obtained, and the calculation process is shown in the following formula 18:
[0110] ; (Formula 18).
[0111] In one embodiment, if Figure 2 As shown, the process of improving the accuracy of the signal generated by the signal generator through the predistortion code specifically includes: adding the predistortion code to the signal generator to improve the accuracy of the signal generated by the signal generator. The specific process is shown in the following formula 19:
[0112] ;(Formula 19)
[0113] in, It represents the signal generated by the signal generator after pre-distortion code compensation. It represents the signal generated by the signal generator before pre-distortion code compensation. Represented as pre-distortion code.
[0114] It should be understood that the accuracy of not only sine waves can be improved by pre-distortion codes, but also ramp waves. The nonlinear characteristics of the measured analog-to-digital converter module are first estimated, and then the nonlinear characteristics of the signal generator are estimated based on the estimated value of the nonlinear characteristics of the measured analog-to-digital converter module, so as to obtain a complete and accurate spectrum characteristic value result. Because the measured analog-to-digital converter module and the signal generator are arranged on the same chip and have the same process, it can be assumed that their respective resolutions are the same.
[0115] In one embodiment, if Figure 2 As shown in FIG. 1 , the DAC module under test is tested after adding the pre-distortion code. In this way, the spectrum characteristics of the DAC module under test can be accurately measured.
[0116] Similar to the above embodiment, the present invention also provides a method for improving the signal accuracy of a signal generator of an on-chip self-test system. Figure 4 A flow chart of a method for improving the signal accuracy of an on-chip self-test system signal generator in an embodiment of the present invention is shown. The method for improving the signal accuracy of an on-chip self-test system signal generator in this embodiment is applied to a device for improving the signal accuracy of an on-chip self-test system signal generator, the device being configured in an on-chip self-test system, the device comprising: a digital vector generator, a signal generator and a code memory; the on-chip self-test system is configured in an analog-to-digital converter chip. The method for improving the signal accuracy of an on-chip self-test system signal generator in this embodiment mainly comprises the following steps:
[0117] Step S41: controlling the digital vector generator to generate a digital input code stream;
[0118] Step S42: instructing the signal generator to convert the digital input code stream into a ramp wave analog signal with the same gain and different offset, and inputting the ramp wave analog signal into the analog-to-digital converter module under test for analog-to-digital conversion;
[0119] Step S43: enabling the code memory to store the digital signal output by the analog-to-digital converter module under test;
[0120] Step S44: reading a digital signal from the code memory, and calculating a pre-distortion code of the signal generator based on the read digital signal, so as to improve the accuracy of the signal generated by the signal generator through the pre-distortion code.
[0121] It should be understood that the specific process of each of the above steps has been described in detail in the above device embodiment, and for the sake of brevity, it will not be repeated here.
[0122] In one embodiment, the pre-distortion code of the signal generator is calculated based on the read digital signal, including: calculating the integral nonlinearity and differential nonlinearity of the analog-to-digital converter module under test based on the read digital signal; and calculating the integral nonlinearity and differential nonlinearity of the signal generator using the least squares method based on the integral nonlinearity of the analog-to-digital converter module under test, thereby obtaining the pre-distortion code of the signal generator.
[0123] In one embodiment, the ramp analog signal includes: a first ramp analog signal and a second ramp analog signal; the digital signal includes: a first digital signal and a second digital signal; wherein the first ramp analog signal is converted into a first digital signal by the analog-to-digital converter module under test; and the second ramp analog signal is converted into a second digital signal by the analog-to-digital converter module under test.
[0124] In one embodiment, the integral nonlinearity and differential nonlinearity of the analog-to-digital converter module under test are calculated based on the read digital signal, including: based on the first digital signal and the second digital signal, obtaining the histogram of the first digital signal and the second digital signal, and then obtaining the transition time of the first digital signal and the second digital signal; utilizing the characteristic that the same analog-to-digital converter module under test has the same transition level, and calculating the integral nonlinearity and differential nonlinearity of the analog-to-digital converter module under test based on the transition time of the first digital signal and the second digital signal according to the integral nonlinearity calculation formula and the differential nonlinearity calculation formula through the least squares method.
[0125] In one embodiment, the characteristic that the same analog-to-digital converter module under test has the same transition level is utilized, and based on the transition time of the first digital signal and the second digital signal, the integral nonlinearity and differential nonlinearity of the analog-to-digital converter module under test are calculated according to the integral nonlinearity calculation formula and the differential nonlinearity calculation formula through the least squares method, including: utilizing the characteristic that the same analog-to-digital converter module under test has the same transition level, and based on the transition time of the first digital signal and the second digital signal, the least squares method is used to calculate the estimated values of the nonlinear parameters and the bias value according to the integral nonlinearity calculation formula; based on the calculated nonlinear parameters and the estimated values of the bias value, according to the integral nonlinearity calculation formula and the differential nonlinearity calculation formula, the integral nonlinearity and differential nonlinearity of the analog-to-digital converter module under test are calculated.
[0126] In one embodiment, based on the integral nonlinearity of the analog-to-digital converter module under test, the integral nonlinearity and differential nonlinearity of the signal generator are calculated by using the least square method to obtain the pre-distortion code of the signal generator, including: determining an estimated value of a gain factor according to a constructed first ramp analog signal relationship and a second ramp analog signal relationship based on the integral nonlinearity of the analog-to-digital converter under test, the digital input code stream and the digital signal; obtaining a first integral nonlinearity and a second integral nonlinearity of the signal generator according to the constructed first ramp analog signal relationship and the second ramp analog signal relationship according to the estimated value of the gain factor and the estimated value of the offset value; averaging the first integral nonlinearity and the second integral nonlinearity of the signal generator to obtain the integral nonlinearity of the signal generator; obtaining the differential nonlinearity of the signal generator according to the integral nonlinearity of the signal generator; and outputting the integral nonlinearity and the differential nonlinearity of the signal generator as the pre-distortion code of the signal generator.
[0127] In one embodiment, the process of improving the accuracy of the signal generated by the signal generator by using the pre-distortion code specifically includes: adding the pre-distortion code to the signal generator to improve the accuracy of the signal generated by the signal generator.
[0128] Figure 5 is a schematic block diagram of an electronic terminal provided in an embodiment of the present application. Figure 5 As shown, the electronic terminal includes: at least one processor 501, a memory 502, at least one network interface 503 and a user interface 505. The various components in the device are coupled together through a bus system 504. It can be understood that the bus system 504 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 504 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, Figure 5 In the specification, various buses are labeled as bus systems.
[0129] The user interface 505 may include a display, a keyboard, a mouse, a trackball, a click gun, keys, buttons, a touch pad or a touch screen.
[0130] It is understood that the memory 502 can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM). The memory described in the embodiments of the present invention is intended to include but is not limited to these and any other suitable categories of memory.
[0131] The memory 502 in the embodiment of the present invention is used to store various categories of data to support the operation of the electronic terminal 500. Examples of these data include: any executable program for operating on the electronic terminal 500, such as an operating system 5021 and an application 5022; the operating system 5021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks. The application 5022 can include various applications, such as a media player (Media Player), a browser (Browser), etc., for implementing various application services. The method for improving the signal accuracy of the on-chip self-test system signal generator provided in the embodiment of the present invention can be included in the application 5022.
[0132] The method disclosed in the above embodiment of the present invention can be applied to the processor 501, or implemented by the processor 501. The processor 501 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 501 or the instruction in the form of software. The above processor 501 may be a general processor, a digital signal processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The processor 501 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiment of the present invention. The general processor 501 may be a microprocessor or any conventional processor, etc. In combination with the steps of the accessory optimization method provided in the embodiment of the present invention, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium, which is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
[0133] In an exemplary embodiment, the electronic terminal 500 may be implemented by one or more application specific integrated circuits (ASIC), DSP, programmable logic device (PLD), complex programmable logic device (CPLD) to execute the aforementioned method.
[0134] According to the method provided in the embodiment of the present application, the present application also provides a computer program product, which includes: a computer program code, when the computer program code is run on a computer, the computer executes Figure 4 The method for improving the signal accuracy of the signal generator of the on-chip self-test system in the illustrated embodiment.
[0135] According to the method provided in the embodiment of the present application, the present application also provides a computer-readable storage medium, which stores a program code, and when the program code is run on a computer, the computer executes Figure 4 The method for improving the signal accuracy of the signal generator of the on-chip self-test system in the illustrated embodiment.
[0136] The terms "component", "module", "system", etc. used in this specification are used to represent computer-related entities, hardware, firmware, a combination of hardware and software, software, or software in execution. For example, a component can be, but is not limited to, a process, a processor, an object, an executable file, an execution thread, a program and / or a computer running on a processor. By way of illustration, both applications and computing devices running on a computing device can be components. One or more components may reside in a process and / or an execution thread, and a component may be located on a computer and / or distributed between two or more computers. In addition, these components may be executed from various computer-readable media having various data structures stored thereon. Components may, for example, communicate through local and / or remote processes according to signals having one or more data packets (e.g., data from two components interacting with another component between a local system, a distributed system and / or a network, such as the Internet interacting with other systems through signals).
[0137] Those of ordinary skill in the art will appreciate that the various illustrative logical blocks and steps described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0138] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0139] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0140] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0141] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0142] In the above embodiments, the functions of each functional unit can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions (programs). When the computer program instructions (programs) are loaded and executed on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media integrated. Available media may be magnetic media (e.g., floppy disks, hard disks, tapes), optical media (e.g., high-density digital video discs (DVDs), or semiconductor media (e.g., solid state disks (SSDs)).
[0143] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program codes.
[0144] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0145] In summary, the present application provides a device, method, terminal and medium for improving the signal accuracy of a signal generator of an on-chip self-test system. The device includes a test controller, a digital vector generator, a signal generator and a code memory. The test controller generates a digital input code stream by controlling the digital vector generator, which is then converted by the signal generator into a ramp analog signal with the same gain and different bias, and then the analog-to-digital converter module under test performs analog-to-digital conversion to obtain a digital signal; the test controller calculates the pre-distortion code of the signal generator based on the digital signal to improve the signal accuracy generated by the signal generator through the pre-distortion code. The present application realizes self-calibration of the signal generator, so that it can emit a high-precision signal. Therefore, the present application effectively overcomes the various shortcomings in the prior art and has a high industrial utilization value.
[0146] The above embodiments are merely illustrative of the principles and effects of the present application and are not intended to limit the present application. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed in the present application shall still be covered by the claims of the present application.
Claims
1. A device for improving the signal accuracy of a signal generator of an on-chip self-test system, It is characterized in that The device is configured in an on-chip self-test system, wherein the on-chip self-test system is configured in an analog-to-digital converter chip, and the device comprises: Test controller, digital vector generator, signal generator and code memory; The test controller is connected to the digital vector generator, the signal generator and the code memory respectively; The test controller controls the digital vector generator to generate a digital input code stream; The signal generator converts the digital input code stream into a ramp wave analog signal with the same gain and different bias, and inputs the ramp wave analog signal into the analog-to-digital converter module under test for analog-to-digital conversion; The code memory stores the digital signal output by the analog-to-digital converter module under test; The test controller reads a digital signal from the code memory, and calculates a predistortion code of the signal generator based on the read digital signal, so as to improve the signal accuracy required by the analog-to-digital converter module under test generated by the signal generator through the predistortion code; Wherein, the test controller comprises: A nonlinear calculation module, connected to the code memory, for calculating the integral nonlinearity and differential nonlinearity of the analog-to-digital converter module under test based on the read digital signal; The pre-distortion code acquisition module is connected to the nonlinear calculation module and is used to calculate the integral nonlinearity and differential nonlinearity of the signal generator based on the integral nonlinearity of the analog-to-digital converter module under test by using the least squares method, so as to obtain the pre-distortion code of the signal generator.
2. The device for improving the signal accuracy of a signal generator of an on-chip self-test system according to claim 1, It is characterized in that The ramp analog signal includes: a first ramp analog signal and a second ramp analog signal; the digital signal includes: a first digital signal and a second digital signal; The first ramp analog signal is converted into a first digital signal by the analog-to-digital converter module under test; and the second ramp analog signal is converted into a second digital signal by the analog-to-digital converter module under test.
3. The device for improving the signal accuracy of a signal generator of an on-chip self-test system according to claim 2, It is characterized in that The nonlinear calculation module comprises: a transition time calculation unit, configured to obtain a histogram of the first digital signal and the second digital signal based on the first digital signal and the second digital signal, and further obtain transition times of the first digital signal and the second digital signal; A nonlinear calculation unit is connected to the transition time calculation unit, and is used to utilize the characteristic that the same transition level of the same measured analog-to-digital converter module is the same, and through the least squares method, based on the transition time of the first digital signal and the second digital signal, according to the integral nonlinearity calculation formula and the differential nonlinearity calculation formula, calculate the integral nonlinearity and differential nonlinearity of the measured analog-to-digital converter module.
4. The device for improving the signal accuracy of a signal generator of an on-chip self-test system according to claim 3, It is characterized in that The nonlinear calculation unit comprises: A parameter calculation subunit, used to calculate the estimated value of the nonlinear parameter and the offset value based on the transition time of the first digital signal and the second digital signal and the integral nonlinearity calculation formula by using the characteristic that the transition level of the same analog-to-digital converter module under test is the same, through the least square method; The nonlinear calculation subunit is used to calculate the integral nonlinearity and differential nonlinearity of the measured analog-to-digital converter module based on the calculated nonlinear parameters and the estimated value of the bias value according to the integral nonlinearity calculation formula and the differential nonlinearity calculation formula.
5. The device for improving the signal accuracy of a signal generator of an on-chip self-test system according to claim 4, It is characterized in that The pre-distortion code acquisition module comprises: A gain factor calculation unit, configured to determine an estimated value of the gain factor based on the integral nonlinearity of the analog-to-digital converter under test, the digital input code stream and the digital signal, according to the constructed first ramp analog signal relationship and the second ramp analog signal relationship; A predistortion code obtaining unit, configured to obtain a first integral nonlinearity and a second integral nonlinearity of a signal generator according to an estimated value of the gain factor and an estimated value of the offset value, and according to a constructed first ramp wave analog signal relationship and a constructed second ramp wave analog signal relationship; The first integral nonlinearity and the second integral nonlinearity of the signal generator are averaged to obtain the integral nonlinearity of the signal generator; the differential nonlinearity of the signal generator is obtained according to the integral nonlinearity of the signal generator; and the integral nonlinearity and the differential nonlinearity of the signal generator are output as the predistortion code of the signal generator.
6. The device for improving the signal accuracy of a signal generator of an on-chip self-test system according to claim 1, It is characterized in that The process of improving the accuracy of the signal generated by the signal generator by using the predistortion code specifically includes: adding the predistortion code to the signal generator to improve the accuracy of the signal generated by the signal generator.
7. A method for improving the signal accuracy of a signal generator of an on-chip self-test system, It is characterized in that A device for improving the signal accuracy of a signal generator of an on-chip self-test system, the device being configured in the on-chip self-test system, the device comprising: a digital vector generator, a signal generator and a code memory; the on-chip self-test system being configured in an analog-to-digital converter chip, the method comprising: Controlling the digital vector generator to generate a digital input code stream; Instruct the signal generator to convert the digital input code stream into a ramp wave analog signal with the same gain and different bias, and input the ramp wave analog signal into the analog-to-digital converter module under test for analog-to-digital conversion; The code memory stores the digital signal output by the analog-to-digital converter module under test; Reading a digital signal from the code memory, and calculating a predistortion code of the signal generator based on the read digital signal, so as to improve the signal accuracy required by the analog-to-digital converter module under test generated by the signal generator through the predistortion code; Wherein, calculating the predistortion code of the signal generator based on the read digital signal includes: Based on the read digital signal, calculating the integral nonlinearity and the differential nonlinearity of the analog-to-digital converter module under test; Based on the integral nonlinearity of the analog-to-digital converter module under test, the integral nonlinearity and differential nonlinearity of the signal generator are calculated using the least square method, thereby obtaining the predistortion code of the signal generator.
8. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the method of claim 7 is implemented.
9. An electronic terminal comprising a memory, a processor and a computer program stored in the memory, It is characterized in that The processor executes the computer program to implement the method of claim 7.
Citation Information
Patent Citations
DAC pre-distortion compensation method for ADC testing
CN110350916A
ADC-DAC combined on-chip self-test system and method
CN115051709A
Generation of an Analog Gaussian Noise Signal Having Predetermined Characteristics
US20090121749A1
Method and apparatus for testing digital to analog and analog to digital converters
US5659312A
