Abstract
Achieving coherent sampling has always been a major challenge in analog-to-digital converter (ADC) spectral testing. If the coherent sampling condition cannot be met, leakage appears in the spectrum, which results in inaccurate parameters. The windowing method is widely used to process ADC data to eliminate leakage. However, this method requires prior knowledge about the type of window, and some commonly used windows cannot provide accurate results for a high precision ADC. In this paper, some general principles for optimizing the cosine-sum window and some windows with maximum side-lobe decay have been presented. A test method for eliminating the leakage caused by non-coherent sampling is also proposed. The proposed method can accurately evaluate the dynamic parameters of an ADC with arbitrary non-coherency. Various simulation results and measurement data demonstrate the functionality and robustness of the proposed method. The proposed method significantly relaxes the condition of coherent sampling and decreases the test cost.
1. Introduction
The analog-to-digital converter (ADC) is one of the most widely used mixed-signal circuits. With the rapid development in semiconductor processing technology, the performance of ADCs has increased dramatically. Spectral testing is a commonly used method to estimate the dynamic parameters of ADCs, including the signal-to-noise ratio (SNR), signal-to-noise-and-distortion ratio (SINAD), total harmonic distortion (THD) and spurious-free dynamic range (SFDR) [1,2,3]. Obtaining accurate test results of a high precision ADC is a significant challenge in modern industry. In order to perform spectral testing, the IEEE standard [4,5,6] provides several stringent requirements that need to be met. The input signal should be coherently sampled to obtain accurate test results, otherwise, the leakage will appear in the spectrum. It is challenging to achieve coherent sampling for a high precision ADC. Especially for a built-in self-test (BIST) [7,8,9,10,11], it is difficult to integrate a high-performance signal and clock generator due to the limitation of the chip area. Therefore, there is an urgent demand for a testing method that eliminates the requirement of coherent sampling.
In the past decade, various test methods have been proposed to solve the issue, such as the interpolated discrete Fourier transform (IpDFT) [12,13] techniques, the four parameter sine fitting techniques [14,15] and the FIRE method (fundamental identification and replacement) [16,17,18,19]. The IpDFT methods perform interpolation in the frequency domain to eliminate the leakage, but this method cannot obtain an accurate value of the SFDR when a non-harmonic spur dominates the distortion. The four parameter sine fitting methods cannot provide accurate parameters when the maximum spur happens to be a non-harmonic component. The FIRE method (fundamental identification and replacement) shows excellent performance for eliminating any level of non-coherency. Nevertheless, this method consumes more testing time, especially when the sampled data length increases [20].
The windowing method [21,22,23,24,25] is computationally efficient. However, this method needs the prior knowledge of window function selection, which involves a trade-off of several factors, such as the main lobe width, side-lobe decay rate and the largest side-lobe level. A general principle is that the largest side-lobe level of the selected window should be lower than the noise power (noise floor) of the ADC under testing. In addition, some popular windows cannot achieve accurate results for a high precision ADC, such as Hamming and Blackman-Harris.
In this paper, a general method for optimizing and selecting an appropriate window function is proposed to estimate the parameters without requiring coherent sampling. This method relaxes the test environment’s stringent requirement and significantly reduces the test cost. The functionality and robustness of the proposed method are verified using both simulation and measurement results. The rest of the paper is organized as follows. Section 2 describes the standard spectral testing and the non-coherency issue. In Section 3, some general principles to optimize cosine-sum windows and the method to test high precision ADCs are proposed. Section 4 and Section 5 present extensive simulation and experimental results to validate the proposed method. Finally, this paper is concluded in Section 6.
2. ADC Spectral Testing
Spectral testing has been widely used to evaluate the performance of ADCs. For ADC standard spectral testing, the IEEE standards recommended test setup to obtain accurate parameters is shown in Figure 1. The master clock controls the frequency of the input signal and the sample clock to achieve coherent sampling. A pure sinusoidal signal is applied to the ADC as the stimulus. The ADC output data are sampled and collected to analyze.
Figure 1.
ADC standard spectral testing setup.
The standard spectral testing can be described by the following formula. The input sinusoidal signal x(t) can be written as:
where , and represent the amplitude, frequency and initial phase of the input signal, respectively.
After the input signal x(t) is sampled and quantified by the ADC under test, the output data x[n] is given by
where is the sampling frequency. is the DC component. and represent the amplitude and initial phase of the h-th harmonic, respectively. H is the total number of harmonics. n = 0, 1, 2, … M − 1 and M represents the total number of output data. Noise[n] is the white noise.
Then performing discrete Fourier transform (DFT) of M to obtain the spectrum of ADC under test. The DFT of x[n] is given by
where k = 0, 1, 2, … M − 1 represents the frequency bin’s index. The dynamic parameters could be accurately calculated from Equation (3) if the data x[n] is coherently sampled.
Let J be the number of periods of the input signal. The coherent sampling condition is represented by
When the coherent sampling condition is satisfied, the power of each component can be accurately calculated from the spectrum such as fundamental, noise and distortion. If the input signal is not coherently sampled, the number of periods J in Equation (4) is not an integer, and severe leakage will be presented in the spectrum as shown in Figure 2.
Figure 2.
The ADC spectrum with coherent and non-coherent sampling.
3. The Maximum Side-Lobe Decay Windows
If the coherent sampling condition cannot be met, the windowing method is widely used to reduce spectral leakage [21,22,23,24,25]. Engineers should know how to select an appropriate window function and multiply the ADC output data by the window in the time domain. Choosing an optimal window requires prior knowledge about the performance of the window. The ideal window should have a narrow main lobe, low side-lobe level and rapid decay rate. A narrower main lobe can increase spectral resolution, and a lower level and faster decay rate of the side-lobe can significantly suppress the leakage caused by non-coherent sampling.
For an ideal N-bit ADC, the noise floor level is the sum of SNR and process gain. It can be represented by the signal-to-quantization-noise ratio (SQNR), which is given as
where N is the resolution of ADC, and M is the data length. SQNR implies that the input signal amplitude covers the full dynamic available for the conversion. In ADC spectral testing, the conventional windowing method requires that the largest side-lobe level of the window should be lower than the noise floor of the ADC by some margin. Then, the spectral leakage can be completely suppressed within the range of the main lobe, and the distortion will be accurately detected. A minimum side-lobe window is commonly used to eliminate the leakage, such as Hamming, Blackman, Exact Blackman, etc. These windows have a low side-lobe level with the same number of terms. However, for a high-resolution ADC, few windows can provide enough side-lobe attenuation. For example, the side-lobe level of the Blackman window (3-term) allows engineers to test a 12-bit ADC accurately. However, this window is not proper for a 16-bit or higher resolution ADC as the largest side-lobe level of the window cannot be higher than the ADC noise floor. The 7-term Blackman-Harris window has enough attenuation level for a 24-bit resolution ADC, the largest side-lobe level of which is −163 dB. Nevertheless, this complex window will take more test time.
If the window is optimized in the aspect of the side-lobe decay rate, it can achieve the maximum side-lobe decay rate. The cosine-sum windows with maximum side-lobe decay (MSLD) will be a better choice for ADC spectral testing, although these windows’ largest side-lobe level will be higher. If the window has the same number of terms, the MSLD window has better performance for suppressing leakage. The derivation of the minimum side-lobe window was introduced in [21,24], and is not repeated in this paper. The expression for the MSLD window is derived as follows.
The cosine-sum window is generally given by
and
where N, K and are the length, the total term number and the window coefficient, respectively. The w(t) and its derivative are symmetrical about w(0). For convenience, the range of t is omitted.
Let W(f) be the Fourier transform of w(t), which determines the frequency property of the window function, such as the main lobe width and side-lobe level.
The value of w(t) at the end is given by
The value of w(t) and its derivative at t = N/2 are crucial. determines the frequency property of the window function. If both ends of w(t) are not zero, w(t) is discontinuous for all t. In this case, the side-lobe decay rate is relatively slow, but the lowest first side-lobe will be obtained after adjusting the coefficient. If both ends of w(t) are zero, w(t) is continuous for all t, and w′(t) is obtained.
and
It can be seen that w′(t) is always continuous (if w′(t) exists). Thus w″(t) is obtained as follows
As mentioned before, the continuity of w″(t) determines the frequency property of the window function. If both ends of w″(t) are zero, w″(t) is continuous for all t, and W(f) has a faster side-lobe decay rate.
Assuming w(t) has an n-order derivative, the n-order derivative of w(t) can be represented by
where n is the derivative order. This equation could be divided into odd and even derivatives as follows
It can be observed that the odd derivative is always continuous. Thus the decay rate is determined by the even derivative. If the n-order derivative of w(t) is discontinuous and the (n − 1)-order derivative is continuous for all t, the side-lobe decay rate of W(f) is 6*(n + 1) dB/Octave. For example, w(N/2) of the Hamming window is 0.08 and it is discontinuous. Thus n is equal to zero, and the decay rate of Hamming is 6 dB/octave. For the Hanning window, w(N/2) and w′(N/2) are zero, but w″(t) is not continuous. Thus n is equal to 2, and the decay rate of Hanning is 18 dB/octave.
Therefore, in order to obtain a faster decay rate, it is necessary to satisfy both ends of the n-th derivative equal to zero. At the same time, Equation (7) also needs to be met. Thus the following equation can be obtained
and
If the total term number K is determined, the coefficient of the MSLD window can be calculated from these equations.
For the same number of terms, the MSLD window has better performance for eliminating leakage at the cost of a higher first side-lobe. The two side-lobes closest to the main lobe can be regarded as the main lobe. The main lobe width of the window is determined by the term number K; it becomes wider as K increases, and then the frequency resolution decreases. The two ends of the window become much smoother as the number of orders n increases.
When the value of K is determined, the coefficient of the MSLD window can be calculated as shown in Table 1. The time domain and frequency domain of 2–5 term MSLD windows are also shown in Figure 3.
Table 1.
The coefficients of MSLD windows.
Figure 3.
MSLD windows with different terms: (a) comparison of time domain; (b) comparison of frequency domain.
It can be seen that if the term number increases, the MSLD windows become smoother, the main lobe width increases and the side-lobe level decreases. In order to compare the performance of MSLD windows with other classic cosine-sum windows, the frequency domains of 2-term and 3-term MSLD windows and some classic cosine-sum windows are illustrated in Figure 4. The summary of classic window characteristics is presented in Table 2.
Figure 4.
Comparison of frequency domain: (a) 2-term windows; (b) 3-term windows.
Table 2.
The characteristics of some classical windows.
Although the largest side-lobe level is high, the side-lobe decay rate of the MSLD window is faster with the same number of terms. This property is important for eliminating leakage and detecting the component in the spectrum. Therefore, the test results can be accurately obtained with non-coherent sampled data.
4. Simulation Results
In this section, simulation results are presented to verify the functionality and robustness of the proposed windows.
4.1. Functionality
The simulation setup in MATLAB is given as follows. An 18-bit ADC is generated and the true parameters of the ADC are obtained by sending a pure sine wave, which is coherently sampled. DNL (Differential Non-linearity) and noise obey the normal distribution, the variances of which are 0.01 LSB (Least Significant Bit) and 0.5 LSB, respectively. The length of data M is 8192 and the number of periods J is 593. The input signal is set to be 98% of the ADC’s full range to avoid clipping. Then, the non-coherently sampled data with J = 593.12 is used to verify whether the proposed window accurately obtains the parameters. According to the proposed principle, the 3-term MSLD window is a better choice for 18-bit ADC. The spectra of the ADC with different windows are shown in Figure 5 and the parameters obtained are also illustrated in Table 3.
Figure 5.
The ADC spectra with different windows.
Table 3.
Estimation of dynamic parameters.
Figure 5 shows the spectra of the same ADC obtained using different methods, including directly performing DFT on the coherent and non-coherent data, Hamming, 2-term MSLD (Hanning), Exact Blackman and 3-term MSLD. The blue spectrum is obtained when the input signal is coherently sampled, and this spectrum is clean without any leakage. The red spectrum is obtained when DFT is directly performed on the non-coherent data, and severe leakage appears in the spectrum. In order to eliminate the leakage, different windows are used. It can be seen that the level of leakage suppression is strongly dependent on the selected window function. If the number of terms is identical, the MSLD window will achieve more accurate results.
The test results of the above different windows are listed in Table 3. It can be seen that the results obtained by 3-term MSLD windows are very close to the true parameters. It demonstrates that the proposed MLSD windows can accurately estimate the performance of an ADC even if the input signal is not coherently sampled.
4.2. Robustness
The robustness of the proposed method with different non-coherency is also presented. The fractional part of J is , and 1000 values of are randomly generated. The values of range from −0.5 to 0.5. The selected window function is the 3-term MSLD window. The errors obtained in estimating the parameters of the ADC with different are shown in Figure 6. It can also be seen that the proposed method is robust over the whole range of . Hence, the method can achieve accurate testing results in the arbitrary level of non-coherency. The robustness eliminates the requirement of coherent sampling for spectral testing.
Figure 6.
Error of estimation: (a) SINAD; (b) SNR; (c) THD; (d) SFDR.
In order to compare the estimation error of the different windows, a classic Blackman-Harris window (3-term) is used to suppress the leakage. The simulation is performed 100 times, and the value of is randomly generated to verify the functionality of the proposed method. For each simulation, the estimation error of SINAD and SNR (absolute value) are plotted in Figure 7 for both the Blackman-Harris window (red) and the 3-term MSLD window (blue). It can be seen that the estimation error of the proposed window is smaller.
Figure 7.
Error of estimation (absolute value): (a) SINAD; (b) SNR.
4.3. Computation Time
To demonstrate the efficiency of the proposed window, the comparison of the computation time with different methods is also presented in Table 4. In the simulation, the proposed 3-term MSLD window is compared with the Hamming and Exact Blackman windows with the method in [14,17]. The computation time is the time of the CPU occupied by the MATLAB simulation. The computation time of each method is repeatedly performed 30 times to obtain an average value. It can be seen that the proposed window can obtain accurate results with the least computation time. The method in [14,17] uses the Newton iteration method to achieve accurate results at the price of a long test time. Furthermore, its computational complexity becomes larger if the number of sampled data increases. As a result, the proposed window is more computationally efficient and accurate than other state-of-the-art methods.
Table 4.
Comparison of computation time.
5. Experimental Results
In this section, measurement data are used to validate the effectiveness of the proposed method. The ADC under test is AD4003, an 18-bit successive approximation register (SAR) ADC. For reference, the true parameters of the ADC are obtained with the coherently sampled data. The input signal frequency is 2 kHz and the sampling clock frequency is 64.503937 kHz for coherent sampling. The length of data M is 4096, i.e., J = 127. In order to verify the robustness of the proposed method, two sets of non-coherent data are also collected. The sampling clock frequencies are 64.44 kHz and 64.28 kHz, respectively. Thus, J1 = 127.13 and J2 = 127.45. The testing circuit for AD4003 is shown in Figure 8.
Figure 8.
Testing circuit of AD4003. (1) Differential input signal; (2) ADC evaluation board; (3) FPGA.
Figure 9 and Table 5 show the spectrum and the test results, respectively. The blue spectrum is obtained with coherently sampled data. It can be seen that the blue spectrum is clean without any leakage. Since J1 and J2 are not integers, severe leakage appears in the red spectrum when DFT is directly performed. The green spectrum obtained by the 3-term MSLD window matches the blue spectrum and provides accurate test results. Table 5 lists the values of dynamic parameters of the ADC for different cases.
Figure 9.
The ADC spectrum with different non-coherency: (a) J = 127.13; (b) J = 127.45.
Table 5.
Estimation of dynamic parameters.
It can be seen that the dynamic parameters are accurately obtained with the proposed method for any non-coherency. Hence, the functionality and robustness of the proposed method are validated with experimental results.
6. Conclusions
When evaluating the dynamic performance of high precision ADCs using DFT analysis, coherent sampling provides the best results. If coherent sampling cannot be achieved, a window function with a low side-lobe is required to detect the noise and harmonic components in the spectrum. This paper describes how to design maximum side-lobe decay windows with better properties to eliminate the leakage caused by non-coherent sampling. Some MSLD windows were created by the proposed method, and the performance of selected windows is shown in this paper. The proposed windows completely eliminate the requirement of coherent sampling for high precision ADCs. Simulation and experimental results are presented to validate the functionality and robustness of the proposed method with any non-coherency. Because the requirement of coherent sampling is eliminated, the test setup is significantly simplified. The proposed method can save the test cost and effort to achieve coherent sampling.
Author Contributions
Conceptualization, J.F.; methodology, J.F.; software, J.F.; validation, J.F. and Z.Y.; investigation, J.S.; writing—original draft preparation, J.F.; writing—review and editing, J.F., Z.Y. and J.S.; supervision, Y.Z. and S.Q.; project administration, S.Q. All authors have read and agreed to the published version of the manuscript.
Funding
This research was funded by the National Key R&D Program of China, under Grant No. 2019YFB2204601.
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
Data can be provided upon request.
Acknowledgments
The authors would like to thank Minshun Wu, Xi’an Jiaotong University, for providing help in this work.
Conflicts of Interest
The authors declare no conflict of interest.
References
- Oppenheim, A.; Schafer, R. Discrete-Time Signal Processing; Prentice Hall: Englewood Cliffs, NJ, USA, 1999. [Google Scholar]
- Burns, M.; Roberts, G. An Introduction to Mixed-Signal IC Test and Measurement; Oxford University Press: Oxford, NY, USA, 2012. [Google Scholar]
- Kester, W. Analog-Digital Conversion; Analog Devices, Inc.: Norwood, MA, USA, 2004. [Google Scholar]
- IEEE Std. 1057TM-2007; IEEE Standard for Digitizing Waveform Recorders. IEEE: New York, NY, USA, 2008.
- IEEE Std. 1241TM-2010; IEEE Standard for Terminology and Test Methods for Analog to Digital Converters. IEEE: New York, NY, USA, 2011.
- IEEE Std. 1658TM-2011; IEEE Standard for Terminology and Test Methods of Digital-to-Analog Converter Devices. IEEE: New York, NY, USA, 2011.
- Chen, P.; Yin, J.; Zhang, F.; Mak, P.; Martins, R.; Staszewski, R. Mismatch Analysis of DTCs With an Improved BIST-TDC in 28-nm CMOS. IEEE Trans. Circuits Syst. I 2022, 69, 196–206. [Google Scholar] [CrossRef]
- Xie, C.; Li, X.; Lei, Y.; Chen, H.; Song, Z. BIST-Based Fault Diagnosis for PCM With Enhanced Test Scheme and Fault-Free Region Finding Algorithm. IEEE Trans. Very Large Scale Integr. (VLSI) Syst. 2020, 28, 1652–1664. [Google Scholar] [CrossRef]
- Kohtani, M.; Murakami, T.; Utagawa, Y.; Arai, T.; Yamaura, S. 76- to 81-GHz CMOS Built-In Self-Test With 72-dB C/N and Less Than 1 ppm Frequency Tolerance for Multi-Channel Radar Applications. IEEE J. Solid-State Circuits 2021, 56, 1345–1359. [Google Scholar] [CrossRef]
- Shah, S.; Hasler, J. Tuning of Multiple Parameters with a BIST System. IEEE Trans. Circuits Syst. I 2017, 64, 1772–1780. [Google Scholar] [CrossRef]
- Emara, A.; Romanov, D.; Roberts, G.; Aouini, S.; Ziabakhsh, S.; Parvizi, M.; Ben-Hamida, N. An Area-Efficient High-Resolution Segmented ΣΔ-DAC for Built-In Self-Test Applications. IEEE Trans. Very Large Scale Integr. (VLSI) Syst. 2021, 29, 1861–1874. [Google Scholar] [CrossRef]
- Pintelon, R.; Schoukens, J. An improved sine-wave fitting procedure for characterizing data acquisition channels. IEEE Trans. Instrum. Meas. 1996, 45, 588–593. [Google Scholar] [CrossRef]
- Belega, D.; Petri, D.; Dallet, D. Amplitude and Phase Estimation of Real-Valued Sine Wave via Frequency-Domain Linear Least-Squares Algorithms. IEEE Trans. Instrum. Meas. 2018, 67, 1065–1077. [Google Scholar] [CrossRef]
- Pálfi, V.; Kollár, I. Acceleration of the ADC Test with Sine-Wave Fit. IEEE Trans. Instrum. Meas. 2013, 62, 880–888. [Google Scholar] [CrossRef]
- Lapuh, R. Estimating the Fundamental Component of Harmonically Distorted Signals from Noncoherently Sampled Data. IEEE Trans. Instrum. Meas. 2015, 64, 1419–1424. [Google Scholar] [CrossRef]
- Sudani, S.; Wu, M.; Chen, D. A novel robust and accurate spectral testing method for non-coherent sampling. In Proceedings of the IEEE International Test Conference (ITC), Anaheim, CA, USA, 20–22 September 2011. [Google Scholar]
- Sudani, S.; Chen, D. FIRE: A Fundamental Identification and Replacement Method for Accurate Spectral Test Without Requiring Coherency. IEEE Trans. Instrum. Meas. 2013, 62, 3015–3025. [Google Scholar] [CrossRef]
- Zhuang, Y.; Chen, D. Accurate Spectral Testing with Non-Coherent Sampling for Multi-Tone Test. IEEE Trans. Circuits Syst. II 2017, 64, 1357–1361. [Google Scholar] [CrossRef]
- Wu, M.; Ban, C.; Xu, J.; Geng, L.; Chen, D. MIRE: A Multitone Identification and Replacement Method for Multitone Spectral Test Without Requiring Coherent Sampling. IEEE Trans. Instrum. Meas. 2020, 69, 4578–4591. [Google Scholar] [CrossRef]
- Sudani, S.; Xu, L.; Chen, D. A Comparative Study of State-of-the-Art High-Performance Spectral Test Methods. IEEE Des. Test 2015, 32, 26–35. [Google Scholar] [CrossRef]
- Harris, F. On the use of windows for harmonic analysis with the discrete Fourier transform. Proc. IEEE 1978, 66, 51–83. [Google Scholar] [CrossRef]
- Belega, D.; Ciugudean, M.; Stoiciu, D. Choice of the cosine-class windows for ADC dynamic testing by spectral analysis. Measurement 2007, 40, 361–371. [Google Scholar] [CrossRef]
- Huang, S.; Fan, X.; Liu, S.; Yang, S. Research on Optimized Combined Cosine Windows with Maximum Side Lobe Decay for Harmonic Analysis. In Proceedings of the International Conference on Intelligent Computation Technology and Automation (ICICTA), Changsha, China, 10–11 October 2009. [Google Scholar]
- Albrecht, H. Tailoring of Minimum Sidelobe Cosine-Sum Windows for High-Resolution Measurements. Signal Process. J. 2010, 3, 20–29. [Google Scholar]
- Sato, K.; Ishida, T.; Okamoto, T.; Ichikawa, T.; Wei, J.; Nakatani, T.; Zhao, Y.; Katayama, S.; Yamamoto, S.; Kuwana, A.; et al. Revisit to Accurate ADC Testing with Incoherent Sampling Using Proper Sinusoidal Signal and Sampling Frequencies. In Proceedings of the IEEE International Test Conference (ITC), Anaheim, CA, USA, 10–15 October 2021. [Google Scholar]
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2022 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).