Accurate Fourier Analysis for Circuit Simulators

Similar documents
Advanced Computational Methods for VLSI Systems. Lecture 4 RF Circuit Simulation Methods. Zhuo Feng

Vibration Testing. an excitation source a device to measure the response a digital signal processor to analyze the system response

Vibration Testing. Typically either instrumented hammers or shakers are used.

Achieving Accurate Results With a Circuit Simulator. Ken Kundert and Ian Clifford Cadence Design Systems Analog Division San Jose, Calif 95134

Data Converter Fundamentals

Approximation Approach for Timing Jitter Characterization in Circuit Simulators

Application Report. Mixed Signal Products SLOA021

Oversampling Converters

An Integrated Overview of CAD/CAE Tools and Their Use on Nonlinear Network Design

Lecture 6, ATIK. Switched-capacitor circuits 2 S/H, Some nonideal effects Continuous-time filters

A New Simulation Technique for Periodic Small-Signal Analysis

CHAPTER 14 SIGNAL GENERATORS AND WAVEFORM SHAPING CIRCUITS

EE 435. Lecture 28. Data Converters Linearity INL/DNL Spectral Performance

Homework Assignment 09

Homework Assignment 08

Index. Index. More information. in this web service Cambridge University Press

Frequency Response. Re ve jφ e jωt ( ) where v is the amplitude and φ is the phase of the sinusoidal signal v(t). ve jφ


Inducing Chaos in the p/n Junction

Part II Converter Dynamics and Control

The output voltage is given by,

NONLINEAR CIRCUIT SIMULATION IN THE FREQUENCY-DOMAIN

ECE3050 Assignment 7

Modeling Buck Converter by Using Fourier Analysis

EE 435. Lecture 30. Data Converters. Spectral Performance

(b) A unity feedback system is characterized by the transfer function. Design a suitable compensator to meet the following specifications:

Efficient Per-Nonlinearity Distortion Analysis for Analog and RF Circuits

Homework Assignment 11

Master Degree in Electronic Engineering. Analog and Telecommunication Electronics course Prof. Del Corso Dante A.Y Switched Capacitor

PT5108. High-PSRR 500mA LDO GENERAL DESCRIPTION FEATURES APPLICATIONS TYPICAL APPLICATIONS. Ripple Rejection vs Frequency. Ripple Rejection (db)

Advanced Analog Integrated Circuits. Operational Transconductance Amplifier I & Step Response

Print Name : ID : ECE Test #1 9/22/2016

Switched-Capacitor Circuits David Johns and Ken Martin University of Toronto

An Efficient Graph Sparsification Approach to Scalable Harmonic Balance (HB) Analysis of Strongly Nonlinear RF Circuits

HOW TO CHOOSE & PLACE DECOUPLING CAPACITORS TO REDUCE THE COST OF THE ELECTRONIC PRODUCTS

DS0026 Dual High-Speed MOS Driver

PDN Planning and Capacitor Selection, Part 1

Frequency Dependent Aspects of Op-amps

EE 230. Lecture 4. Background Materials

Coupled Electrical Oscillators Physics Advanced Physics Lab - Summer 2018 Don Heiman, Northeastern University, 5/24/2018

The (Fast) Fourier Transform

Pipelined multi step A/D converters

ANALOG AND DIGITAL SIGNAL PROCESSING ADSP - Chapter 8

EECS 16B: FALL 2015 FINAL

EE 435. Lecture 26. Data Converters. Data Converter Characterization

Basic Electronics. Introductory Lecture Course for. Technology and Instrumentation in Particle Physics Chicago, Illinois June 9-14, 2011

Lecture 17 Date:

R. W. Erickson. Department of Electrical, Computer, and Energy Engineering University of Colorado, Boulder

IMPERIAL COLLEGE OF SCIENCE, TECHNOLOGY AND MEDICINE UNIVERSITY OF LONDON DEPARTMENT OF ELECTRICAL AND ELECTRONIC ENGINEERING EXAMINATIONS 2010

