RATIOMETRIC FOURIER ANALYZER

Abstract: A ratiometric Fourier analyzer is providing for determining the frequency components of the output waveforms of electronics circuits with greater accuracy and efficiency than conventional, discrete Fourier analyzers by eliminating errors due to aliasing without increasing the time necessary for analysis. Ratiometric Fourier analyzers in accordance with the present invention detect values of an output waveform from a circuit simulator at time intervals selected according to features of the output waveform being analyzed. A functional representation of the output waveform over each interval is generated using a polynomial fit to the detected values of the waveform, and a Fourier integral for each frequency of interest is calculated for interval using the functional representation of the waveform. The Fourier intervals are then summed over the intervals of the output waveform to yield the Fourier coefficient at a given frequency for the output waveform. The accuracy and efficiency of the method are enhanced by employing polynomial fitting procedures to the same order in both the Fourier analyzer and the simulator and by selecting the sampling points of the Fourier analyzer at the same time steps used by the simulator to generate the output waveform. The RFA can be used to determine a small number of harmonics in a broadband signal without distortion due to aliasing.

Description: RATIOMETRIC FOURIER ANALYZER Background of the Invention Field of the Invention The present invention is a method and apparatus for determining the frequency components of a waveform that is sampled at a discrete set of times, and more particularly, for determining the Fourier coefficients of the output waveform of a circuit or a simulator, based on samples of the output waveform taken at selected time intervals. Related Art In order to characterize the behavior of circuits and electronic systems, it is often useful to analyze the frequency components of the output waveform that is generated by the circuit or electronic system. The output waveform may be generated by an actual circuit or electronic system, but more typically it is generated by a circuit simulator. Typically, the simulator is driven by a reference signal at a fundamental frequency and the amplitudes of the various harmonic frequencies in the output waveform are identified by means of Fourier analysis, whereby the time-dependent output waveform of the circuit or system is transformed into a frequency-domain function. The amplitude of the frequency domain function at a given frequency indicates the relative contribution of the frequency to the output waveform. The results of Fourier analysis are typically represented as a series of Fourier coefficients, the magnitudes of which indicate the distribution of energy in the output waveform among the fundamental and harmonic frequencies. Conventional Fourier analyzers typically detect the actual or simulated output waveform at uniform time intervals, (the sampling rate) and the integral transform that relates the Fourier coefficient to the detected output waveform is approximated by a discrete Fourier series. The terms of this Fourier series are determined for each time interval using a representative value of the output waveform for the interval and summing each term in the series. Accurate analysis of the frequency components of an output waveform requires careful selection of the sampling rate, since this rate limits the frequency components that can be resolved in a Fourier analysis. The highest frequency component of a waveform that can be accurately resolved by sampling the waveform every Δ seconds is (2Δ) ~ 1. Frequency components falling outside the range ±(2Δ) " 1 vary too quickly to be accurately resolved by sampling every Δ seconds. Instead, the energy in these frequency components is added to Fourier coefficients of frequency components within the range. The resulting distortion of the Fourier coefficients is referred to as aliasing and is a major source of errors in the Fourier analysis of broad band output waveforms. For this reason, the sampling rate must be selected so that all frequency components having substantial amplitude in the output waveform fall within the frequency range, ±(2Δ) " '. This is a particularly burdensome requirement for output waveforms having broad frequency bands. Even where the sampling rate is sufficiently fast to resolve substantially all frequency components in an output waveform, discontinuous artifacts in the waveforms generate error components across a broad band of frequencies. Aliasing couples the errors at frequencies outside the range, ±(2Δ) ~ 1, into the Fourier coefficients of frequencies within the range. Such error producing discontinuities arise, for example, where an output waveform has not completely settled between analysis cycles, where the wrong period is used for the waveform, or where the waveform computed by a simulator is not completely converged. Errors in Fourier coefficients may also be introduced through the interpolation method used by a simulator to compute the output waveform. Particularly where the simulator employs a low order interpolation scheme, the time step between adjacent points of the simulated output waveform must be sufficiently small to keep errors in the interpolated output waveform within selected limits. However, small time steps are unnecessary for analyzing the relatively flat portions of the output waveform, and the selected time step typically represents a trade off between accuracy and efficiency in computing the output waveform. Summary of the Invention The present invention is a ratiometric Fourier analyzer that resolves the frequency components of an output waveform with increased accuracy and efficiency. The Fourier analyzer of the present invention eliminates errors due to aliasing without increasing the time necessary for analysis. In addition, the rate at which the waveform is sampled varies according to the properties of the output waveform, allowing the Fourier analyzer to sample the output waveform more or less frequently, as required. The ratiometric Fourier analyzer optionally provides a channel for Fourier analyzing the signal that drives the circuit or simulator to generate a reference waveform for checking the accuracy of the analyzer. By normalizing the Fourier coefficients of the output waveform to the amplitude of the fundamental frequency of the reference signal, large signal transfer functions and immitances of the circuit can be computed. A Ratiometric Fourier analyzer in accordance with the present invention comprises a detector having an input for detecting values of an ouptut waveform at selected times and a processor having a memory that includes a control program. Modules within the control program determine the duration of the selected intervals for detecting values of the output waveform, generate a representation of the output waveform from the detected values, determine a Fourier integral over each interval, and calculate a Fourier coefficient from the Fourier integrals. The ratiometric Fourier analyzer in accordance with the present invention detects values of an output waveform from a circuit or a system simulator at time intervals selected according to features of the output waveform being analyzed. A functional representation of the output waveform over each of the selected intervals is generated by a module of the control program from the detected values of the output waveform, and a Fourier integral for each frequency of interest is calculated by another module of the control program over the selected interval using this functional representation. The Fourier integrals are then summed over the intervals of the output waveform by a module of the control program to yield the Fourier coefficient at a given frequency for the output waveform. Typically, Fourier coefficients of the output waveform are calculated at the fundamental frequency and for various harmonics of the fundamental frequency. In a preferred embodiment of the invention, the functional representation of the output waveform is generated by a processor implemented polynomial fitting procedure. Where the output waveform is provided by a simulator, the accuracy of the method may be further improved by employing polynomial fitting procedures to the same order in both the Fourier analyzer and the simulator. The accuracy and efficiency of the method may also be enhanced by selecting the sampling points of the Fourier analyzer at the same time steps used by the simulator to generate the output waveform. Brief Summary of the Drawings Fig. 1 is a schematic representation of the output of a conventional Fourier analyzer, exhibiting the effects of aliasing. Figs. 2A and 2B are schematic representations of a ratiometric Fourier analyzer in accordance with the present invention, interacting with a circuit and a system simulator, respectively. Fig. 3 is a flow chart representing the method of the present invention. Fig. 4 is a schematic diagram of the frequency output of a sigma-delta modulator. Fig. 5A and 5B are the output of a pulse width modulator and the results of a Fast Fourier Transform analysis of the output, respectively. Detailed Description of the Invention Referring to Fig. 1 A, there is shown an output waveform 10 (h(t)) representing an output signal from a circuit or a simulator plotted as a function of time. The sharp curvature of waveform 10 near point 12 indicates that a Fourier transform of output waveform 10 will include contributions from high frequencies. On the other hand, the relative flatness of waveform 10 near point 13 indicates that low frequencies will also be present in the Fourier transform of output waveform 10. Thus, the Fourier transform of output waveform 10 will have non-zero amplitude over a broad range of frequencies. Referring now to Fig. IB, there is shown an accurate Fourier transform 20 of output waveform 10. Formally, Fourier transform 20 is obtained from output waveform 10 by means of a Fourier transform integral: (Eq.l) H( = i h(t) e( 2πi f t) dt. Here, h(t) corresponds to output waveform 10 and H(f) corresponds to Fourier transform 20 of output waveform 10. Conventional Fourier analyzers approximate the integral transform of Eq. 1 with a discrete summation. This discrete Fourier transform (DFT) procedure may yield reasonably accurate results provided the summation is done over finely divided time intervals. In practice, this means that output waveform 10 must be sampled at a high sampling rate. Since high sampling rates increase the time necessary to analyze a waveform, conventional DFT Fourier analyzers typically sample output waveforms at the lowest rate that does not introduce aliasing. For example, a conventional DFT Fourier transform analyzer analyzes waveform 10 at equal time intervals 30, each having a length, Δ, equal to the inverse of the selected sampling rate. Within each time interval 30, for example at time t^ in the k tn interval, a value, h^), representative of waveform 10 in the k tn interval is multiplied by a factor exp( 2πi f; t^ ) for each frequency f j of interest. The products are summed over all intervals 30 and multiplied by the uniform width Δ of intervals 30 to yield the Fourier coefficient, Hj, for the frequency, fj. (Eq. 2) Hj * Δ Σ h(t k ) exp( 2πi fj t k ). Typically, the frequencies analyzed are the frequency of the signal that drives the circuit or simulator (fundamental) and its harmonic frequencies. Aliasing arises in this discrete Fourier transform method when frequency components of waveform 10 fall outside a frequency that is determined by the sampling interval Δ. This frequency range includes frequencies having absolute values between f^ = (2Δ)" * , where negative frequency components are the complex conjugates of positive frequency components. The Fourier amplitudes of any frequencies outside the range, ±fj^, that contribute to output waveform 10 are folded back and added to the amplitudes of frequencies within this range, ±fj Referring now to Fig. 1C, there is shown a Fourier transform 21 of output waveform 10 computed by means of Eq. 1, where the width Δ of time intervals 30 is too broad to resolve all significant frequency components of output waveform 10. As a result, significant frequency components exist outside the range ±(2Δ) ~ 1 and computed Fourier transform 21 is distorted by alias components 23. Also shown for reference is accurate Fourier transform 20 computed using a shorter time step Δ. The distortion of computed Fourier transform 21 due to alias 23 is indicated by the greater amplitude of computed Fourier transform 21 relative to Fourier transform 20 at frequencies just within the range, ±f , and the absence of contributions to computed Fourier transform 21 from frequencies outside this range. Even where intervals 30 are selected to be sufficiently short for the frequency components of output waveform 10, errors may be introduced by discontinuities in output waveform 10. Such discontinuities arise when waveform 10 is not exactly periodic due to circuit settling behavior or when the period designated for the reference signal is incorrect. In either case, discontinuities introduce a broad band of frequency components which are likely to exceed the range, ±(2Δ) ~ 1. In addition, approximating output waveform 10 over an interval 30 by a fitting function contributes an interpolation error to Fourier coefficients calculated by means of Eq. 2. Referring now to Fig. 2A, there is shown a schematic representation of a ratiometric Fourier analyzer (RFA) 50 in accordance with the present invention. RFA 50 is shown connected to a simulator 52 which may be programmed to provide output waveforms 10 representative of a wide variety of electronic circuits and systems. RFA 50 further comprises a detector 49 and a processor 51 coupled to a memory 53 in which a control program 55 is stored. Control program 55 controls the detection and analysis of an output waveform 10 as discussed below in conjunction with Fig. 3. A driving signal 54 is applied to an input 56 of simulator 52 and an output waveform 10 generated by driving signal 54 is coupled from an output 58 of simulator 52 to an input 60 of RFA 50. A control line 65 couples analyzer information, such as the desired fundamental frequency of the analysis, the order of interpolation used by the simulator, and the location of break points, from simulator 52 to RFA 50. A feedback signal line 64 couples information from RFA 50 back to simulator 52 and may be used, for example, to trigger simulator 52 to provide a new data point or to bound the time step. A reference signal line 66 couples driving signal 54 to a second input 68 of RFA 50 so that driving signal 54 may be analyzed by RFA 50 for signal calibration and normalization purposes. For example, where driving signal 54 is a pure sinusoidal signal, it should have a non-zero Fourier coefficient only for the fundamental frequency and zero Fourier coefficients for all other frequencies. Deviations from this result provide a measure of the performance of RFA 50. In addition, the Fourier coefficient of reference signal 54 may be used to determine the gain or immitance as a function of frequency for waveform 10. Referring now to Fig. 2B, there is shown a schematic diagram in which RFA 50 is connected to receive an output waveform 10 of an actual circuit or electronic system 70. The major difference between the configurations of Fig. 3B and 3A is that feedback signal line 64 is not present in Fig. 3B since electronic system 70 provides a continuous output waveform 10 without triggering by RFA 50. Referring now to Fig. 3, there is shown a flow chart representing a method 90 implemented by control program 55 operating in conjunction with processor 51 of RFA 50 to analyze output waveforms 10. The flow chart of Fig. 3 is applicable to waveforms 10 whether they are produced by a simulator 52 or an actual electronic system 70. Process 90 begins when an initial value of output waveform 10 is detected 100 at input 60 of RFA 50. Process 90 then waits 110 until a selected interval has passed, at which time a new value of output waveform 10 is retrieved. Procedures for selecting the duration of the wait between retrieval of new values for output waveform 10 are discussed below. The new value of output waveform 10 is combined with previous values of waveform 10 to generate 130 a functional representation of output waveform 10 between the new value and the preceding value by a curve fitting procedure. The functional representation of output waveform 10 is then used to compute 140 a Fourier integral over the selected interval between the previous and present value of output waveform 10 for each frequency of interest. Use of a functional representation of waveform 10 in the selected interval allows the Fourier integral to be evaluated analytically, eliminating the aliasing problem that arises in discrete Fourier analysis. The computed Fourier integral is then added 150 to the Fourier integrals calculated for the same frequency over previous intervals of output waveform 10. If the new value is not the last value of output waveform 10, i.e. if output waveform 10 has not been sampled over a full period, T, process 90 branches 160 to wait 110 for the next value of output waveform 10. Otherwise, RFA exits 190 process 90. The details of each of steps 110-190 are discussed below. The duration of wait 110 may be based on a variety of criteria. For example, the selected intervals between retrieving 120 a new value of output waveform 10 may be uniform, with their duration determined by the expected frequency bandwidth of output waveform 10 or by the period, T, of waveform 10. However, the use of uniform intervals imposes substantial trade-offs between accuracy and efficiency, since short time intervals (high sampling rates) are necessary to accurately transform sections of output waveform 10 having large curvatures (second derivatives) but are unnecessarily short for relatively flat sections of output waveform 10. In a more preferred embodiment of the present invention, the duration of the selected interval varies according to the behavior of output waveform 10. For example, when output waveform 10 is provided by simulator 52, process 90 waits 110 until simulator 52 computes a new value for output waveform 10. In this case, the selected interval is determined by simulator 52, which computes values for output waveform 10 at shorter intervals as the curvature of output waveform 10 increases and at longer intervals as the curvature of output waveform 10 decreases. For this purpose, simulator 52 may employ error criteria in which the selected interval between calculated values of output waveform 10 decreases as the rate of variation in the values increases. In this case, process 90 waits 110 until a new value is coupled to RFA 50 from output 58 of simulator 52. This method of selecting intervals has the advantage that curve fitting in simulator 52 and RFA 50 can be done to the same level of accuracy without sacrificing efficiency. In an alternative embodiment of process 90 that is suitable for use with actual circuits or systems 70, RFA 50 can monitor output waveform 10 and exit state 110 when a triggering feature of output waveform 10 is detected. For example, since the accuracy of a curve interpolation scheme employed in a fitting step 130 depends on the curvature of output waveform 10, RFA 50 can monitor the second derivative of output waveform 10 and exit wait state 110 at a point determined by the second derivative of output waveform 10. In this case, process 90 is effectively doing the analysis done by simulator 52 in the embodiment described above. Once process 90 reaches the end of the selected interval, the new value of waveform 10 at input 60 of RFA 50 is retrieved 120. The new value of waveform 10 is used along with previously detected values to fit 130 a functional representation to output waveform 10 in the selected interval between the time the new value at input 60 is retrieved 120 and the time the previous value was retrieved 120. In a preferred embodiment of the present invention, a polynomial fit is employed to represent output waveform 10 in the selected interval. For example, letting s n represent the new value of waveform 10 detected at time t n and s n .j, s n _2, s n _3, . . represent previous values of waveform 10 detected at times t n .j, t n _2, t n _3, . . respectively, waveform 10 in the selected time interval between t n and t n _ι (the n tn interval), may be represented by: Here, S(τ) n , represents waveform 10 in the n tn interval, c mn is the coefficient of the m tn power of the time variable, τ, in the polynomial expansion, and M is the order of the polynomial. Each coefficient, c mn , is related to the value of output waveform 10 and its derivatives over the selected interval. The coefficients, c mn , can be computed from the data points and times, {s n , s n _ι , .} and {t n , t n _ι ,. .}, respectively, using any of a variety of well known algorithms. Once S(τ) n has been fitted 130 from data points {s n , s n .j, . . } and times { t n , t n _ j , . . } a Fourier integral over the selected interval, t n , t n _ι , is computed 140. The Fourier integral for a frequency, f(k) = kω, is given by: 2 r 2 r M M (Eq. 4) Fl n?k = - J S n (τ) cos(kωτ) dτ = - J ∑ mπ τ"' cos(kωτ) dτ = ∑ c mn α km (n) ' * m=0 =0 a km (n) is the analytically integrable integral, — J T m cos(kωτ) dτ over the interval t n - t n _ι, and has the general form: (Eq. 5) α m(n) - 1 Here, [ — ] indicates integer division by 2, i.e. [— ] = 2. Thus, the general form of α(n) km may be calculated 140 for the start and endpoints, t n , t n _ι of each selected interval for each frequency of interest. The FI n k computed 140 for each frequency are added 150 to the Fourier coefficient (FC k ) for the frequency which includes the FIp ^ calculated for each preceding interval, p, at the frequency, kω. Use of the FI n ,k m P r °cess 90 eliminates errors due to aliasing as well as errors introduced by approximating the integral of Eq. 4 with a discrete series. At step 160 it is determined whether the last value of output waveform 10 has been detected. If not, process 90 repeats steps 110-150 for the next interval, n+1. If n is the last interval in waveform 10, process 90 is exited 190. The resolution with which Fourier coefficients can be computed using the Fourier analyzer of the present invention may be demonstrated by examining the output waveform of a circuit in which harmonic distortion is expected to be minimal. For this purpose, a circuit having a near sinusoidal behavior is selected since the Fourier coefficients of the higher harmonics will be small and therefore difficult to detect. Table 1 Harmonic SPICE2g6 Spectre Harmonic Balance fundamental 875 mV I V IV 2nd -40.5 dB -98.6 dB -98.5 dB 3rd -43.2 dB -1 16 dB -120 dB 4th -24.3 dB -125 dB -169 dB 5th -33.3 dB -124 dB -143 dB 6th -33.3 dB -125 dB -196 dB 7th -24.3 dB -125 dB -165 dB THD 9.55% .0012% .0012% Referring now to Table 1 , there is shown the results of a circuit simulation in which RFA 50 analyzed an output waveform 10 from simulator 52 of a low distortion μa741 operational amplifier in unity gain configuration. Simulator 52, a Spectre simulator, manufactured by Cadence Design Systems, Inc., was driven with a low frequency (1kHz), low amplitude (1 Volt peak amplitude) driving signal 54 and the first nine harmonics of a 10 ms transient waveform 10 were determined. The second column of Table 1 shows results generated with a conventional discrete Fourier transform (DFT) analyzer provided with a SPICE2g6 simulator. The fourth column of Table 1 shows results generated by harmonic balance, a process that yields highly accurate results for low distortion waveforms. Accordingly, the harmonic balance results serve as a standard in this comparison. The amplitudes of the fundamental frequency and the second through seventh harmonics were computed for each system. In addition, the total harmonic distortion (THD) is calculated and reported in the last row. As indicated by the harmonic balance results in the third column, the THD for the μa741 operational amplifier exhibits very little harmonic distortion. A comparison of the second, third, and fourth columns indicates that the Fourier analysis done using the conventional Fourier analyzer of SPICE2g6 is substantially less accurate than the Fourier analysis done using either the RFA of the present invention or the harmonic balance method. For example, the present invention and the harmonic balance method indicate relative amplitudes of -124 dB and -143 dB, respectively, for the fifth harmonic while the DFA method indicates a relative amplitude of -33.3 dB. Similar discrepancies between the DFA based method of column 1 and the methods of columns 3 and 4 are present in the other harmonics and the fundamental. Table 2 Harmonic SPICE2g6 Spectre Harmonic Balance fundamental 997 mV 1 V I V 2nd -55.3 dB -98.5 dB -98.5 dB 3rd -58.1 dB -120 dB -120 dB 4th -53.3 dB -159 dB -169 dB 5th -55.9 dB -142 dB -143 dB 6th -55.9 dB -164 dB -196 dB 7th -53.3 dB -165 dB -165 dB THD 0.48% 0.0012% 0.0012% The fact that the noise limits in Table 1 are attributable to errors in the waveforms rather than to errors in the Fourier analysis methods is demonstrated with reference to Table 2. Table 2 includes comparable results for the case in which the waveforms were calculated to greater accuracy by setting more stringent limits on the errors tolerated when simulator 52 solves the Kirchoff circuit law. By coincidence, the number of intervals and the placement of the time points defining the intervals was not altered for the method of the present invention. Consequently, the accuracy of the Fourier analysis is substantially unchanged as indicated by the relative size of the amplitudes reported in columns 3 and 4. However, the noise floor does decrease to about -160 dB. The SPICE2g6 results on the other hand show a substantially larger shift as the waveforms are calculated with greater accuracy. However, the accuracy of the Fourier analysis done by the conventional (DFA) method remains substantially less than that of the method of the present invention. The accuracy with which the Fourier components of a limited number of harmonics can be determined by the method of the present invention is demonstrated by analyzing the output signal of a ΣΔ modulator. Unlike the near sinusoidal output waveform of the μa741 operational amplifier discussed above, the output signal of a ΣΔ modulator is a long sequence of integers. The distortion of the ΣΔ modulator is determined by the value and order of these integers rather than the detailed shape of the waveform. For this reason, the accuracy of the analysis will be independent of the simulator, and an FFT analysis will be accurate as long as the analysis extends over a sufficiently broad frequency range. Referring now to Fig. 4 there is shown an output signal of a ΣΔ modulator. It can be seen from Fig. 4 that the output signal includes a broad band of frequencies. Consequently, if there are any aliasing problems they will be apparent when the Fourier coefficients of this broad band signal are determined using only some of the many harmonics present in the signal Table 3 Harmonic Fourier Integral FFT fundamental IV IV 2nd -63.3 dB -63.3 dB 3rd -54.3 dB -54.3 dB 4th -55.3 dB -55.3 dB 5th -51.6 dB -51.6 dB 6th -48.9 dB -48.9 dB 7th -47.7 dB -47.4 dB THD 0.905% 1.414% Referring now to Table 3, there are shown Fourier coefficients of the first seven harmonics of the output signal shown in Fig. 4, as computed using the method of the present invention and using a fast Fourier transform (FFT) to compute the discrete Fourier transform. In order to obtain the THD value shown in column 3, the FFT process had to evaluate 512 harmonics. Fortunately, the FFT process is a reasonably efficient means for evaluating discrete Fourier transforms. FFT analyze based on narrower frequency ranges produced substantial error in the calculated Fourier coefficients due to aliasing. Comparable accuracy was obtained for the coefficients calculated with the method of the present invention employing only the first seven harmonics. This is possible because aliasing has been eliminated from the method of the present invention and undetermined harmonics have no impact on the Fourier coefficients of the frequencies of interest. The FFT method for evaluating discrete Fourier transforms is not used unless the analysis can employ uniform sampling efficiently. For example, consider an RF mixer circuit having an input frequency of 2.7 GHz and an LF output frequency of 500 MHz. To determine the distortion of the mixer, the input signal is modulated at 1MHz. In this circuit, the IF frequency is the 500 tn harmonic of the modulation frequency. The mixing of different frequencies creates sharp transitions that would require very small sampling intervals. This effectively precludes the use of uniform sampling and thus FFT. However, the method of the present invention may be applied with no loss of accuracy or efficiency. Table4 Harmonic RELTOL= = 10-3 RELTOL=10 "6 496th -81.7 dB -93.1 dB 497th -60.0dB -68.2 dB 498th -52.1 dB -53.3 dB 499th -6.06dB -6.05 dB 500th 56.2 dB 56.3 dB 501st -6.05 dB -6.05 dB 502nd -57.7 dB -53.3 dB 503rd -63.9 dB -68.4 dB 504th -77.4 dB -98.1 dB Referring to Table 4, there is shown a calculation for the amplitudes of the four harmonics on either side of the LF frequency. Since aliasing is not a problem in the method of the present invention, Fourier coefficients need only be computed for the eleven harmonics of interest and the computation can be done efficiently. For example, the minimum interval employed during the analysis using the method of the present invention was about six times smaller than the average interval employed. In order to obtain comparable resolution, the FFT method would have to use the minimum interval throughout the analysis. Consequently, the analysis would take about six times longer. Referring now to Fig. 5A, there is shown the output of a pulse-width modulator operated at 25 pulses per period, where the width of the output pulses vary sinusoidally with time. Fourier analysis of the output waveform of a pulse-width modulator is difficult to perform efficiently and accurately with conventional DFT analyzers since the output switches from high to low states at arbitrary times, whereas the DFT can not resolve transitions any that are shorter than the time interval width Δ. This is demonstrated in Fig. 5B, which shows the amplitude of the first through the fifth harmonics as a function of the number of data points analyzed. For example, it requires approximately 10^ data points to resolve the first and second harmonics accurately and the third, fourth, and fifth harmonics are still not resolved using more than 10^ data points. The number of points necessary to accurately resolve these harmonics increases as the number of pulses per period increases. Table 5 Harmonic Fourier Integral FFT fundamental I V IV 2nd -48.1 dB -48.0 dB 3rd -56.8 dB -56.8 dB 4th -93.8 dB -84.6 dB 5th -106 dB -88.0 dB 6th -138 dB -86.2 dB 7th -154 dB -86.2 dB 8th -183 dB -87.8 dB 9th -201 dB -84.7 dB Referring now to Table 5, there is shown the results of Fourier analyses of a pulse-width modulator using the method of the present invention and using a 64K point FFT. As can be seen from the table, RFA 50 resolves the second through ninth harmonics more accurately than a FFT analysis done using a conventional DFT on 64,000 data points per period. Thus, despite a data base of almost 10^ points per pulse, the conventional DFT has failed to resolve the fourth through ninth harmonics. On the other hand, RFA 50 employing process 90 provides high resolution results using 575 data points. Thus, a ratiometric Fourier analyzer has been presented for analyzing the frequency components of output waveforms with improved accuracy and efficiency. The ratiometric Fourier analyzer of the present invention samples values of the output waveform at time intervals selected in accordance with the properties of the waveform, generates a functional representation of the waveform from the sampled values, and uses the functional representation to analytically evaluate Fourier integrals over the corresponding intervals. The ratiometric Fourier analyzer eliminates errors in signal analysis due to aliasing as well as errors associated with approximating Fourier integrals by discrete Fourier series, and can be used to efficiently determine a small number of Fourier coefficients in broad band signals. What is claimed is:

