Neural network-based global error calibration method for high-speed and high-precision analog-to-digital converter
The global nonlinear error model and calibration algorithm are constructed through deep learning neural networks, which solves the error calibration problem of high-speed analog-to-digital converters at high sampling rates and achieves higher error correction capabilities and improved accuracy.
Patent Information
- Application Number
- CN202410890376.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-04
- Publication Date
- 2024-10-01
AI Technical Summary
High-speed and high-precision analog-to-digital converters face the effects of gain, offset and mismatch errors, clock, reference voltage nonlinear errors and temperature changes at high sampling rates, resulting in limited effective accuracy. Existing digital calibration methods have limitations in error correction. There are deficiencies.
Use neural network technology based on deep learning to construct a global nonlinear error model and calibration algorithm model. Through the construction of a global error data set and a calibration data set, train the deep learning neural network to obtain the global nonlinear error model and inverse function to achieve Full-domain error calibration of high-speed analog-to-digital converters.
The error calibration capability of the high-speed analog-to-digital converter is improved, and the auxiliary signal can be used for calibration when the digital code is missing. This enhances the error correction capability and improves the effective accuracy and signal-to-noise ratio of the ADC.
Smart Images

Figure CN118740152A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a high-speed and high-precision analog-to-digital converter global error calibration method, belonging to the technical field of integrated circuits. Background Art
[0002] As a combination of chip technology and digital technology, analog-to-digital converter (ADC) converts continuous analog signals in our real life, such as light radiation signals, thermal radiation signals, electrical signals, pressure signals, wireless spectrum signals and other physical signals, into discrete digital signals that can be processed by computers through sampling, quantization and digital processing. It is a conversion bridge connecting analog signals in daily life and digital signals in electronic devices. With the rapid development of application fields such as broadband wireless communication, software radio and digital radar, the speed and accuracy requirements of ADC are constantly increasing. The new generation of complete systems require high-speed analog-to-digital converters to reach 14-16 bits and above 1GSPS, and such high-speed analog-to-digital converters must have good linearity and low power consumption.
[0003] At present, the mainstream design method of high-speed and high-precision pipeline ADC chips is to reduce the gain bandwidth requirements of the op amp in the switched capacitor technology, and then use digital calibration technology to compensate for various errors, and use advanced nanotechnology for processing to achieve a high-speed analog-to-digital converter with relatively low power consumption. In the above design method, the key to ensuring the performance of the ADC lies in whether the error calibration algorithm model used in the digital calibration technology can accurately reflect the various linear and nonlinear errors caused by the reduced performance of the op amp in the ADC. Usually, the errors faced by high-speed analog-to-digital converters are mainly gain, offset and mismatch errors. As the sampling speed of ADCs above 14 bits exceeds 1GSPS, this type of ADC is also faced with increasingly serious clock, reference voltage nonlinear errors and temperature changes. In addition, the above nonlinear errors usually affect each other, which seriously limits the effective accuracy of this type of ADC.
[0004] Neural network technology based on deep learning can realize complex models with high precision. However, various existing ADC calibration schemes based on neural networks mostly use neural networks to calibrate single errors such as ADC gain, sampling, op amp characteristics and mismatch. There are few reports on the application of neural network algorithms in high-precision ADC calibration at sampling rates above GHz. Summary of the invention
[0005] The present invention proposes a global error calibration method for a high-speed pipeline analog-to-digital converter based on a neural network. The deep learning technology is used to train a global error model of all nonlinear errors in the high-speed analog-to-digital converter to perform error calibration.
[0006] The invention provides a global error calibration method for a high-speed pipeline analog-to-digital converter, comprising the construction of a global error data set and a global calibration data set, the training of a global nonlinear error model F(X), and the global nonlinear error calibration algorithm model F -1 (X) training;
[0007] The method for constructing the global error data set and the global calibration data set is: Ain The ADC chip to be tested and the ideal ADC module are inputted respectively. The ADC chip to be tested converts the calibration analog signal V into the calibration analog signal V according to the sampling clock signal Ckin. Ain The processing conversion obtains the digital code Dout outputted and synchronized by each internal sub-level circuit in sequence, and the ideal ADC module is based on the calibration analog signal V Ain The corresponding ideal digital code Din is obtained; the clock jitter data Dckjit and the clock duty cycle data Dckpw of each chip status monitoring signal of the ADC chip to be tested and the sampling clock signal Ckin are combined and output, and the auxiliary signal digital code Dax is obtained through arrangement processing; the ideal digital code Din and the auxiliary signal digital code Dax are combined into a global error data set Derr, and the digital code Dout and the auxiliary signal digital code Dax are combined into a global calibration data set Dcal;
[0008] The training method of the global nonlinear error model F(X) is as follows: using the global error data set Derr as the input data of the error model, using the digital code Dout as the expected output data of the error model, using a deep learning neural network for offline training, and obtaining the global nonlinear error model F(X) of the chip to be tested;
[0009] The global nonlinear error calibration algorithm model F -1 The training method of (X) is as follows: on the basis of obtaining the global nonlinear error model F(X), the inverse function of the global nonlinear error model F(X) is trained, the global calibration data set Dcal is used as input data, the ideal digital code Din is used as the expected output data, and offline training is still performed based on deep learning technology to obtain the global nonlinear error calibration algorithm model F -1 (X);
[0010] Finally, the global calibration data set Dcal output by the normal conversion processing of the ADC chip under test is compared with the trained global nonlinear error calibration algorithm model F -1 (X) to obtain the calibrated high-precision conversion data Dout_cal.
[0011] Specifically, each chip status monitoring signal of the ADC chip to be tested includes: temperature data Dtem, power data Dvdv, power current data Dvdi, reference voltage data Dvrv, and reference current data Dvri.
[0012] The system for constructing the global error data set and the global calibration data set includes: the ADC chip to be tested converts the calibration analog signal V into a calibration analog signal V according to the sampling clock signal Ckin. Ain The digital signals output by each sub-circuit in the internal conversion process are first passed through an ADC delay synchronization module to obtain the intermediate conversion data. The ideal ADC module is based on the calibration analog signal V Ain The corresponding ideal digital code is obtained, and the intermediate conversion data and the ideal digital code are stored in a first memory according to a first-in first-out principle;
[0013] The sampling clock signal Ckin is passed through a clock characteristic evaluation and quantization module to extract clock jitter data Dckjit and clock duty cycle data Dckpw; the transient value of each chip status monitoring signal of the ADC chip to be tested is transmitted to a low-speed high-precision ADC module in real time to be converted into a digital signal, and these digital signals and the clock jitter data Dckjit and clock duty cycle data Dckpw are stored in the second memory as monitoring auxiliary signals according to the first-in first-out principle;
[0014] The data merging and splicing module reads out the ideal digital code Din and the digital code Dout from the first memory; the data merging and splicing module reads out the auxiliary signal digital code Dax arranged in sequence from the second memory; the data merging and splicing module splices Din and Dax into a global error data set Derr, and splices Dout and Dax into a global calibration data set Dcal.
[0015] The global error data set Derr and the global calibration data set Dcal are both processed in the form of a matrix; the output and state of the ADC chip under all possible working conditions must be sampled, and all state combinations of all working conditions require full traversal coverage sampling.
[0016] Specifically, the matrix data of the global calibration data set Dcal is composed of the ideal digital code Din, temperature data Dtem, power supply voltage data Dvdv, power supply current data Dvdi, reference voltage data Dvrv, reference current data Dvri, clock jitter data Dckjit, and clock duty cycle data Dckpw; the matrix data of the global error data set Derr is composed of the digital code Dout, the temperature data Dtem of the chip to be tested, the power supply voltage data Dvdv, the power supply current data Dvdi, the reference voltage data Dvrv, the reference current data Dvri, the clock jitter data Dckjit, and the clock duty cycle data Dckpw.
[0017] The data merging and splicing module includes: a high-speed data equivalent delay module, a temperature interpolation function module, a reference voltage interpolation function module, a reference current interpolation function module, a power supply voltage interpolation function module, a power supply current interpolation function module, a clock jitter interpolation function module, a clock duty cycle interpolation function module, and a matrix construction module;
[0018] The ideal digital code Din and the digital code Dout are simultaneously input into the high-speed data equivalent delay module, and after delay compensation, the synchronous ideal digital code Dinh and the synchronous digital code Douth are obtained, which enter the first conversion data input port and the second conversion data input port of the matrix construction module respectively;
[0019] The temperature data Dtem passes through a temperature interpolation function module and a delay compensation module in sequence to obtain high-speed temperature data Dtemh, which enters the first auxiliary data input port of the matrix construction module;
[0020] The reference voltage data Dvrv passes through a reference voltage interpolation function module and a delay compensation module in sequence to obtain high-speed reference voltage data Dvrvh, and enters the second auxiliary data input port of the matrix construction module;
[0021] The reference current data Dvri passes through a reference current interpolation function module and a delay compensation module in sequence to obtain high-speed reference current data Dvrih, and enters the third auxiliary data input port of the matrix construction module;
[0022] The power supply voltage data Dvdv passes through a power supply voltage interpolation function module and a delay compensation module in sequence to obtain high-speed power supply voltage data Dvdvh, and enters the fourth auxiliary data input port of the matrix construction module;
[0023] The power supply current data Dvdi passes through the power supply current interpolation function module and a delay compensation module in sequence to obtain high-speed power supply current data Dvdih, and enters the fifth auxiliary data input port of the matrix construction module;
[0024] The clock jitter data Dckjit passes through a clock jitter interpolation function module and a delay compensation module in sequence to obtain high-speed clock jitter data Dckjith, and enters the sixth auxiliary data input port of the matrix construction module;
[0025] The clock duty cycle data Dckpw passes through a clock jitter interpolation function module and a delay compensation module in sequence to obtain high-speed clock duty cycle data Dckpwh, and enters the seventh auxiliary data input port of the matrix construction module;
[0026] The matrix construction module concatenates the input data into a matrix to obtain a global error dataset Derr and a global calibration dataset Dcal.
[0027] The synchronous ideal digital code Dinh and the synchronous digital code Douth are high-speed data signals with the same rate as the ideal digital code Din and the digital code Dout; the high-speed temperature data Dtemh, the high-speed reference voltage data Dvrvh, the high-speed reference current data Dvrih, the high-speed power supply voltage data Dvdvh, the high-speed power supply current data Dvdih, the high-speed clock jitter data Dckjith, and the high-speed clock duty cycle data Dckpwh are all data with the same rate as the synchronous ideal digital code Dinh and the synchronous digital code Douth, and are controlled by the same synchronous clock.
[0028] The advantages of the present invention are: various existing digital calibration schemes usually use digital code Dout to enter the calibration algorithm model F -1 (X) Then the output calibration data Dout_cal is obtained. In this type of solution, once the digital code Dout has a missing code, Dout_cal cannot completely calibrate all errors. The present invention solves the problem that the error caused by the missing code of the digital code Dout with a major error in the existing digital calibration method is difficult to correct by supplementing the auxiliary signal digital code Dax; the auxiliary signal digital code Dax has an indirect nonlinear relationship with the digital code Dout, and even if the digital code Dout has a missing code, it can still be calibrated by Dax, thereby achieving a better error calibration capability. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 The present invention provides a calibration process for the global error calibration method of the high-speed analog-to-digital converter.
[0030] Figure 2 This is a data collection and synchronous merging and splicing solution for the global error data set of the present invention.
[0031] Figure 3 A scheme for constructing the global error dataset Derr and the calibration dataset Dcal of the present invention.
[0032] Figure 4 It is a block diagram of the data merging and splicing module of the present invention.
[0033] Figure 5 This is a schematic diagram of a two-layer residual learning module that uses a CNN network to train an error model in the present invention.
[0034] Figure 6 This is a flow chart of the present invention using a CNN network to perform error model training.
[0035] Figure 7 The invention is an embodiment of a global error calibration method for a high-speed analog-to-digital converter.
[0036] Figure 8The following are the test results of a 14-bit 1GSPS ADC circuit without calibration.
[0037] Fig. 9 This is the test result after adopting the global error calibration method of the present invention. DETAILED DESCRIPTION
[0038] The present invention is further described in detail below with reference to the accompanying drawings and examples.
[0039] The present invention adopts deep learning and neural network technology to carry out the global nonlinear error calibration of the high-speed analog-to-digital converter. First, it is necessary to obtain the global nonlinear error model of the high-speed analog-to-digital converter, and then obtain the global nonlinear error calibration algorithm using a neural network based on the error model. Finally, the global nonlinear error calibration algorithm is used to calibrate all nonlinear errors in the high-speed analog-to-digital converter.
[0040] The process of the calibration method of the present invention is as follows Figure 1 As shown, first calibrate the analog signal V Ain The ADC chip to be tested and the ideal ADC are input to construct the global error data set and the global calibration data set. The construction method is as follows: the ADC chip to be tested converts the calibration analog signal V Ain The processing conversion obtains the digital code Dout outputted and synchronized by each internal sub-level circuit in sequence, and the ideal ADC module is based on the calibration analog signal V Ain The corresponding ideal digital code Din is obtained; the clock jitter data Dckjit and the clock duty cycle data Dckpw of each chip status monitoring signal and the sampling clock signal Ckin of the ADC chip to be tested are combined and outputted, and the auxiliary signal digital code Dax is obtained through arrangement processing; the ideal digital code Din and the auxiliary signal digital code Dax are combined into a global error data set Derr, and the digital code Dout and the auxiliary signal digital code Dax are combined into a global calibration data set Dcal.
[0041] Then, the global error data set Derr is used as the input data of the error model, and the digital code Dout converted by the ADC chip to be tested is used as the expected output data of the global error model. Offline training is performed based on deep learning technology to obtain the global nonlinear error model F(X) of the ADC chip to be tested. The global nonlinear error model F(X) is implemented by a deep learning neural network. The deep learning neural network error model contains two major errors. One part is the error solidified after the chip is processed offline, and the other part is the error caused by PVT fluctuations and external interference when the chip is working normally.
[0042] After obtaining the global nonlinear error model F(X) of the ADC chip to be tested, the next step is to perform the inverse function F of the global nonlinear error model F(X)-1 (X), the ideal output data is Do, then the output with all nonlinear errors is Do*F(X), and the output after calibration is Do*F(X)*F -1 (X) = Do. -1 (X) is used as the error calibration algorithm model for training. The global calibration data set Dcal is used as the input data of the calibration algorithm model to calibrate the simulated signal V Ain The corresponding ideal digital code Din is used as the expected output data of the calibration algorithm model, and offline training is still performed based on deep learning technology to obtain the global nonlinear error calibration algorithm model F -1 (X). Global nonlinear error calibration algorithm model F -1 (X) is also implemented by deep learning neural network.
[0043] Finally, the global calibration data set Dcal of the normal conversion output of the ADC chip under test and the global nonlinear error calibration algorithm model F -1 (X) to obtain the calibrated high-precision conversion data Dout_cal.
[0044] In the above calibration method, the first step of using deep learning technology to obtain a high-precision ADC data error model is to construct a training data set that can accurately reflect the actual state of the ADC chip to be tested, and then the global nonlinear error model of the ADC and the global nonlinear error calibration algorithm of the ADC can be trained based on the data set and the deep neural network. The global error data set containing the ADC global nonlinear error source provided by the present invention is constructed by: the calibration analog signal V Ain Input into the high-speed and high-precision pipeline ADC chip to be tested, and obtain the digital code Dout outputted and synchronized by each sub-stage circuit of the ADC to be tested; at the same time, obtain V Ain The corresponding ideal digital code Din, as well as the chip status monitoring signals such as the power supply voltage / current, reference voltage / current, clock and on-chip temperature of the ADC chip, are converted into the auxiliary signal digital code Dax, which are combined by Din, Dout and Dax to form the global error data set Derr (combined by Din and Dax) used for global error model training and the global calibration data set Dcal (combined by Dout and Dax) used for calibration algorithm model training.
[0045] Figure 2 This is an implementation scheme for data collection and synchronous merging and splicing of the global error data set proposed by the present invention. The scheme includes an ADC chip to be tested, a temperature sensor module, an ADC power supply module, a clock characteristic evaluation and quantization module, a low-speed high-precision ADC module, an ideal ADC module, an ADC delay synchronization module, a first memory, a second memory and a data merging and splicing module.
[0046] Among them, the calibration analog signal V Ain The ADC chip to be tested converts the calibration analog signal V to the ideal ADC module according to the sampling clock signal Ckin. Ain The digital signals outputted by each internal sub-circuit are processed and converted, and then the ADC intermediate conversion data Do1 is obtained through the ADC delay synchronization module. The clock characteristic evaluation and quantization module outputs the clock jitter data Dckjit and the clock duty cycle data Dckpw. The ideal ADC module is based on the calibration analog signal V Ain The corresponding ideal digital code Din1 is obtained.
[0047] On the one hand, the ADC power supply module provides reference voltage and power supply voltage to the ADC chip to be tested, and also transmits the transient values of the power supply voltage, power supply current, reference voltage and reference current used by the ADC chip to be tested to the low-speed high-precision ADC module in real time; the temperature sensor module monitors the transient changes of the temperature of the ADC chip to be tested in real time, and transmits them to the low-speed high-precision ADC module in real time. The low-speed high-precision ADC module converts the transient values of the power supply voltage, power supply current, reference voltage and reference current used by the chip to be tested, the transient changes of the temperature of the chip to be tested, and other analog voltage signal quantities to obtain various data-based chip status monitoring signals of the chip to be tested, including the temperature data Dtem of the chip to be tested, the power supply voltage data Dvdv, the power supply current data Dvdi, the reference voltage data Dvrv, and the reference current data Dvri.
[0048] The chip status monitoring signal, clock jitter data Dckjit, and clock duty cycle data Dckpw will be stored in the second memory according to the first-in first-out principle. The ADC intermediate conversion data Do1 and the ideal digital code Din1 will also be stored in the first memory according to the first-in first-out principle.
[0049] The data merging and splicing module reads data from the first memory to obtain the digital code Dout and the ideal digital code Din. The second memory merges and outputs the temperature data Dtem, the power supply voltage data Dvdv, the power supply current data Dvdi, the reference voltage data Dvrv, the reference current data Dvri, the clock jitter data Dckjit, and the clock duty cycle data Dckpw, and obtains the auxiliary signal digital code Dax after arrangement processing. The data merging and splicing module reads the auxiliary signal digital code Dax from the second memory. The data merging and splicing module splices the digital code Dout, the ideal digital code Din, and the auxiliary signal digital code Dax read from the first memory and the second memory to obtain the global error data set Derr (combined by Din and Dax) for global error model training and the global calibration data set Dcal (combined by Dout and Dax) for calibration algorithm model training.
[0050] The global error data set Derr and the global calibration data set Dcal described in the present invention are both processed in the form of a matrix, and the information contained in the matrix includes: chip temperature, power supply current, power supply voltage, reference voltage, reference current and clock characteristics and other state quantities related to the quantized output of each sub-level circuit of the pipeline. Obviously, the more information the matrix contains, the higher the accuracy of the trained model, but the time for model training and the complexity of the calibration algorithm are also higher. At the same time, the data set of multiple types of information combination must also consider the problem of data set balance. In the specific implementation, the weight balance method is used to set and combine many variables in Dax, and the weight value is determined according to the characteristics of the measured data.
[0051] In order to cover all ADC errors, the data set must sample the output and state of the ADC under all possible operating conditions. To this end, all state combinations of conditions that can affect Dout, such as temperature, power supply current, power supply voltage, reference voltage, and clock, need to be fully traversed and covered.
[0052] The matrix data of the global error data set Derr and the global calibration data set Dcal of the embodiment of the present invention are as follows: Figure 3 As shown. The matrix data of the global calibration data set Dcal is composed of the ideal digital code Din, the temperature data of the chip to be tested Dtem, the power supply voltage data Dvdv, the power supply current data Dvdi, the reference voltage data Dvrv, the reference current data Dvri, the clock jitter data Dckjit, and the clock duty cycle data Dckpw. The matrix data of the global error data set Derr is composed of the digital code Dout, the temperature data of the chip to be tested Dtem, the power supply voltage data Dvdv, the power supply current data Dvdi, the reference voltage data Dvrv, the reference current data Dvri, the clock jitter data Dckjit, and the clock duty cycle data Dckpw.
[0053] The following takes the 14-bit 1GSPS pipeline ADC error model training as an example to illustrate the present invention. Figure 3 The implementation scheme for data collection and synchronous merging and stitching of the global error dataset and the global calibration dataset shown is explained.
[0054] First, the ideal digital code Din of the 14-bit ADC can be obtained as 14-bit data; assuming that the 14-bit 1GSPS pipeline ADC to be tested is a 5-stage pipeline circuit structure of 4.5 bits + 2.5 bits + 2.5 bits + 2.5 bits + 4 bits, then Do1 can be obtained as 18-bit high-speed change data; assuming that the low-speed high-precision ADC uses 24-bit accuracy, the chip temperature data Dtem, power supply voltage data Dvdv, power supply current data Dvdi, reference voltage data Dvrv and reference current data Dvri to be tested can be obtained as 24-bit data, and the 6 types of data are 144 bits in total; assuming that the clock jitter data Dckjit and the clock duty cycle data Dckpw are both 24-bit data, then the 2 types of clock characteristic data are 48-bit data; the auxiliary signal digital code Dax can be obtained as 192-bit data. Therefore, the global calibration data set Dcal of the 14-bit ADC to be tested can be obtained as 206-bit data, and the global error data set Derr can be obtained as 210-bit data.
[0055] Since the chip status auxiliary signal digital code Dax is usually a slow variable, and the digital code Dout output by each sub-level circuit is a high-speed variable, data synchronization and splicing is a key link in data acquisition. out The clock frequency is higher than 1GHz, and the chip status auxiliary signal digital code D ax is a relatively slow variable, so before completing the construction of the calibration neural network input matrix, the data matrix construction circuit needs to synchronize the two sets of data. ax The data is interpolated to obtain the value of D out Variables with the same rate, and then synchronize the data to construct the input matrix D of the neural network cal The data merging and splicing module to be used in the embodiment of the present invention is as follows: Figure 4 To improve signal accuracy, D ax Any input analog signal in the data is intended to use an interpolation function specifically. However, the delay caused by different functions may be different. Therefore, it is necessary to add a delay compensation after the interpolation function so that all D ax Data delay and D out The delay is strictly consistent.
[0056] like Figure 4The data merging and splicing module embodiment of the present invention shown includes: a high-speed data equivalent delay module, a temperature interpolation function module, a reference voltage interpolation function module, a reference current interpolation function module, a power supply voltage interpolation function module, a power supply current interpolation function module, a clock jitter interpolation function module, a clock duty cycle interpolation function module, a first delay compensation module, a second delay compensation module, a third delay compensation module, a fourth delay compensation module, a fifth delay compensation module, a sixth delay compensation module, a seventh delay compensation module and a matrix construction module.
[0057] The temperature data Dtem of the chip to be tested is input into the temperature interpolation function module, and then enters the first compensation module. After delay compensation, the high-speed temperature data Dtemh is obtained and enters the first auxiliary data input port of the matrix construction module.
[0058] The quasi-voltage data Dvrv is input to the reference voltage interpolation function module, and then enters the second compensation module. After delay compensation, the high-speed reference voltage data Dvrvh is obtained and enters the second auxiliary data input port of the matrix construction module.
[0059] The quasi-current data Dvri is input to the reference current interpolation function module, and then enters the third delay compensation module. After delay compensation, the high-speed reference current data Dvrih is obtained and enters the third auxiliary data input port of the matrix construction module.
[0060] The power supply voltage data Dvdv is input to the power supply voltage interpolation function module, and then enters the fourth delay compensation module. After delay compensation, the high-speed power supply voltage data Dvdvh is obtained and enters the fourth auxiliary data input port of the matrix construction module.
[0061] The power supply current data Dvdi is input to the power supply current interpolation function module, and then enters the fifth delay compensation module. After delay compensation, the high-speed power supply current data Dvdih is obtained and enters the fifth auxiliary data input port of the matrix construction module.
[0062] The clock jitter data Dckjit is input to the clock jitter interpolation function module, and then enters the sixth delay compensation module. After delay compensation, the high-speed clock jitter data Dckjith is obtained and enters the sixth auxiliary data input port of the matrix construction module.
[0063] The clock duty cycle data Dckpw is input to the clock jitter interpolation function module, and then enters the seventh delay compensation module. After delay compensation, the high-speed clock duty cycle data Dckpwh is obtained and enters the seventh auxiliary data input port of the matrix construction module.
[0064] The ideal digital code Din and the digital code Dout are simultaneously input into the high-speed data equivalent delay module, and after delay compensation, the synchronous ideal digital code Dinh and the synchronous digital code Douth are obtained and enter the first and second conversion data input ports of the matrix construction module.
[0065] The matrix construction module concatenates and combines all input data to obtain the global error dataset Derr for global error model training and the global calibration dataset Dcal for calibration algorithm model training.
[0066] Figure 4 In the embodiment, the temperature data Dtem, the power supply voltage data Dvdv, the power supply current data Dvdi, the reference voltage data Dvrv, the reference current data Dvri, the clock jitter data Dckjit, and the clock duty cycle data Dckpw are relatively low-frequency data signals, while the digital code Dout and the ideal digital code Din are high-speed data signals. When the high-frequency signal and the low-frequency signal data are merged, data synchronization needs to be performed, and for this purpose, the low-frequency signal needs to be interpolated to obtain the same data frequency as the high-frequency signal. In the above embodiment, the synchronized ideal digital code Dinh and the synchronized digital code Douth are high-speed data signals with the same rate as the digital code Dout and the ideal digital code Din; the high-speed temperature data Dtemh, the high-speed reference voltage data Dvrvh, the high-speed reference current data Dvrih, the high-speed power supply voltage data Dvdvh, the high-speed power supply current data Dvdih, the high-speed clock jitter data Dckjith, and the high-speed clock duty cycle data Dckpwh are all data with the same rate as the synchronized ideal digital code Dinh and the synchronized digital code Douth, and are controlled by the same synchronization clock.
[0067] Taking the 14-bit 1GSPS pipeline ADC error model training as an example, the digital code Dout and the ideal digital code Din are 1GHz high-speed data signals, so the synchronized ideal digital code Dinh and the synchronized digital code Douth are also 1GHz high-speed data signals. Similarly, the high-speed temperature data Dtemh, high-speed reference voltage data Dvrvh, high-speed reference current data Dvrih, high-speed power supply voltage data Dvdvh, high-speed power supply current data Dvdih, high-speed clock jitter data Dckjith, and high-speed clock duty cycle data Dckpwh are all 1GHz high-speed data signals. Assume Figure 2The low-speed high-precision ADC in the system adopts a 5MHz sampling frequency with 24-bit precision. The temperature data Dtem of the chip to be tested, the power supply voltage data Dvdv, the power supply current data Dvdi, the reference voltage data Dvrv, and the reference current data Dvri are all 24-bit 1MHz low-speed data signals. Therefore, the above five low-frequency data signals need to be interpolated 1000 times to obtain 24-bit 1GHz high-speed synchronous data. In the specific implementation, the mature algorithms in the existing digital signals can be used for low-speed data interpolation. Different interpolation algorithms have different effects on the calibration performance. The optimal algorithm can be selected according to the application object and scenario.
[0068] After the calibration data set is constructed, the global nonlinear error model F(X) and the global nonlinear error calibration algorithm model F of the high-speed analog-to-digital converter to be tested can be constructed. -1 (X) offline training work. Figure 5-6 The model training method using the CNN network model as an example is given. The present invention adopts a deep residual network, and the core algorithm of the deep residual network is to perform residual learning by means of identity mapping. The deep residual network is composed of multiple residual learning modules cascaded, in which two layers of residual learning modules are as follows Figure 5 As shown. Let f(x) be the potential mapping function fitted by the multi-layer network, where x represents the input of the network. Assume that a network with multiple nonlinear layers can asymptotically approximate the residual function, i.e., f(x)-x (assuming that the input and output have the same dimension). Therefore, two layers of nonlinear networks approximate f(x), which is equivalent to two layers of nonlinear layers approximating the residual function H(x) = f(x)-x, then the original function f(x) becomes f(x)+x. This form of H(x)+x can be achieved by adding shortcut connections in the feedforward neural network. In the framework of residual learning, shortcut connections are only used for identity mapping, and it is superimposed with the output of several stacked intermediate layers as the result output.
[0069] Figure 5 The residual learning module is defined as follows:
[0070] y=H(x,{W i})+x (1)
[0071] Where x and y are the input and output vectors of the residual learning module. The function H(x,{W i}) represents the residual mapping to be learned, which has flexible forms and usually has two or three convolutional layers. Figure 5 The building block in has two convolutional layers, where H = W2σ(W1x), where σ(·) represents the ReLU activation function. W1 and W2 are the parameters that need to be learned in the deep residual network, which are optimized by the stochastic gradient descent algorithm under the back-propagation framework.
[0072] The error model and calibration algorithm model based on CNN in the present invention are both adopted Figure 6 The deep residual network learning process shown is trained.
[0073] For the error model, the network input is D err , obtain the eigenvalue F of the network output through the deep residual network err , we hope that the output eigenvalues of the network are close to D out , with the eigenvalue F output by the network err With D out The deviation of is used as the optimization target, and the residual network parameters W are updated through multiple iterations through the stochastic gradient descent algorithm. err , when the algorithm reaches the maximum number of iterations or F err With D out When the deviation meets the algorithm stopping condition, the error model training is completed.
[0074] For the calibration algorithm model F -1 (X), the network input is D cal , obtain the eigenvalue F of the network output through the deep residual network cal , we hope that the output eigenvalues of the network are close to D in , with the eigenvalue F output by the network cal With D in The deviation of is used as the optimization target, and the residual network parameters W are updated through multiple iterations through the stochastic gradient descent algorithm. cal , when the algorithm reaches the maximum number of iterations or F cal With D in When the deviation meets the algorithm stopping condition, the calibration algorithm model F -1 (X) Training completed.
[0075] Figure 7 The global nonlinear error calibration algorithm model F obtained by the present invention is -1 (X) Specific implementation method in ADC calibration work. Calibration analog signal V Ain The data is input into the ADC chip to be tested, and the digital code Dout converted by the ADC chip to be tested is obtained. At the same time, the chip status monitoring circuit obtains the auxiliary signal digital code Dax. Then the data merging and splicing module combines Dout and Dax into a global calibration data set Dcal, which is input into the calibration algorithm model F -1 (X); Then, the global calibration data set Dcal of the normal conversion output of the ADC chip under test and the global nonlinear error calibration algorithm model F -1 (X) to obtain the calibrated high-precision conversion data Dout_cal.
[0076] Figure 8This is the test result of a 14-bit 1GSPS ADC chip without calibration. It can be seen that various types of distortion are very large and the signal-to-noise ratio is only 54dB. Fig. 9 The implementation effect of the global error calibration method of the present invention is shown in the FFT spectrum obtained from the test. It can be seen that the signal-to-noise ratio of the ADC after calibration reaches 67dB. The calibration method can calibrate the ADC common mode error, gain, offset and capacitor mismatch error, and can also perform real-time compensation for other errors caused by environmental changes.
[0077] The present invention adopts the global calibration data set Dcal normally converted and output by the ADC chip to be calibrated and the global nonlinear error calibration algorithm model F -1 (X) is multiplied to obtain the calibrated high-precision conversion data Dout_cal. The global calibration data set Dcal is composed of the digital code Dout converted by the ADC chip to be tested and the auxiliary signal digital code Dax. Compared with various existing digital calibration schemes that use the digital code Dout to enter the calibration algorithm model to obtain the output calibration data, the present invention supplements the auxiliary signal digital code Dax. Since the auxiliary signal digital code Dax has an indirect nonlinear relationship with the digital code Dout, even if the digital code Dout is missing, it can still be calibrated by Dax, thereby solving the problem that the error caused by the missing code of the digital code Dout in the existing digital calibration method is difficult to correct.
[0078] 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 principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A global error calibration method for high-speed pipeline analog-to-digital converters based on neural networks. Its characteristics are: Including the construction of global error data set and global calibration data set, the training of global nonlinear error model F(X), and the global nonlinear error calibration algorithm model F -1 (X) training; The method for constructing the global error data set and the global calibration data set is: Ain The ADC chip to be tested and the ideal ADC module are inputted respectively. The ADC chip to be tested converts the calibration analog signal V into the ideal ADC module according to the sampling clock signal Ckin. Ain The processing conversion obtains the digital code Dout outputted and synchronized by each internal sub-level circuit in sequence, and the ideal ADC module is based on the calibration analog signal V Ain The corresponding ideal digital code Din is obtained; the clock jitter data Dckjit and the clock duty cycle data Dckpw of each chip status monitoring signal of the ADC chip to be tested and the sampling clock signal Ckin are combined and output, and the auxiliary signal digital code Dax is obtained through arrangement processing; the ideal digital code Din and the auxiliary signal digital code Dax are combined into a global error data set Derr, and the digital code Dout and the auxiliary signal digital code Dax are combined into a global calibration data set Dcal; The training method of the global nonlinear error model F(X) is as follows: using the global error data set Derr as the input data of the error model, using the digital code Dout as the expected output data of the error model, using a deep learning neural network for offline training, and obtaining the global nonlinear error model F(X) of the chip to be tested; The global nonlinear error calibration algorithm model F -1 The training method of (X) is as follows: on the basis of obtaining the global nonlinear error model F(X), the inverse function of the global nonlinear error model F(X) is trained, the global calibration data set Dcal is used as input data, the ideal digital code Din is used as the expected output data, and offline training is still performed based on deep learning technology to obtain the global nonlinear error calibration algorithm model F -1 (X); Finally, the global calibration data set Dcal output by the normal conversion processing of the ADC chip under test is compared with the trained global nonlinear error calibration algorithm model F -1 (X) to obtain the calibrated high-precision conversion data Dout_cal.
2. The method for calibrating the global error of a high-speed pipeline analog-to-digital converter based on a neural network according to claim 1, Its characteristics are: The chip status monitoring signals of the ADC chip to be tested include: temperature data Dtem, power data Dvdv, power current data Dvdi, reference voltage data Dvrv, and reference current data Dvri.
3. The method for calibrating the global error of a high-speed pipeline analog-to-digital converter based on a neural network according to claim 1, Its characteristics are: The system for constructing the global error data set and the global calibration data set includes: the ADC chip to be tested converts the calibration analog signal V into a calibration analog signal V according to the sampling clock signal Ckin. Ain The digital signals output by each sub-circuit in the internal conversion process are first passed through an ADC delay synchronization module to obtain the intermediate conversion data. The ideal ADC module is based on the calibration analog signal V Ain The corresponding ideal digital code is obtained, and the intermediate conversion data and the ideal digital code are stored in a first memory according to a first-in first-out principle; The sampling clock signal Ckin is passed through a clock characteristic evaluation and quantization module to extract clock jitter data Dckjit and clock duty cycle data Dckpw; the transient value of each chip status monitoring signal of the ADC chip to be tested is transmitted to a low-speed high-precision ADC module in real time to be converted into a digital signal, and these digital signals and the clock jitter data Dckjit and clock duty cycle data Dckpw are stored in the second memory as monitoring auxiliary signals according to the first-in first-out principle; The data merging and splicing module reads out the ideal digital code Din and the digital code Dout from the first memory; the data merging and splicing module reads out the auxiliary signal digital code Dax arranged in sequence from the second memory; the data merging and splicing module splices Din and Dax into a global error data set Derr, and splices Dout and Dax into a global calibration data set Dcal.
4. The method for calibrating the global error of a high-speed pipeline analog-to-digital converter based on a neural network according to claim 1, Its characteristics are: The global error data set Derr and the global calibration data set Dcal are both processed in the form of a matrix; the output and state of the ADC chip under all possible working conditions must be sampled, and all state combinations of all working conditions require full traversal coverage sampling.
5. The method for calibrating the global error of a high-speed pipeline analog-to-digital converter based on a neural network according to claim 4, Its characteristics are: The matrix data of the global calibration data set Dcal is composed of the ideal digital code Din, temperature data Dtem, power supply voltage data Dvdv, power supply current data Dvdi, reference voltage data Dvrv, reference current data Dvri, clock jitter data Dckjit, and clock duty cycle data Dckpw; the matrix data of the global error data set Derr is composed of the digital code Dout, the temperature data Dtem of the chip to be tested, the power supply voltage data Dvdv, the power supply current data Dvdi, the reference voltage data Dvrv, the reference current data Dvri, the clock jitter data Dckjit, and the clock duty cycle data Dckpw.
6. The method for calibrating the global error of a high-speed pipeline analog-to-digital converter based on a neural network according to claim 3, Its characteristics are: The data merging and splicing module includes: a high-speed data equivalent delay module, a temperature interpolation function module, a reference voltage interpolation function module, a reference current interpolation function module, a power supply voltage interpolation function module, a power supply current interpolation function module, a clock jitter interpolation function module, a clock duty cycle interpolation function module, and a matrix construction module; The ideal digital code Din and the digital code Dout are simultaneously input into the high-speed data equivalent delay module, and after delay compensation, the synchronous ideal digital code Dinh and the synchronous digital code Douth are obtained, which enter the first conversion data input port and the second conversion data input port of the matrix construction module respectively; The temperature data Dtem passes through a temperature interpolation function module and a delay compensation module in sequence to obtain high-speed temperature data Dtemh, which enters the first auxiliary data input port of the matrix construction module; The reference voltage data Dvrv passes through a reference voltage interpolation function module and a delay compensation module in sequence to obtain high-speed reference voltage data Dvrvh, and enters the second auxiliary data input port of the matrix construction module; The reference current data Dvri passes through a reference current interpolation function module and a delay compensation module in sequence to obtain high-speed reference current data Dvrih, and enters the third auxiliary data input port of the matrix construction module; The power supply voltage data Dvdv passes through a power supply voltage interpolation function module and a delay compensation module in sequence to obtain high-speed power supply voltage data Dvdvh, and enters the fourth auxiliary data input port of the matrix construction module; The power supply current data Dvdi passes through the power supply current interpolation function module and a delay compensation module in sequence to obtain high-speed power supply current data Dvdih, and enters the fifth auxiliary data input port of the matrix construction module; The clock jitter data Dckjit passes through a clock jitter interpolation function module and a delay compensation module in sequence to obtain high-speed clock jitter data Dckjith, and enters the sixth auxiliary data input port of the matrix construction module; The clock duty cycle data Dckpw passes through a clock jitter interpolation function module and a delay compensation module in sequence to obtain high-speed clock duty cycle data Dckpwh, and enters the seventh auxiliary data input port of the matrix construction module; The matrix construction module concatenates the input data into a matrix to obtain a global error dataset Derr and a global calibration dataset Dcal.
7. The method for calibrating the global error of a high-speed pipeline analog-to-digital converter based on a neural network according to claim 6, Its characteristics are: The synchronous ideal digital code Dinh and the synchronous digital code Douth are high-speed data signals with the same rate as the ideal digital code Din and the digital code Dout; the high-speed temperature data Dtemh, the high-speed reference voltage data Dvrvh, the high-speed reference current data Dvrih, the high-speed power supply voltage data Dvdvh, the high-speed power supply current data Dvdih, the high-speed clock jitter data Dckjith, and the high-speed clock duty cycle data Dckpwh are all data with the same rate as the synchronous ideal digital code Dinh and the synchronous digital code Douth, and are controlled by the same synchronous clock.