Novel Approach to Develop Behavioral Model Of 12-Pulse Converter

Dynamic Models for Passive Components

UNIVERSITY OF CALIFORNIA College of Engineering Department of Electrical Engineering and Computer Sciences

EE 435. Lecture 32. Spectral Performance Windowing

Fourier series. XE31EO2 - Pavel Máša. Electrical Circuits 2 Lecture1. XE31EO2 - Pavel Máša - Fourier Series

Feedback design for the Buck Converter

EECE 2150 Circuits and Signals Final Exam Fall 2016 Dec 12

Volterra Series: Introduction & Application

Definitions. Decade: A ten-to-one range of frequency. On a log scale, each 10X change in frequency requires the same distance on the scale.

Chapter 8: Converter Transfer Functions

True Power vs. Apparent Power: Understanding the Difference Nicholas Piotrowski, Associated Power Technologies

Chapter 11 AC and DC Equivalent Circuit Modeling of the Discontinuous Conduction Mode

E2.5 Signals & Linear Systems. Tutorial Sheet 1 Introduction to Signals & Systems (Lectures 1 & 2)

Second and Higher-Order Delta-Sigma Modulators

Chapter 12 Variable Phase Interpolation

Sound & Vibration Magazine March, Fundamentals of the Discrete Fourier Transform

How to Avoid Butchering S-parameters

0 t < 0 1 t 1. u(t) =

Lecture 340 Characterization of DACs and Current Scaling DACs (5/1/10) Page 340-1

First and Second Order Circuits. Claudio Talarico, Gonzaga University Spring 2015

Roundoff Noise in Digital Feedback Control Systems

Guide to Harmonic Balance Simulation in ADS

A Circuit Reduction Technique for Finding the Steady-State Solution of Nonlinear Circuits

ECE1750, Spring Week 11 Power Electronics

EE 505 Lecture 10. Spectral Characterization. Part 2 of 2

5730A High Performance Multifunction Calibrator. Extended specifications

EE 422G - Signals and Systems Laboratory

System on a Chip. Prof. Dr. Michael Kraft

A CAPACITIVE ACCELEROMETER MODEL

Numerical Algorithms for ODEs/DAEs (Transient Analysis)

R. W. Erickson. Department of Electrical, Computer, and Energy Engineering University of Colorado, Boulder

Chapter 5 Frequency Domain Analysis of Systems

SEISMIC WAVE PROPAGATION. Lecture 2: Fourier Analysis

LECTURE 8 Fundamental Models of Pulse-Width Modulated DC-DC Converters: f(d)

ω 0 = 2π/T 0 is called the fundamental angular frequency and ω 2 = 2ω 0 is called the

ET4119 Electronic Power Conversion 2011/2012 Solutions 27 January 2012

An Efficient Bottom-Up Extraction Approach to Build the Behavioral Model of Switched-Capacitor. ΔΣ Modulator. Electronic Design Automation Laboratory

EECE 2150 Circuits and Signals Final Exam Fall 2016 Dec 16

What happens when things change. Transient current and voltage relationships in a simple resistive circuit.

Figure Circuit for Question 1. Figure Circuit for Question 2

FEEDBACK AND STABILITY

Some of the different forms of a signal, obtained by transformations, are shown in the figure. jwt e z. jwt z e

VID3: Sampling and Quantization

Review of Linear Time-Invariant Network Analysis

EE290C Spring Motivation. Lecture 6: Link Performance Analysis. Elad Alon Dept. of EECS. Does eqn. above predict everything? EE290C Lecture 5 2

Chapter 5 Frequency Domain Analysis of Systems

Analog Digital Sampling & Discrete Time Discrete Values & Noise Digital-to-Analog Conversion Analog-to-Digital Conversion

EECE 2150 Circuits and Signals Final Exam Fall 2016 Dec 9

FILTER DESIGN FOR SIGNAL PROCESSING USING MATLAB AND MATHEMATICAL

Design Engineering MEng EXAMINATIONS 2016

Electronics and Communication Exercise 1

