Example: air traffic controller

Simulating Switched-Capacitor Filters with SpectreRF

The Designer s Guide Communitydownloaded from 2019, Kenneth S. Kundert All Rights Reserved1 of 25 Version 6c, 28 July 2006 SpectreRF provides powerful and unique new analyses that offer designers of Switched-Capacitor Filters the ability to predict the performance of their circuits in ways that werenot previously possible. It allows designers to quickly and directly predict the transferand noise characteristics of Filters described at the transistor level while including all ofthe important second-order effects. Previously, designers had to choose between using atraditional circuit simulator such as SPICE and a discrete-time simulator such as Swit-cap. SPICE simulates from a transistor-level description and so includes all of the desiredsecond-order effects, but is not capable of directly computing the transfer and noisecharacteristics of circuit .

switched-capacitor circuits play a much more important role in switched-current filters. Most of these effects can only be included when using transistor-level simulators. This document starts off by showing how SpectreRF can be applied to predict the per-formance of a simple track-and-hold, which is nothing more than a periodically clocked ...

Tags:

  Capacitors, Circuit, Switched, Switched capacitor, Switched capacitor circuits

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Advertisement

Transcription of Simulating Switched-Capacitor Filters with SpectreRF

1 The Designer s Guide Communitydownloaded from 2019, Kenneth S. Kundert All Rights Reserved1 of 25 Version 6c, 28 July 2006 SpectreRF provides powerful and unique new analyses that offer designers of Switched-Capacitor Filters the ability to predict the performance of their circuits in ways that werenot previously possible. It allows designers to quickly and directly predict the transferand noise characteristics of Filters described at the transistor level while including all ofthe important second-order effects. Previously, designers had to choose between using atraditional circuit simulator such as SPICE and a discrete-time simulator such as Swit-cap. SPICE simulates from a transistor-level description and so includes all of the desiredsecond-order effects, but is not capable of directly computing the transfer and noisecharacteristics of circuit .

2 While it may be possible to use Spice to indirectly predict suchthings, doing so is difficult, slow, and error prone. Switcap does directly compute thetransfer and noise characteristics of Switched-Capacitor Filters , but works from a high-level behavioral description. It cannot accept a transistor-level description and cannotinclude many of the second-order effects that critically important to document works through several examples to show how to use SpectreRF to pre-dict most of the quantities of interest with Switched-Capacitor Filters . Search TermsSwitched-capacitor simulation, correlated-double sampler noise simulation, SpectreRF ,kT/C noise, kTC noise, CDS noise, switching noise, sampling noise, noise folding,cyclostationary updated on March 10, 2019.

3 You can find the most recent version at Contact the author via e-mail at to make copies, either paper or electronic, of this work for personal or classroomuse is granted without fee provided that the copies are not made or distributed for profit orcommercial advantage and that the copies are complete and unmodified. To distribute other-wise, to publish, to post on servers, or to distribute to lists, requires prior written Switched-Capacitor Filters with SpectreRFKen KundertDesigner s Guide Consulting, Switched-Capacitor Filters with SpectreRFIntroduction2 of 25 The Designer s Guide IntroductionWhen it comes to Simulating Switched-Capacitor Filters , designers have had to make achoice.

4 They could simulate at the transistor-level with SPICE, but then they must giveup on using AC and noise analyses. SPICE is only capable of performing these small-sig-nal analyses about a DC operating point, but Switched-Capacitor Filters need an activeclock signal to operate. Without these analyses it is very expensive or impossible to pre-dict the transfer and noise characteristics of their Filters . Alternatively, they could usespecially designed discrete-time simulators, such as Switcap [7], but these simulatorsaccept only behavioral-level descriptions of the circuit . With these simulators, designerslose the ability to predict second-order effects such as finite bandwidth effects, nonlin-ear switch resistance effects, charge redistribution effects, slew-rate limiting effects, andback-gate bias Spectre RF designers now have another choice.

5 SpectreRF is capable of simulat-ing Switched-Capacitor Filters at the transistor level. It is capable of performing small-signal analyses such as AC and noise about a periodic operating point and so candirectly predict the transfer and noise characteristics of Filters with the clock naturally includes the second-order effects mentioned above, and also allowsdesigners to include parasitics back annotated from the layout in the simulation. Finally,because it simulates at the circuit level, SpectreRF can accurately simulate switched -current Filters . These circuits cannot be adequately simulated using traditional Switched-Capacitor filter simulators because the imperfections that are second order effects inswitched-capacitor circuits play a much more important role in switched -current of these effects can only be included when using transistor-level document starts off by showing how SpectreRF can be applied to predict the per-formance of a simple track-and-hold, which is nothing more than a periodically clockedswitch and a capacitor.