Claims: Claims 1. A computer implemented method for determining the Fourier coefficients of an output waveform of an electronic circuit, the method comprising the steps of: detecting a value of the output waveform at time intervals selected according to a feature of the output waveform; determining a functional representation of the output waveform over each selected time interval by interpolating the waveform between adjacent detected values; evaluating a Fourier integral over each selected time interval using the functional representation of the output waveform over the time interval; and computing the Fourier coefficients of the output waveform by summing the Fourier integrals from each selected time interval. 2. The method of claim 1 wherein the step of determining a functional representation of the output waveform over each selected time interval comprises fitting a polynomial function between the adjacent data points that correspond to the selected time interval. 3. The method of claim 2 wherein the polynomial function is at least a second order polynomial. 4. The method of claim 1 wherein the step of detecting the output waveform at selected time intervals according to a feature of the output waveform comprises the substeps of: determining the curvature of the output waveform from previously detected values of the output waveform; and detecting a new value of the output waveform at an interval determined by the curvature of the output waveform. 5. The method of claim 4, wherein the curvature of the output waveform is determined by the second derivative of the output waveform. 6. The method of claim 1 wherein the output waveform is the output waveform of an actual electronic circuit. 7. The method of claim 1, wherein the output waveform is the output waveform generated by a circuit simulator. 8. The method of claim 7, wherein the step of detecting a value of the output waveform at time intervals selected according to a feature of the output waveform comprises; generating a new value for the output waveform with the circuit simulator; and detecting the new value of the output waveform generated by the circuit simulator. 9. The method of claim 8, wherein the step of generating a new value for the output waveform with the circuit simulator comprises computing the output waveform produced by a circuit using a polynomial fitting procedure. 10. The method of claim 9, wherein the step of determining a functional representation of the output waveform over each selected time interval comprises fitting a polynomial function having the same order as used in the polynomial fitting procedure of the circuit simulator for generating values of the output waveform. 11. The method of claim 1 comprising the additional steps of: detecting an input waveform to the electronic circuit; determining the Fourier coefficient of the fundamental frequency of the input waveform; and calculating the ratio of the Fourier coefficients of the output waveform to the Fourier coefficient of the fundamental frequency of the input waveform. 12. The method of claim 1 wherein the step of detecting the output waveform comprises the substeps of: detecting a modulated output waveform from a circuit; demodulating the modulated output waveform; and detecting the demodulated output waveform at selected time intervals to provide a discrete set of sampled data points representing the output waveform. 13. A Fourier analyzer for determining the Fourier coefficients of an output waveform generated by a source of electronic circuit waveforms, the Fourier analyzer comprising: a detector coupled to the source of electronic circuit waveforms for detecting the output waveform generated by the source at time intervals selected according to a feature of the output waveform; a waveform generator coupled to the detector to receive values of the output waveform detected at the selected time intervals and to generate a functional representation of the output waveform over each selected time interval by interpolating between the detected values of the output waveform; an integrator coupled to the waveform generator for evaluating a Fourier integral for each selected time interval using the functional representation of the output waveform; and a coefficient generator coupled to the integrator for computing the Fourier coefficients of the output waveform by summing the Fourier integrals from each time interval. 14. The Fourier analyzer of claim 13, wherein the detector comprises a signal input coupled to receive the output waveform, a signal output coupled to the waveform generator, and a first processor implemented procedure resident in a memory of a processor, wherein the first processor implemented procedure triggers the detector to couple a value of the output waveform to the waveform generator when the feature of the output waveform occurs. 15. The Fourier analyzer of claim 13, wherein the waveform generator is a second processor- implemented procedure resident in a memory of a processor. 16. The Fourier analyzer of claim 13, wherein the integrator is a second processor- implemented procedure resident in a memory of a processor. 17. The Fourier analyzer of claim 13, wherein the coefficient generator is a third processor- implemented procedure resident in a memory of a processor. 18. A Fourier analyzer for determining the Fourier coefficients of an output waveform generated by a source of electronic circuit waveforms, the Fourier analyzer comprising: means for detecting the output waveform coupled to the source of electronic circuit waveforms, for detecting the output waveform at time intervals selected according to a feature of the output waveform; means for generating a functional representation of the output waveform coupled to the detecting means, for generating a functional representation of the output waveform over each selected time interval from values of the output waveform provided by the detecting means; means for evaluating a Fourier integral coupled to the means for generating a functional representation of the output waveform, for evaluating the Fourier integral of the functional represenatation of the output waveform over each selected time interval; and means for computing the Fourier coefficients of the output waveform coupled to the evaluating means, for computing the Fourier coefficients of the output waveform by summing the Fourier integrals from each time interval.

Inventors: KUNDERT KENNETH S, KUNDERT, KENNETH, S.
Applicants: CADENCE DESIGN SYSTEMS INC, CADENCE DESIGN SYSTEMS, INC.
Application year: 1995
Main classification: G01R23
IPC codes: G01R23, G06F17