Transcription:

Accurate Fourier Analysis for Circuit Simulators Kenneth S. Kundert Cadence Design Systems (Based on Presentation to CICC 94) Abstract A new approach to Fourier analysis within the context of circuit simulation is presented that is considerably more accurate and flexible than the traditional SPICE approach. It is based on the direct computation of the Fourier integral rather than on the discrete Fourier transform and so it is not subject to aliasing. It can be used to accurately compute a small number of Fourier coefficients for broad-spectrum signals such as those generated by mixers, ΣΔ and pulse-width modulators, DACs, and SC-filters. In addition, techniques that reduce errors and provide the ability to resolve harmonics 120 db 140 db below the carrier are presented. 1 Introduction It is widely accepted that with care the Fourier analysis available in SPICE can resolve harmonics that are 60 db 80 db below the carrier. A well known approach to providing a more accurate Fourier analysis is to uniformly sample the waveforms while forcing SPICE to compute the solution at each of the sample points and using the Discrete Fourier Transform (DFT) to compute the Fourier coefficients. This differs from the approach used in SPICE2 where the uniform sampling of the waveform is performed by interpolating. A new approach to Fourier analysis is presented that computes the Fourier coefficients using the Fourier integral rather than the DFT. This approach has two important benefits. First, it uses the unequally spaced timepoints naturally generated by the simulator. As a result, fewer time-points are used, making the simulation less expensive (assuming time required for computing the circuit response dominates over the the time required for Fourier analysis). Second, this approach does not suffer from aliasing. It accurately computes the Fourier coefficients for a few harmonics, even thought there is significant energy in the the harmonics that are not being computed. This second advantage is an important one, because it allows the Fourier analysis to be performed on signals it would not normally be suited for, such as the waveforms generated by ΣΔ and pulse-width modulators, mixers, DACs and SC-filters. The second advantage also results in the new method being less sensitive to the error that results from the signal not being precisely periodic. This common situation results when analyzing signals generated by a circuit that has not completely settled. In this case, the signal at the beginning and the end of the period do not match. Fourier analysis assumes periodic signals, and treats a nonperiodic signal as a periodic signal with a discontinuous jump at the end of the analysis interval. Because it is discontinuous, the jump is an error with a very wide bandwidth. Both the Fourier integral and the DFT are sensitive to the portion of the error from the jump at the frequencies of the coefficients being computed. However, the DFT is also sensitive to the error at frequencies beyond the Nyquist limit (half the sampling frequency) because of aliasing. The wide bandwidth of the discontinuous jump results in a large amount of additional error in the coefficients computed by the DFT. The computational complexity of the FFT is in the order of N log 2 N whereas the complexity of the Fourier integral is in the order of KN where N is the number samples used and K is the desired number of Fourier coefficients. The Fourier integral will be computationally less expensive if K<log 2 N. The Fourier integral only requires storage for the K coefficients being computed, not for all of the N sample points. Thus, it requires less memory than the FFT if K<N. 2 Previous Approaches SPICE2g6 computes the Fourier coefficients of a waveform by linearly interpolating to a uniformly-spaced grid and computing the DFT. The errors in this method spring from the interpolation and aliasing in the DFT. The.FOURIER command is intended to be used to compute the distortion of low-distortion sinusoids. Thus, aliasing is not typically an issue (though nonperiodic waveforms due to incomplete settling are). The DFT is applied to the interpolated signal, which differs from the true signal by an amount that is related to the curvature of the signal and the time between the interpolation point and the clos- 1