6 The behavior of this circuit has been widely studied, and theachieved results are compared with expected results to confirm their validity. SpectreRFis then applied to a representative Switched-Capacitor filter as a way of demonstratinghow one simulates such A Simple Track and HoldA simple track and hold is shown in Figure 1. This circuit will be used to illustrate con-cepts that are important for all Switched-Capacitor circuits. It is also used to help demon-strate how one applies SpectreRF to determine common performance metrics forswitched-capacitor circuits.. Spectre is a registered trademark of Cadence Design 1A simple track and A Simple Track and HoldSimulating Switched-Capacitor Filters with SpectreRF3 of 25 The Designer s Guide Spectre netlist of the circuit is shown in Listing 1.

7 In normal operation the switch isperiodically opened and closed at a fixed frequency with a particular phase, denoted .The signal used to drive the switch is referred to as the clock. This netlist uses a feature that is unique to Spectre. It specifies the parameters for sev-eral different waveform shapes on the input source Vi n, and then uses alter statementsduring the stream of analyses to change the shape of the waveform produced. In particu-lar, it specifies parameters for a constant-valued waveshape (dc = 0), a single sinusoidaltone (freq = 10kHz ampl = 1 fundname = input ), and for a second sinusoidal toneLISTING 1 The Spectre netlist for Figure 1, a simple Switched-Capacitor track-and-hold. The include files needed to run this netlist can be found at To run these examples, you will need to use the E command line option when running Simple Switched-Capacitor track-and-holdsimulator lang=spectre#include ahdl_include parameters VDD= TCLK= power suppliesVdd(vdd 0)vsourcedc=VDDVss(vss 0)vsourcedc= VDD// ClockVphi(phi 0)vsourcetype=pulse period=TCLK val0= VDD val1=VDD \rise=10ns delay= width=1us \fundname= clock Inv1(phib 0 phi 0)vcvsgain= 1// Input sourceVin(in 0)vsourcetype=dc dc=0 pacmag=1 \freq=10kHz ampl=1 fundname= input \freq2= ampl2=0 fundname2= input2 // CMOS SwitchMn(in phi out vss)nmosw= l= (in phib out vdd)pmosw= l= Hold capacitorChold(out 0)

8 Capacitor c=10pF// Ideal sample and holdSH(sout 0 out 0)shperiod=TCLK// AnalysesclockAlonepssperiod=TCLK maxacfreq=50 MHzdirectGainpacstart=0_Hz stop=10/TCLK maxsideband=0convGain (sout 0)pxfstart=0_Hz stop= maxsideband=25unsmpldNoise (out 0)pnoisestart=0_Hz stop=10/TCLK maxsideband=100smpldNoise (out 0)pnoisestart=0_Hz stop= maxsideband=100 \noisetype=timedomain noisetimepoints=[0] \numberofpoints=1enableTone1alterdev=Vin param=type value=sineharmDistoqpssfunds=[ clock input ] maxharms=[0 3]enableTone2alterdev=Vin param=ampl2 value=1intermodDistoqpssfunds=[ clock input input2 ] maxharms=[0 3 3] Simulating Switched-Capacitor Filters with SpectreRFA Simple Track and Hold4 of 25 The Designer s Guide (freq2 = ampl2 = 0 fundname2 = input2 ).

9 Initially, the waveshape is set to afixed value by type = dc. Later, the alter statement named enableTone1 changes thewaveshape type to sine to enable the first tone. Finally, enableTone2 turns on the secondtone by setting its amplitude to 1. The circuit in Listing 1 uses an idealized Verilog-Asample-and-hold model, which is given in Listing Periodic Operating PointGenerally the first step in characterizing a switch-capacitor filter with SpectreRF is tocompute the periodic operating point. This is the steady-state solution of the circuit withonly the clock applied (the input signal is turned off). This analysis is primarily neededto compute the periodic operating point that will be used by subsequent small-signalanalyses.

10 The periodic operating point is computed by adding a PSS or periodic steadystate analysis. First make sure the input signal is disabled, done in Listing 1 by specify-ing type=dc for Vi n. Then, in this case, a PSS analysis named clockAlone calculates theperiodic operating point. It is specified with two numerical parameters, the clock periodand a parameter maxacfreq that specifies the maximum frequency that will be used inany subsequent small-signal analyses. This helps the PSS analysis choose a timestepthat assures that the small-signal analyses will be accurate. Its value is affected by boththe maximum small-signal analysis frequency (generally the stop frequency) and themaximum sideband of interest, such that maxacfreq fstop + fc maxsideband where fcis the clock frequency.


Related search queries