SWEPT FREQUENCY DEVICE TEST

Abstract: The invention relates to a time domain method for obtaining transfer characteristics of a device under test (DUT). The method comprises the steps of applying a sine sweep and a cosine sweep to an input of the DUT, and measuring response signals at an output of the DUT. The sine sweep and cosine sweep together establish a complex input signal, whereby to each instant there is related a particular frequency. Similarly, the respective response signals together establish a complex response signal. The magnitudes and phases of both complex signals are calculated and the transfer characteristics of the DUT then follow from the magnitude ratio and the phase difference of the input signal and the response signal. The invention also relates to an arrangement for testing transfer characteristics of a DUT and to an integrated circuit comprising the necessary elements for testing a subcircuit contained therein.

Description: Swept Frequency Device Test. The invention relates to a method for obtaining transfer characteristics of a device under test (DUT) as a function of frequency, the method comprising the steps of: (1) applying a sine sweep x x [n] to an input of the DUT, with n designating a time index; (2) measuring a response signal V j [n] at an output of the DUT The invention further relates to an arrangement for obtaining transfer characteristics of a DUT as a function of frequency. The invention further relates to an integrated circuit (IC) comprising a waveform generator, a digital signal processing means and a subcircuit with transfer characteristics to be tested. A method as specified in the preamble is known from article "DSP synthesized signal source for analog testing stimulus and new test method", H. Kitayoshi et al., International Test Conference 1985 Proceedings, IEEE Computer Society Press, November 1985. In the known method, an input signal in the form of a sine sweep (also 'swept sine' or 'frequency-swept sinewave') is applied to an analog DUT and a response signal of the DUT is measured. Subsequently, a transfer function of the DUT is estimated with the aid of a frequency domain analysis of the input signal and the response signal. For both the construction of the input signal and the postprocessing a digital signal processor (DSP) is used. DSPs offer a lot of possibilities with respect to both the generation of input stimuli and the postprocessing of the obtained response signals. Of course, when the DUT has an analog input and/or an analog output, as for instance with an analog filter or a digital-to-analog converter (DAC), separate DACs and/or analog-to-digital converters (ADCs) are required in a test environment in which the method is applied, in order to be able to use a DSP for signal generation and/or postprocessing. In order to maintain clarity of the text, we will only describe digital signals being applied to and obtained from the DUT, whereas it is silently understood that, if necessary, appropriate conversions for interfacing with the DUT take place. A sine sweep is a sinusoidal signal with a varying instantaneous frequency. Sine sweeps have the advantage over other input stimuli, like multi-tone signals, that they not only have a low crest factor, but in addition are robust with respect to nonlinear phase changes and can be easily adapted to cover a particular frequency range of interest. A prerequisite of the known method is that a Fourier transformation needs to be applied to the input signal and to the response signal. Fourier transformations are time- consuming and put a burden on test system resources. It is, inter alia, an object of the invention to provide a method as specified in the preamble, that does not rely on Fourier transformations. To this end, the invention provides a method as specified in the preamble that is characterized in that the method further comprises the steps of: (3) applying a cosine sweep to an input of the DUT; (4) measuring a response signal y 2 [n] at the output of the DUT. The cosine sweep x^ [ ] is here defined as a particular sine sweep that is orthogonal to the sine sweep x 2 [n], meaning that for each n, x l [n] and x 2 [n] are associated with, at least approximately, the same instantaneous frequency, whereas their phase difference is ιr/2. In this way, a complex input signal of the form e> 2τ<e[π] with a phase function φ[n] is emulated, and a complex response of the DUT is measured. Using this terminology, x, [n] and y x [n] establish the imaginary part of the complex input signal and the complex response signal, respectively, and x 2 [n] and y 2 [ri] establish the real part of the complex input signal and complex response signal, respectively. During the sweeps, an instantaneous frequency of the input signal, defined as a time derivative ψ 1 [n] of the phase function φ[ri], is varied in order to cover a frequency range of interest. Such a kind of input signal allows frequency-dependent transfer characteristics of the DUT to be determined without using Fourier transformations, as will be explained in the following. Magnitude and phase information of the complex input and response signals at a certain frequency are readily available from well-known formulas. These formulas relate the magnitude M and phase F of a complex quantity C to the real part Re(C) and imaginary part Im(C) of the complex quantity C in the following manner: M = VRe 2 (C) + Im 2 (Q and F = arctan(Im(Q / Re( ). Moreover, said magnitude and phase information can be related to a certain frequency via a known time dependence of the instantaneous frequency of the input signal ψ 1 [n]. Thus, magnitude and phase of input and response signals can be obtained without Fourier transformations, allowing frequency- dependent transfer characteristics related to these entities to be determined in a simple manner. A further advantage of the method according to the invention is that test time can be sacrificed for higher test accuracy, and vice versa. Inherently, the method leads to more precise results when the instantaneous frequency function φ 1 [ri\ of the sweeps varies less rapidly. A sweep of slowly varying instantaneous frequency is, at some instant, a better approximation of a single frequency sinewave than a sweep of rapidly varying instantaneous frequency. In a similar manner, with the method according to the invention it is possible to zoom in on certain frequency ranges of higher interest, e.g. for a filter around a cut-off frequency, by changing the instantaneous frequency ψ 1 [n] in these frequency ranges less rapidly than in the remaining frequency ranges. The measure as defined in Claim 2 has the advantage that a very simple method is provided for estimating a magnitude and a phase of a transfer function of the DUT, that can easily be implemented with a DSP or other digital signal processing means. Transfer functions are important quantities in the characterization of linear, time-invariant systems. The measure as defined in Claim 3 has the advantage that a very simple method is provided for estimating noise and distortion specifications of the converter under test, that can easily be implemented with a DSP or other digital signal processing means. An arrangement for estimating transfer characteristics of a device according to the invention is characterized in that the arrangement comprises: (1) a waveform generator arranged to provide an input of the DUT with a concatenation of a sine sweep and a cosine sweep; (2) a digital signal processing means arranged for analyzing a response signal of the DUT. An IC according to the invention is characterized in that (1) the IC comprises control circuitry for in a test mode controlling the waveform generator and the digital signal processing means; (2) the waveform generator is arranged for in the test mode providing an input of the subcircuit with a concatenation of a sine sweep and a cosine sweep; (3) the digital signal processing means is arranged for in the test mode analyzing a response signal of the subcircuit. This so-called Built-in Self Test (BIST) solution has the advantage that the test environment is less involved in the actual testing since use is made of elements present on the IC itself. The necessary elements for the testing either are included in the IC for establishing in a normal mode some function of the IC or are included in the IC solely for test purposes. The invention is further explained below by way of example, with reference to the accompanying drawing in which Figure 1 is a flow chart of an embodiment of a method according to the invention for estimating a transfer function of a DUT, Figure 2 shows an input signal used in the embodiment of Figure 1, Figure 3 is a flow chart of an embodiment of a method according to the invention for estimating noise and distortion specifications of a converter, Figure 4 is a block diagram of an embodiment of an arrangement according to the invention, Figure 5 is a block diagram of an embodiment of an IC according to the invention. Figure 1 is a flow chart of an embodiment of a method according to the invention for estimating a transfer function of a DUT. In a first step 102, to an input of the DUT a cosine sweep x 2 [n] is applied. The sweep is composed of a cosine of a function 2τφ[n] which varies as n 2 , so that the instantaneous frequency φ 1 [n] of the cosine sweep varies as n. In a second step 104, which coincides with step 102, a response signal y 2 [n], appearing at an output of the DUT as a result of the cosine sweep, is measured. In a third step 106, to an input of a DUT a sine sweep x l [ri\ is applied. Comparable to the cosine sweep, the sine sweep is composed of a sine of the function 2τrφ[n]. In a fourth step 108, which coincides with step 106, a response signal yι [n], appearing at the output of the DUT as a result of the sine sweep, is measured. Per sweep, N samples are taken at a sampling frequency F s , whereas the start frequency is F b and the stop frequency is F e . This is realized by taking [n] = — 1 (F - F b )π ? + F b n, from which follows the instantaneous frequency 2N f[n] = — (F e - F b )n + F b . Other (e.g. non-quadratic) functions are possible. When the DUT is involved in audio signal processing, F s could be 44.1 kHz, and F b and F e , 0.02 and 0.48 times F s , respectively. By taking more samples N per sweep and keeping the sample frequency F s the same, higher accuracy can be achieved at the price of longer test duration. The input signals and the response signals constitute a complex input signal and a complex response signal, respectively. Hereto, the two constituting parts of the complex input signal are orthogonal to each other, meaning that for each n they are associated with the same instantaneous frequency, whereas their phase difference is it 12. In order to guarantee this orthogonality, an accurate timing relationship is required between the instant of starting the sweeps and the start of the sampling process. An alternative way to realize the same objective is be to use a single input signal comprising a concatenation of the cosine sweep and the sine sweep, each sweep having a duration equal to an integer number of sampling intervals, a sampling interval being the amount of time between two sample moments. The indicated order of the applied input signals is not essential. Therefore, it is also possible to carry out the step 102 of applying a cosine sweep x 2 [ ] and the step 104 of measuring a response signal y 2 [n], after the step 106 of applying a sine sweep ^ j [n] and the step 108 of measuring a response signal V j tn]. Finally, with the aid of the measured response signals, an amplitude A[n] and a phase [n] of the transfer function between the input and the output of the DUT are calculated in steps 110 and 112, respectively. With regard to the complex input signal comprising the real and imaginary parts x 2 [ri] and C^/I], the instantaneous magnitude of that signal is y Ix- 2ln] + x 2 2[n] and the instantaneous phase of that signal is arctan( 1 The magnitude and the phase of the complex response signal, having y λ [n] and y 2 [n] as its constituents, can be obtained analogously. The magnitude of the transfer function is defined as the ratio of the magnitudes of the response signal and the input signal. The phase of the transfer function is defined as the phase difference between the response signal and the input signal. Both quantities are a function of instantaneous frequency φ 1 [ri]. Therefore, in the steps 110, 112 of calculating the frequency-dependent amplitude A(φ' [n ) and phase Φ(φ f [n]) of the transfer function between the input and the output of the DUT, the following formulas can be used: AAM) = These formulas define two curves, each curve comprising a sequence of N samples. Figure 2 shows an input signal to be used in the first embodiment. The cosine sweep 202 and the sine sweep 204 are concatenated. Alternatively, both the cosine sweep 202 and the sine sweep 204 are preceded by stationary cycles 206, 208. This is done to allow transients to vanish before the relevant measurements start. Another purpose of these stationary cycles 206, 208 could be to use them for estimating the DC component in the response signals. By subtracting the calculated DC component from the obtained response signals before applying the formulas of the previous paragraphs to them, a more accurate estimate of the magnitude and phase transfer of the DUT can be arrived at. Figure 3 is a flow chart of an embodiment of a method according to the invention for estimating noise and distortion specifications of a converter. The converter can be a DAC or an ADC. In step 302 a complex input signal, as the one in Figure 2, is applied to the converter under test and an actual response signal of the converter is measured. In step 304, for each n an amplitude and a phase of the response signal are determined in the way described in the above paragraphs referring to Figure 1. The determined amplitude and phase of the response signal are corrected for high frequency corruption caused by whatever kind of noise and non-linearities of the converter. This is done by fitting a low (e.g. 10 th ) order polynomial on the determined amplitude and phase of the response signal. In step 306, on the basis of the thus obtained amplitude and phase of the actual response signal, a synthesized response signal is constructed. This synthesized response signal has the same amplitude and phase characteristics of the actual response signal but lacks noise, distortion and possibly introduced offset, as it is constructed in the digital domain. It suffices to construct either the real part or the imaginary part of the synthesized response signal. The relevant actual response signal and the synthesized response signal are subtracted from each other in step 308, resulting in an error signal. The error signal contains information on the noise and distortion specifications of the converter under test. From the error signal, in step 310 there is estimated and subtracted an offset. This is accomplished by calculating for each n a mean value of the error signal in a narrow window of 15 samples around n and fitting an offset curve, being a low (e.g. 10 th ) order polynomial, on the calculated mean values. The latter is done to suppress high- frequency corruption of the calculated mean values and is based on the assumption that the offset only varies slowly with frequency. Subsequently, the offset curve is subtracted from the error signal in order to arrive at a truly AC error signal. The offset curve is made available in order to provide further specifications of the converter under test. In step 312 the power P nά [n] of the error signal is calculated, corresponding with the power of noise and distortion of the actual response signal. Generally, the power P z of a discrete-time signal z is defined as the mean squared value of the signal: the calculation extending over all samples of the signal. For this embodiment of the invention, however, we have to apply that definition in a narrow window of, say, 11 samples wide, since otherwise the frequency information would get lost. The rather narrow window leads to an erratic R nd [/z]-curve, which, again, is mended by fitting a low order polynomial on the curve. In step 314 the power P τ [n] of the response signal is calculated. The power of a sinewave is defined as the square of its magnitude. For the sweep-like response signal we can use the estimated magnitude of the response signal as obtained in step 304. Finally, in step 316 the ratio of P τ [n] and P nά [ri] is calculated for each n. The ratio of signal power and noise and distortion power is known as the Signal-to-Νoise-And-Distortion (SIΝAD) figure. With the known time dependence of the instantaneous frequency of the applied input signal, a SIΝAD curve is obtained over the frequency range of interest. Alternatively, in step 304 a magnitude and a phase of a transfer function of the converter could be calculated. By making these quantities available, further specifications of the converter under test are obtained. The synthesized response signal could then be obtained with the help of these quantities, taking the input signal into account. Figure 4 is a block diagram of an embodiment of an arrangement according to the invention. It is suitable for implementing both methods described above. A digital waveform generator 404 is arranged for generating a complex input signal like the one of Figure 2. A digital signal processing means 406 is included for postprocessing. The digital waveform generator 404, the digital signal processing means 406 and, if necessary, the DUT itself as well, are under control of a control unit 408 for initialization, synchronization and triggering of various events during testing. A DUT 402 can be connected to the arrangement in various ways. A DAC 404 and an ADC 412 are included in the arrangement so that, apart from a digital test input 420 and a digital test output 416, an analog test input 418 and an analog test output 414 are provided. In Figure 4 it is assumed that the DUT 402 has an analog input and a digital output (e.g. an ADC). Therefore, test output 414 and test input 420 are used. Here, the digital waveform generator 404 and the digital signal processing means 406 are thought to be independent digital elements, for instance DSPs. Alternatively, digital waveform generator 404 and DAC 410 are integrated in a dedicated waveform generator. Further alternative arrangements are possible, for instance an arrangement in which both the waveform generation and the postprocessing are handled by a single DSP. The block diagram of Figure 4 provides only an exemplary arrangement along the lines of a logical break-up of the necessary functional elements. Figure 5 is a block diagram of an embodiment of an IC according to the invention. Essentially, it comprises a BIST implementation of the arrangement of Figure 4 for testing one or more subcircuits of the IC itself. A digital waveform generator 504 and a digital signal processing means 506 are assumed to be present on the IC for executing some function in a normal mode of the IC. Control circuitry 508 is provided for, during a test mode, controlling them, and, if necessary for the testing, controlling further elements on the IC. During the test mode, the digital waveform generator 504 and the digital signal processing means 506 are connected to subcircuit 502, the latter undergoing a test according to one of the previously described methods under control of control circuitry 508. When more subcircuits to be tested analogously are present in the IC, the digital waveform generator 504 and the digital signal processing means 506, in combination with the control circuitry 508, could be used for testing them as well.

Claims: CLAIMS: 1. A method for obtaining transfer characteristics of a device under test (DUT) as a function of frequency, the method comprising the steps of: (1) applying a sine sweep x^ [n] to an input of the DUT, with n designating a time index; (2) measuring a response signal y { [n] at an output of the DUT; characterized in that the method further comprises the steps of: (3) applying a cosine sweep x 2 [n] to an input of the DUT; (4) measuring a response signal y 2 [n] at the output of the DUT. 2. A method as claimed in Claim 1, characterized in that the method further comprises the step of: (5) estimating a magnitude A[n] and a phase Φ[n] of a transfer function between the output and the input of the DUT with the aid of the following formulas: A[n] = Φ[«] = arctan 3. A method as claimed in Claim 1, characterized in that the DUT is a converter for converting signals between an analog and a digital domain, and that the method further comprises the steps of: (5) generating a synthesized response signal y[n] corresponding to one of the sweeps . [«] and x 2 [ri\, the synthesized response signal y[rc] having a magnitude A y [n] and a relative phase Φ y [n] being derived with the aid of formulas: A y [n] = y 2 [n] + y 2 [n] Φ y [n] = arctan (6) generating an error signal e[n] by subtracting the synthesized response signal y[n] and the relevant one of the response signals y^n] and y 2 [n] from each other; (7) estimating noise and distortion specifications of the converter on the basis of the error signal e[n]. 4. A method as claimed in Claim 3, characterized in that in the analyzing step a power spectrum of the error signal e[n] is obtained by averaging squares e 2 [π] in a sliding window. 5. An arrangement for obtaining transfer characteristics of a DUT as a function of frequency, characterized in that the arrangement comprises: (1) a waveform generator arranged to provide an input of the DUT with a concatenation of a sine sweep and a cosine sweep; (2) a digital signal processing means arranged for analyzing a response signal of the DUT. 6. An arrangement as claimed in Claim 5, the DUT being a converter for converting signals between an analog and a digital domain, the arrangement being characterized in that the digital signal processing means is arranged for: (1) generating an error signal being a difference of a synthesized response signal and an actual response signal; (2) analyzing noise and distortion specifications of the converter on the basis of the error signal. 7. An integrated circuit (IC) comprising a waveform generator, a digital signal processing means and a subcircuit with transfer characteristics to be tested, characterized in that: (1) the IC comprises control circuitry for in a test mode controlling the waveform generator and the digital signal processing means; (2) the waveform generator is arranged for in the test mode providing an input of the subcircuit with a concatenation of a sine sweep and a cosine sweep; (3) the digital signal processing means is arranged for in the test mode analyzing a response signal of the subcircuit.

Inventors: JANSSEN AUGUSTUS JOSEPHUS ELIZ, LOOIJER MARC THEODOR, SEUREN GERARDUS PETRUS HELENA, ZWEMSTRA TACO, JANSSEN, AUGUSTUS, JOSEPHUS, ELIZABETH, MARIA, LOOIJER, MARC, THEODOR, SEUREN, GERARDUS, PETRUS, HELENA, ZWEMSTRA, TACO
Applicants: KONINKL PHILIPS ELECTRONICS NV, PHILIPS SVENSKA AB, KONINKLIJKE PHILIPS ELECTRONICS N.V., PHILIPS AB
Application year: 1998
Main classification: H03M1
IPC codes: G01R23, G01R27, G01R29, G01R31, H03M1, H03M7