est time-points computed by the simulator. The greater the curvature and the farther the interpolation point is from the time-points, the greater the error. In SPICE there are several reasons why interpolation can lead to unacceptable error: 1. In Fourier analysis, users are interested in resolving very small signals. Thus, even small interpolation errors are a problem. 2. SPICE s Fourier analyzer does not bound the timestep during the analysis period in order to assure reasonable accuracy. 3. SPICE controls the time-step to assure that secondorder interpolation is accurate on capacitor charge waveforms and inductor flux waveforms, not to assure accurate Fourier analysis. (a) The Fourier analysis is using first-order interpolation, which requires a smaller time-step to achieve the same accuracy as the second-order interpolation used by the simulator. (b) Fourier analysis is performed on node voltages and voltage source currents rather than on capacitor charges and inductor fluxes. Thus, the simulator is not choosing the time-steps to control error in the signals being Fourier analyzed. (c) If the circuit only contains very small capacitors, CHGTOL effectively loosens the local-truncation error criterion, allowing the simulator to take large time-steps even though the Fourier analyzer requires smaller steps. Other sources of error can also limit the resolution of the Fourier analysis. For example, discontinuities in the model equations due to incomplete models, errors, or bypass algorithms generate small jumps in the waveforms being analyzed. In addition, the small errors that result from incompletely converging Newton s method also contributes to reducing the resolution of the Fourier analysis. The interpolation error is eliminated by forcing SPICE to place a time-point everywhere a sample is needed for the Fourier analysis. This dramatically improves the resolution of the Fourier analysis at the expense of requiring the simulator to evaluate the circuit at additional timepoints. If the waveform being analyzed is a low-distortion sinusoid, the additional computational burden is negligible because the DFT will not require many samples to accurately compute the Fourier coefficients. However, if the signal has a broad spectrum because it has very fast transitions between two or more equilibrium points, then the DFT s need for small time-steps during the transitions, and its requirement that the samples be equally spaced, will require the simulator to take unnecessarily small time-steps during the flat portions of the waveforms between the transitions. 3 The Fourier Integral For a periodic waveform x of period T, the Fourier coefficients are computed with the following formulas, t+t a 0 = 1 x(τ)dτ (1) T t a k = 2 t+t ( ) 2πkτ x(τ)cos dτ (2) T t T b k = 2 t+t ( ) 2πkτ x(τ)sin dτ (3) T t T where k =1, 2,... The derivation that follows uses (2) to demonstrate the calculations. Similar steps should be taken with (1) and (3) to compute a 0 and b k. The circuit simulator discretizes time and solves the system of equations that describe the circuit at N +1 time-point, t 0,t 1, t N. Equation (2) is rewritten as a sum of integrals over each time step, a k = 2 T n=1 t n 1 x(τ)cos(kωτ)dτ (4) where ω = 2π T and t N t 0 = T. Between time-points, x can be approximated with a low-order polynomial. This is very natural because the circuit simulator makes a very similar approximation in order to perform numerical integration. During time-step n, x(τ) c mn τ m (5) m=0 for t n 1 τ t n,wherem is the order of the approximating polynomial. Substituting into (4) gives a k 2 T n=1 t n 1 m=0 c mn τ m cos(kωτ)dτ. (6) Exchange the order of integration and summation, Finally, a k 2 T n=1 m=0 a k 2 T c mn n=1 m=0 t n 1 τ m cos(kωτ)dτ. (7) c mn α kmn (8) 2

