Method and system for spectral leakage removal in DAC testing
10630306 ยท 2020-04-21
Assignee
Inventors
Cpc classification
International classification
Abstract
System and method for processing a signal sampled from an output of a digital-analog converter. The method comprises: (a) transforming the input signal from time domain to frequency domain to obtain a signal having a plurality of bins; (b) estimating properties of a largest amplitude bin, except for direct current (DC) bin, in the input signal; (c) performing signal reconstruction in time domain based on the estimated properties to generate a reconstructed signal; (d) subtracting the estimated signal from the input signal to get a residual signal; (e) repeating steps (a)-(d) till a predetermined number of bins have been processed; (f) adding all the reconstructed signals and the last residual signal together to generate a sum signal; and (g) transforming the sum signal from the time domain to the frequency domain.
Claims
1. A method of testing a digital-to-analog converter (DAC) device, the method comprising: performing a level adjustment on an input signal; receiving the input signal, wherein the input signal is a digital signal converted from an analog output signal of the DAC device; converting the input signal from a time domain to a frequency domain to determine a plurality of frequency bins contained in the input signal, wherein the input signal comprises a non-integer number of signal periods within one unit time period (UTP); processing the plurality of frequency bins in a descending order according to amplitudes of said plurality of frequency bins, wherein a frequency bin of a largest amplitude among said plurality of frequency bins is not a direct current (DC) bin, wherein processing a respective frequency bin of the plurality of frequency bins comprises: estimating properties of said respective frequency bin to produce estimated properties comprising frequency, amplitude and phase; generating an estimated signal for the respective frequency bin, wherein the estimated signal is defined by the estimated properties of the respective frequency bin and comprises a fractional number of signal periods within the one UTP; generating a reconstructed signal for the respective frequency bin based on the estimated properties, wherein the reconstructed signal comprises an integer number of signal periods within one Unit Time Period (UTP), wherein generating the reconstructed signal comprises rounding a function of the respective frequency bin and a bin offset thereof to a nearest integer number; and subtracting the estimated signal from the input signal to generate a residual signal for the respective frequency bin; performing Fourier transform to convert the residual signal from a frequency domain to a time domain; summing reconstructed signals of the plurality of frequency bins and a last residual signal of a last frequency bin of the plurality of frequency bins to generate a sum signal; and transforming the sum signal from the time domain to the frequency domain.
2. The method according to claim 1, wherein the estimated properties of the respective frequency bin are determined in accordance with a Tabei-Ueda method.
3. The method according to claim 1, wherein performing the level adjustment comprises: reconstructing a fitting signal based on an original signal; obtaining a residual noise signal by subtracting the fitting signal from the original signal; estimating a DC drifting trend; and subtracting the DC drifting trend from the original signal to derive the input signal.
4. The method according to claim 3, wherein the reconstructing the fitting signal comprises reconstructing the fitting signal based on frequency, amplitude and phase that are estimated in accordance with a Tabei-Ueda algorithm.
5. The method according to claim 3, wherein the estimating the DC drifting trend comprises estimating the DC drifting trend by utilizing a least square curve fit process.
6. A non-transitory computer-readable storage medium having instructions stored thereon, the instructions when executed by one or more processors cause the one or more processors to perform a method of evaluating performances of a digital-analog converter (DAC) device, wherein the method comprises: performing a level adjustment on an input signal; accessing the input signal and determining a plurality of frequency bins comprised in the input signal, wherein the input signal is a digital signal converted from an analog output signal of the DAC device, wherein the input signal comprises a non-integer number of signal periods within one unit time period (UTP); converting the input signal from a time domain to a frequency domain to determine a plurality of frequency bins contained in the input signal, and processing each of the plurality of frequency bins of the input signal in descending order according to amplitudes of the plurality of frequency bins, wherein a frequency bin with a largest amplitude among said plurality of frequency bins is not a direct current (DC) bin, wherein processing a respective frequency bin of the plurality of frequency bins comprises: estimating properties of the respective frequency bin to produced estimated properties thereof comprising frequency, amplitude and phase; generating an estimated signal for the respective frequency bin based on the estimated properties, wherein the estimated signal comprises a non-integer number of signal periods within the one UTP; generating a reconstructed signal for the respective frequency bin based on the estimated properties, wherein the reconstructed signal comprises an integer number of periods within one Unit Time Period (UTP), wherein generating the reconstructed signal comprises rounding a function of the respective frequency bin and a bin offset thereof to a nearest integer number; and subtracting the estimated signal from the input signal to generate a residual signal for the respective frequency bin; performing Fourier transform to convert the residual signal from a frequency domain to a time domain; summing reconstructed signals of the plurality of frequency bins and a last residual signal resulting from the processing into a sum signal; and transforming the sum signal from the time domain to the frequency domain.
7. The non-transitory computer-readable storage medium of claim 6, wherein the performing a level adjustment process comprises: reconstructing a fitting signal based on an original signal; obtaining a residual noise signal by subtracting the fitting signal from the original signal; estimating a DC drifting trend; and subtracting the DC drifting trend from the original signal to derive the input signal.
8. The non-transitory computer-readable storage medium of claim 7, wherein the reconstructing the fitting signal comprises reconstructing the fitting signal with frequency, amplitude and phase estimated by Tabei-Ueda algorithm.
9. A tester operable to test integrated circuit digital-analog converters (DACs), the tester comprising: a digital pattern generator configured to provide a digital pattern to a DAC; a digitizer configured to convert an analog signal to a digital signal, wherein the analog signal is generated from a DAC in response to the digital pattern and to convert the analog signal into a digital signal; and a processing device configured to: perform a level adjustment on an input signal; access the input signal and determining a plurality of frequency bins comprised in the input signal, wherein the input signal is a digital signal generated by the digitizer responsive to an analog output signal of the DAC device, wherein the input signal comprises a non-integer number of signal periods within one unit time period (UTP); convert the input signal from a time domain to a frequency domain to determine a plurality of frequency bins contained in the input signal, and process the plurality of frequency bins of the input signal in descending order according to amplitudes of the plurality of frequency bins, wherein a frequency bin with a largest amplitude is not a direct current (DC) bin, wherein processing a respective frequency bin of the plurality of frequency bins comprises: estimating properties of the respective frequency bin to produce estimated properties thereof, wherein the estimated properties comprise frequency, amplitude and phase; generating an estimated signal for the respective frequency bin based on the estimated properties, wherein the estimated signal comprises a non-integer number of signal periods within the one UTP; generating a reconstructed signal for the respective frequency bin based on the estimated properties, wherein the reconstructed signal comprises an integer number of periods within one Unit Time Period (UTP), wherein generating the reconstructed signal comprises rounding a function of the respective frequency bin and a bin offset thereof to a nearest integer number; subtracting the estimated signal from the input signal to generate a residual signal for the respective frequency bin; and performing Fourier transform to convert the residual signal from a frequency domain to a time domain; sum reconstructed signals of the plurality of frequency bins and a last residual signal resulting from the processing; and transform the sum signal from the time domain to the frequency domain.
10. The tester according to claim 9, wherein the digital pattern generator is configured to further send a clock signal to the DAC.
11. The tester according to claim 9, wherein the digital pattern generator is configured to send a sync signal to the digitizer.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) Embodiments of the present invention will be better understood from a reading of the following detailed description, taken in conjunction with the accompanying drawing figures in which like reference characters designate like elements and in which:
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
(15)
(16)
(17)
DETAILED DESCRIPTION
(18) Reference will now be made in detail to the preferred embodiments of the present invention, examples of which are illustrated in the accompanying drawings. While the embodiments of the invention will be described in conjunction with the preferred embodiments, it will be understood that they are not intended to limit the invention to these embodiments. On the contrary, the invention is intended to cover alternatives, modifications and equivalents, which may be included within the spirit and scope of the invention as defined by the appended claims. Furthermore, in the following detailed description of embodiments of the present invention, numerous specific details are set forth in order to provide a thorough understanding of the present invention. However, it will be recognized by one of ordinary skill in the art that the present invention may be practiced without these specific details. In other instances, well-known methods, procedures, components, and circuits have not been described in detail so as not to unnecessarily obscure aspects of the embodiments of the present invention. The drawings showing embodiments of the invention are semi-diagrammatic and not to scale and, particularly, some of the dimensions are for the clarity of presentation and are shown exaggerated in the drawing Figures. Similarly, although the views in the drawings for the ease of description generally show similar orientations, this depiction in the Figures is arbitrary for the most part. Generally, the invention can be operated in any orientation.
Notation and Nomenclature
(19) It should be borne in mind, however, that all of these and similar terms are to be associated with the appropriate physical quantities and are merely convenient labels applied to these quantities. Unless specifically stated otherwise as apparent from the following discussions, it is appreciated that throughout the present invention, discussions utilizing terms such as processing or accessing or executing or storing or rendering or the like, refer to the action and processes of a computer system, or similar electronic computing device, that manipulates and transforms data represented as physical (electronic) quantities within the computer system's registers and memories and other computer readable media into other data similarly represented as physical quantities within the computer system memories or registers or other such information storage, transmission or client devices. When a component appears in several embodiments, the use of the same reference numeral signifies that the component is the same component as illustrated in the original embodiment.
(20) Method and System for Spectral Leakage Removal in DAC Testing
(21) The terms data, signal and waveform are used interchangeably in the present disclosure, wherever applicable.
(22)
(23) After a digital-to-analog conversion performed by the DAC 200, an analog signal is output from the DAC 200 and sent to the digitizer 120. The digitizer 120 can convert the captured analog signal into a digital signal for processing and evaluation, e.g., by using an internal ADC (analog-digital converter) 125. In the illustrated embodiment, the DAC tester 100 includes a built-in processing device, e.g. workstation 130, for the processing and evaluation of the converted digital signal. In some other embodiments, the processing device may be an external device coupled to the DAC tester 100.
(24) In
(25)
(26) The method 600 starts at 610. In 620, an input signal is transformed from a time domain to a frequency domain signal having a plurality of frequency bins. This may be achieved by performing a FFT or DFT (Discrete Fourier Transform) on the input signal. The input signal may be the signal captured by the digitizer 120 or the signal subject to a level adjustment process as described in the following. Since the DAC outputs are represented as real number data in the time domain, the transformed result are complex numbers in the frequency domain. As the positive half and the negative half of the spectrum are complex conjugates, the description herein only focuses on the positive part.
(27) At 630, properties (e.g. frequency, amplitude, initial phase) of the largest amplitude bin, with DC Bin excluded, in the input signal are estimated. The properties can be estimated according to the Tabei-Ueda algorithm or any other suitable method, process, or algorithm that is well known in the art. The Tabei-Ueda algorithm is presented in Makoto TABEI and Mitsuhiro UEDA, A Method of High Precision Frequency Detection with FFT, IEICE Transaction A, Vol. J70-A, No. 5, pp. 798-805, May 1987, which is incorporated by reference herein in its entirety. The estimated properties uniquely define a signal, which is referred to as an estimated signal.
(28) At 640, signal reconstruction is performed in the time domain based on the estimated properties to generate a reconstructed signal. It will be appreciated that signal construction can be performed by any suitable method, process, or algorithm that is well known in the art. The frequency of the reconstructed signal is different from the estimated signal while their other properties are the same. More specifically, the estimated signal contains fractional periods within one UTP, while the reconstructed signal contains integer number of periods within one UTP. The process to reconstruct the signal is to be described in greater detail below.
(29) At 650, the estimated signal is subtracted from the raw input signal to generate a residual signal which is processed through a FFT or DFT again.
(30) At 660, it is determined whether all the bins in consideration have been processed, e.g., according to a predetermined bin number threshold. If not, the foregoing 620-650 are repeated. The number of bins to be processed according to the present disclosure may depend on the number of harmonics to be included for the THD calculation.
(31) If it is determined at 660 that consideration predetermined number of bins have been processed, at 670, the reconstructed signals and the last residual signal are added together to generate a sum signal. At 680, the sum signal is transformed from the time domain to the frequency domain, and then the resulted spectrum is leakage free. The method ends at 690. Consequently, by timing adjustment, spectral leakage caused by non-coherent sampling can be reduced or even removed.
(32) In practice, DC offset drift is often present in sampled signals, for example when DC blocking capacitors are inserted into the signal path on the DUT board. In some embodiments, the DAC output is AC-coupled to the next stage. This offset drift may be eliminated by spending a longer waiting time which, however, will increase the production time and cost. If the cause of DC offset drift is clear, e.g., from the board capacitor and not related to the DUT performance, this trend can be removed without any wait time. In one embodiment, level adjustment may be performed on the input signal to remove the DC offset drift from the captured signal. Level adjustment is also known as trend removal and described in Hideo Okawara, Practical signal processing at mixed signal test venuesTrend removal, noise reduction, wideband signal capturing, VLSI Test Symposium (VTS), May 2011, which is incorporated by reference herein in its entirety. A level adjustment process may be implemented by a DSP for example.
(33)
(34) The following description mathematically analyzed the processes of signal processing according to the present disclosure. A real-valued periodic signal {tilde over (x)}(t) can be expressed as:
(35)
where M is the highest harmonic in consideration, f is the fundamental frequency, A, is the amplitude of the i.sup.th harmonic, and .sub.i, is the phase of the i.sup.th harmonic. Since the positive and negative components of the spectrum are complex conjugates, only the positive components in equation (4.2) are used for the calculation in this example:
(36)
(37) Sampling the signal {tilde over (x)}(t) under the Nyquist theorem condition, the time domain signal x(n) can be expressed as:
(38)
(39) The time domain signal x(n) is then converted to a frequency domain through a DFT process:
(40)
where f=1/(Nt) represents the frequency resolution.
(41) Then harmonics can be expressed in terms of spectrum as
(42)
where C.sub.i is the number of cycles within the sampling time Nt. For coherent sampling, C.sub.i is an integer. While for non-coherent sampling, C.sub.i is not an integer and can be expressed in this case as C.sub.i=[C.sub.i]+.sub.i, where [C.sub.i] represents the closet integer to C.sub.i and .sub.i is fractional portion of C.sub.i.
(43) Thus,
(44)
(45) Substituting Equation (4.6) into Equation (4.7), it can be obtained that
(46)
wherein in Equations (4.6) and (4.8), .sub.i[0.5, +0.5].
(47) Then
(48)
is expressed by a L-function:
(49)
(50) As seen from (4.9), if .sub.i is not zero, then L(.sub.i,n) is a non-periodic function which would cause spectrum leakage. To eliminate the leakage, an inverse-L function can be used as a compensation factor:
(51)
(52) Performing IDFT (Inverse Discrete Fourier Transform) on the positive part of spectrum Equation (4.5), it can be obtained that
(53)
(54) Multiplying Equation (4.11) with Equation (4.10), the adjusted complex waveform in time domain can be expressed as
(55)
(56) From Equation (4.12), it is clear that if {circumflex over ()}.sub.i=.sub.i, the spectral leakage will be eliminated.
(57) If a captured waveform has a fractional period within one UTP, it means that sampling is not coherent and potentially large spectral leakage may occur in the spectral analysis. The frequency, amplitude and phase of the test signal can be characterized, for example by the Tabei-Ueda algorithm through FFT using a Hanning window and interpolation. The Tabei-Ueda algorithm is briefly described as below.
(58) An FFT is performed on the captured waveform by using a Hanning window. A local maximum bin (k.sub.max) and the second maximum bin (k.sub.max1 or k.sub.max+1) are searched. The parameter k is calculated by Equation (4.13) where k.sub.neighbor is set as the second maximum bin:
(59)
(60) In Equation (4.13), Vk.sub.neighbor and Vk.sub.max represent the amplitudes of the bins k.sub.max and k.sub.neighbor, respectively
(61) Based on k, the signal frequency, amplitude and phase are calculated by using equations (4.14)-(4.16), as shown in the following.
(62) Frequency (Freq):
(63) If k.sub.max>k.sub.neighbor, then k=k.sub.maxk
(64) If k.sub.max<k.sub.neighbor, then k=k.sub.max+k
(65) Then Freq=k*f where f is the frequency resolution (4.14).
(66) Amplitude (Amp):
(67)
Initial Phase (Phase):
(68)
(69) Under a non-coherent sampling condition, not only the fundamental bin, but also the harmonic bins contain offset in the spectrum. In general, the bin offset of the harmonics can be expressed as
(70)
where i is the harmonic number, k.sub.i is the i.sup.th harmonic bin and M is the maximum number of harmonics to be included for the THD calculation.
(71) To reconstruct the signal in a time domain according to the properties estimated by Tabei-Ueda method, Equation (4.18) is used.
(72)
(73) which represents the nearest integer number to
(k.sub.i{circumflex over ()}.sub.i+0.5)t
(74) A DAC test method according to the embodiment of the disclosure has been validated through comparison with other methods against a paper benchmark. Validation experiments presented herein are performed both by simulation and on physical SOC devices. The following presents the experiment results obtained at different setup conditions.
(75) (1) Offset Bin changes, other parameters are fixed.
(76) TABLE-US-00001 TABLE 1 Setup of different offset bin Items Setup DAC Resolutions 10 Bits (Sample_num: 4096) Fundamental Bin 101 Offset Bin 0.4-+0.4, step 0.1 Harmonic Order in THD 5 calculation Noise added Yes Harmonics added Yes Spur added No
(77)
(78)
(79)
(80) (2) Resolution changes: 8 bits18 bits, others fixed.
(81) TABLE-US-00002 TABLE 2 Setup of different DAC resolution Items Setup DAC Resolutions 10-18 Bits Fundamental Bin 101 Offset Bin 0.3 Harmonics Order 5 Noise Yes Harmonics No Spur No
(82)
(83)
(84) (3) Fundamental Bin changes: 5N/101, others fixed.
(85) TABLE-US-00003 TABLE 3 Setup of different fundamental bin Items Setup DAC Resolutions 10 Bits (Sample size: 4096) Fundamental Bin 5-2005 Offset Bin 0.3 Harmonic Order in THD 5 calculation Noise Yes Harmonics Yes (3.sup.rd harmonic) Spur No
(86)
(87) To evaluate the accuracy and test time of proposed procedure, a smart phone baseband device is used as an experimental sample. There is a DAC for the GSM Transmitter in this SOC device and its SNR and THD are measured. The detailed specification is listed in Table 4.
(88) TABLE-US-00004 TABLE 4 Setup of actual DAC in 3G baseband device DAC of 3G Baseband Device Resolution 12-Bit DAC Update Rate 1MSPS Digitizer Samples 8192 Number Digitizer Actual 0.98753357716MSPS Non- Sampling (80.9901123cycles) coherent Rate sampling Ideal 0.987654320987654MSPS Coherent (81 cycles) Sampling
(89)
(90) The Ideal Signal line 1501 represents the spectrum under the coherent sampling condition. The Conventional line 1502 shows the spectrum under non-coherent sampling condition, with FFT and rectangular window (sampling rate=0.98753357716M SPS). The EFT line 1503 shows the spectrum under non-coherent sampling condition with the EFT process according to an embodiment of the present disclosure.
(91) As shown in
(92) TABLE-US-00005 TABLE 5 Result of DAC testing in 3G baseband device Item Ideal Conventional EFT SNR (dB) 62.87 34.92 62.86 THD (dB) 68.40 66.49 68.42
(93) From the time analysis shown in Table 6, the test time of the EFT process according to an embodiment of the disclosure is only 3.3 ms with 1 Tone estimation and 14.3 ms with 5 Tones estimation (array length: 8192), so it is cost-effective enough in production. Furthermore, on a modern ATE test platform, the calculation time can be hidden by other execution items, so that the proposed procedure is cost effective in mass production.
(94) TABLE-US-00006 TABLE 6 Test time analysis of DAC testing with EFT procedure Tone Number Data Capture (ms) EFT (ms) 1 Tone 8.6 3.3 5 Tones 8.6 14.3
(95) The EFT process according to an embodiment of the disclosure is capable of removing the spectral leakage due to non-coherent sampling in DAC testing so that the frequency domain parameters can be calculated correctly. The simulation and experimental results have proven that this process has both broad coverage and high accuracy. Since this procedure is able to handle more than one tone, it can inherently be used for multi-tone signal processing to get correct dynamic characteristics.
(96) Besides the timing adjustment, the EFT process according to an embodiment of the present disclosure may also include the level adjustment to remove the effect of DC offset drift.
(97) Because the Tabei-Ueda algorithm is used in this example, the accuracy of the results may be sensitive to the number of samples and the interference tones. In some embodiments, the number of samples is greater than 256 and it is twice greater than the bin of maximum harmonics component which is included for THD calculation. This helps solve the issue that the THD value would be degraded due to the bin folding.
(98)
(99) The processing device 1600 may comprise at least one input device 1690 for interaction between a user and the processing device 1600. The input device 1690 may be, for example, keypad, mouse, motion input, image capturing element, gravity sensor, voice receiving element, touch screen, and so on. The processing device 1600 may comprise at least one output device 1670, which may be common output mechanisms as well known for those skilled in the art, e.g. speaker, beeper, flash light, image projecting element, vibration output element, a screen, or a touch screen. The processing device 1600 may comprise a communication interface 1680 for data communication in a wired or wireless manner. For example, the communication interface 1680 may comprise an antenna for transmitting and receiving data based on various cellular protocols, Wi-Fi, Bluetooth, infrared, or Near Field Communication (NFC), and/or comprise a hardware socket based on USB (including micro-USB, mini-USB, etc.), FireWire, HDMI, Lightning, and the like.
(100) Embodiments of the disclosure have been described in detail with reference to the drawings, it should be noted nevertheless that the above is illustrative instead of restrictive. Those skilled in the art may recognize various modifications and alternatives within the scope of the disclosure, which is defined only by the appended claims instead of the specific embodiments described above.