where α kmn = t n 1 τ m cos(kωτ)dτ. (9) This integral is in a simple form that can be evaluated analytically using integration by parts and induction. α kmn = m i=0 where 0! 1. m!τ i i!(kω) m i+1 sin(kωτ + π (m i)) 2 t n τ =t n 1 (10) To review, the procedure for computing the Fourier coefficients is: 1. Break the integral into a sum of integrals, one for each time-step as in (4). 2. Approximate the waveform with a low-order polynomial over each time-step as in (5). 3. Analytically evaluate the integral over each time-step for each order of τ individually using (10). 4. Sum the integrals for each order and each time-step, as in (8). 4 Interpolation Error Computing the Fourier series using the Fourier integral not only avoids error due to aliasing, it is also less sensitive to the error that results from interpolation. The DFT is equivalent to applying the trapezoidal rule with a uniformly spaced grid to the Fourier integral. Thus, to compute a particular coefficient, the input signal is first multiplied by sinusoid, the product is interpolated to the uniform grid and then integrated. The new approach first interpolates the signal alone to the grid. Once interpolated, the remaining two steps are performed analytically. Interpolating the signal alone introduces considerably less error than does interpolating the product of the signal and the sinusoid, particularly for the high frequency sinusoids used to compute the upper harmonics. In addition, the simulator is controlling the time-step so that interpolating the signal is accurate, not the product of the signal and some sinusoid. While use of the Fourier integral reduces the effect of interpolation error, it does not completely eliminate it. It remains very important to reduce the error due to interpolation in order to provide sufficient resolution. 5 Implementation in Spectre Computation of Fourier coefficients using the Fourier integral was implemented in the Spectre circuit simulator. Spectre is different from SPICE in a key way that helps to improve the resolution of the Fourier analysis. Rather than choosing the time-step to control the error in polynomial approximation of the charge waveforms on capacitors only (neglecting inductors), Spectre chooses the time-step to control error in the polynomial approximations of the voltage waveforms on capacitors. With the addition of the Fourier analyzer, Spectre also chooses the time-step to control error in the polynomial approximations of the voltage waveforms at the input of the Fourier analyzer. As a result, simply tightening RELTOL directly acts to improve the accuracy of the Fourier analysis. Several additional methods are applied simultaneously in Spectre to reduce error from interpolation. 1. Higher order interpolation methods are used. Typically, second-order interpolation is used, though in special circumstances first order interpolation is used on at most a few time-points. 2. The Fourier analyzer forces Spectre to place a time-point at both the beginning and the end of the Fourier analysis period (using Spectre s breakpoints). 3. The Fourier analyzer limits the maximum size of the time-step during the Fourier analysis (only) to be no greater than one-tenth of the period of the largest harmonic being computed. Finally, Spectre does not use bypass algorithms. 6 Examples Several examples are given to show the wide range of applicability of the Fourier-integral based analyzer. The feedback amplifier example demonstrates that Spectre s Fourier analyzer is capable of resolving very small harmonics. The ΣΔ modulator shows that immunity to aliasing allows Spectre s Fourier analyzer to be applied to broad-band signals. The pulse-width modulator example is one where Spectre s Fourier analyzer naturally computes an accurate result while the DFT would require tens of millions of points to achieve similar accuracy. Finally, the mixer example demonstrates that the small number of harmonics computed by Spectre s Fourier analyzer do not need to be the low-order harmonics. In this example, Spectre computes the value of 10 harmonics centered around the 500 th harmonic. It is also an example where 3

harmonic SPICE2g6 Spectre Harm. Bal. fund 875 mv 1V 1V 2 nd -40.5 db -98.6 db -98.5 db 3 rd -43.2 db -116 db -120 db 4 th -24.3 db -125 db -169 db 5 th -33.3 db -124 db -143 db 6 th -33.3 db -125 db -196 db 7 th -24.3 db -125 db -165 db THD 9.55 % 0.0012 % 0.0012 % harmonic SPICE2g6 Spectre Harm. Bal. fund 997 mv 1V 1V 2 nd -55.3 db -98.5 db -98.5 db 3 rd -58.1 db -120 db -120 db 4 th -53.3 db -159 db -169 db 5 th -55.9 db -142 db -143 db 6 th -55.9 db -164 db -196 db 7 th -53.3 db -165 db -165 db THD 0.48 % 0.0012 % 0.0012 % Table 1: Results from μa741 using default tolerances and time-steps. using the DFT would require the simulator to compute 6 times as many time points. 1.00 0.00 Table 2: Results from μa741 with RELTOL =10 6. 6.1 Distortion of a Feedback Amplifier Fourier analysis was applied to a low distortion feedback amplifier. The amplifier is a μa741 op-amp in unity-gain configuration. The input frequency is low at 1 khz and the input amplitude is small at 1 Vp, so the distortion is very low. The distortion was computed from 9 harmonics using the Fourier analysis in SPICE2g6 and in Spectre on a 10ms transient analysis. Nothing was done in either simulation to improve the results (default values were used for both RELTOL and the maximum timestep). Harmonic balance was also run on the circuit as a control (periodic harmonic balance has the property of becoming extremely accurate as signals approach being pure sinusoids [kundert90]). The results, given in Table 1, show that because SPICE does not control the time-step to accurately compute Fourier coefficients, its results are often inaccurate. Spectre with RELTOL =10 3 resolves signals down to about 120 db. This noise floor results from errors in the waveform as computed by the simulator rather than from errors in the Fourier calculations. This is confirmed by running Spectre with RELTOL =10 6,as shown in Table 2. In this case, with Spectre the number and placement of the time-points during the Fourier analysis interval did not change, and so the accuracy of the Fourier analysis is unchanged. However, the tightened convergence criteria results in the waveform being computed more accurately and the noise floor dropping to 160 db. 6.2 Distortion of a ΣΔ Modulator An important feature of the Fourier integral is that it is not subject to aliasing, allowing it to be applied to broadspectrum signals. This is illustrated by computing the -1.00 0.0 0.2 0.4 0.6 0.8 1.0 Figure 1: Waveform generated by ΣΔ converter driven with a 1V sine wave. first 7 harmonics of the signal shown in Figure 1. This signal was generated by driving a clocked first-order twolevel ΣΔ converter with a 1V sine wave. The signal has a period of 1 s and the transitions last 1 μs. The output of the ΣΔ converter is a long sequence of integers. The distortion of the converter is determined solely from the value and the order of the integers, not the details of the waveform. This rather special characteristic allows the use of the FFT, which is employed here to verify the accuracy of the Fourier integral approach. To compute the Fourier coefficients using the FFT one simply samples the output once per clock cycle for 2 K cycles. The magnitude of the lowest harmonics computed from the ΣΔ converter waveform by the Fourier integral and FFT are shown in Table 3. 6.3 Distortion of a Pulse-Width Modulator It is difficult to measure the distortion of a pulse-width modulator using the DFT because of its limited resolution in time. The DFT periodically samples the waveform, and any event that occurs between sample points is missed. Consider the response of a pulse-width modulator to a sinusoidal stimulus that is shown in Figure 2. The sample points for a 64-point FFT are shown. The spectrum computed by the FFT is clearly inaccurate because several pulses have been missed. The accuracy of 4

harmonic Fourier Integral FFT fund 1V 1V 2 nd -63.3 db -63.3 db 3 rd -54.3 db -54.3 db 4 th -55.3 db -55.3 db 5 th -51.6 db -51.6 db 6 th -48.9 db -48.9 db 7 th -47.7 db -47.7 db THD 0.905 % 1.414 % Table 3: The magnitude of the lowest harmonics computed from the ΣΔ converter waveform by the Fourier integral and FFT. The discrepancy in THD results from the Fourier integral using far fewer harmonics (7 versus 512) when computing the THD. db 0.00-20.00-40.00-60.00-80.00-100.00 FFT Results vs Points dc 1st 2nd 3rd 4th 5th points 1e+01 1e+02 1e+03 1e+04 1e+05 Figure 3: The magnitude of the Fourier coefficients computed by the FFT for the waveform in Figure 3 as a function of the number of points used. Even when 64k points are used, the accuracy is marginal. V 1.00 0.50 0.00-0.50-1.00 Pulse-Width Modulated Sine 0.00 0.20 0.40 0.60 0.80 1.00 out in secs harmonic Fourier Integral 64K-Point FFT fund 0.998 V 0.998 V 2 nd -48.1 db -48.0 db 3 rd -56.8 db -56.8 db 4 th -93.8 db -84.6 db 5 th -106 db -88.0 db 6 th -138 db -86.2 db 7 th -154 db -86.2 db 8 th -183 db -87.8 db 9 th -201 db -84.7 db Figure 2: Response of a pulse-width modulator to a sinusoidal stimulus. The sample points used by a 64-point FFT are shown. Notice that many of the pulses are missed by the FFT. Table 4: The magnitude of the Fourier coefficients computed by the Fourier integral and a 64K-point FFT for the waveform in Figure 3. The Fourier integral was able to accurately resolve the -200 db 9 th harmonic whereas the FFT was unable to resolve harmonics below 85 db. the FFT is improved by increasing the number of points used by the FFT, as shown in Figure 3. But even with 64k points, the accuracy is only marginal. In this example, the modulator generates only 25 pulses per period of the sine wave. If the pulse rate was higher, which would not be unusual, then the performance of the FFT would be even worse. The Fourier integral method provided by Fourier analysis in Spectre accurately resolves the transition times without missing any pulses. It is considerably more accurate and more efficient than the FFT on this type of waveform. The Fourier coefficients computed by the Fourier integral and a 64K-point FFT for the waveform in Figure 2 are given in Table 4. The FFT is able to resolve harmonics approximately 85 db below the fundamental whereas the Fourier integral resolves harmonics over 200 db below the fundamental. 6.4 Distortion Products of a Mixer In the ΣΔ converter example, it was possible, and generally desirable, to use the FFT because the desired spectrum could be computed from a uniform sampling of the output with one sample per clock period (it was possible and desirable to ignore the details of the waveform over individual clock cycles.. However, uniform sampling is impractical when trying to compute the distortion of a mixer. Consider the example of a mixer from a hypothetical satellite receiver for video signals. The RF input frequency is 2.7GHz and the IF output frequency is 500MHz. To determine the distortion of the mixer, the input is modulated at 1MHz. The modulation frequency was chosen to satisfy the following constraints: 1. The significant intermodulation distortion products 5

harmonic RELTOL =10 3 RELTOL =10 6 495 th -56.5 db -95.4 db 496 th -81.7 db -93.1 db 497 th -60.0 db -68.2 db 498 th -52.1 db -53.3 db 499 th -6.06 db -6.05 db 500 th 56.2 mv 56.3 mv 501 th -6.05 db -6.05 db 502 th -57.7 db -53.3 db 503 th -63.9 db -68.4 db 504 th -77.4 db -98.1 db 505 th -56.8 db -101 db Table 5: The magnitude of the harmonics needed to determine intermodulation distortion of a mixer calculated using the Fourier integral. should be well within the 10MHz bandwidth of the IF filter. 2. All waveforms must be periodic (a condition that must be satisfied in order to apply the Fourier analysis). The approach is based on the Fourier integral rather than the discrete Fourier series, and so is not subject to aliasing. The new approach, along with a few techniques for controlling the time step, is able to resolve very small harmonics even in broad-band signals, making it suitable for applications such as computing the distortion of ΣΔ and pulse-width modulators, mixers, DACs and SC-filters. Acknowledgements I would like to thank Joe Higgins for carefully reviewing the paper and verifying the mathematics. Of course, any errors or omissions are my own. Joe also suggested the generalization for arbitrary high orders (10). References [kundert90] K. Kundert, J. White, A. Sangiovanni- Vincentelli. Steady-State Methods for Simulating Analog and Microwave Circuits. Kluwer Academic Publishers, Boston 1990. 3. The product of the simulation interval (the reciprocal of the modulation frequency, plus any needed settling time) and the highest significant frequency present (some harmonic of the RF input) should be minimized in order to minimize the time required to complete the simulation. The IF frequency is the 500 th harmonic of the modulation frequency. Spectre is requested to compute the five harmonics above and below the IF. The computation is still efficient, because the Fourier coefficients are being computed for only 11 harmonics. Of course, the simulation is slow because small time steps are needed to accurately follow the high frequencies and because of the need to simulate for at least one period of the modulation frequency. However, it is still faster than if the FFT were used because the output waveform has sharp transitions that would require a very small sampling interval. The minimum step size needed during the simulation was six times smaller than the average step size, implying that to get comparable accuracy with the FFT will require six times as many time point and so will be six times as slow. 7 Conclusion A new approach of Fourier analysis was presented that efficiently computes a small number of Fourier coefficients. 6