Académique Documents
Professionnel Documents
Culture Documents
OverviewThisexercisecontinuestheamp_1900design.Itteacheshowtosetup,run,
optimizeandplottheresultsofvariousSparametersimulations.Also,theoptimizeris
usedtocreatetheimpedancematchingnetworks.
OBJECTIVES
Measuregainandimpedance.
Setupandusesweepplans,parametersweeps,andequationbased
impedance.
Calculatevaluesforamatchingnetwork.
Designamatchingnetwork.
Useoptimizationtomeetdesigngoals.
UseNoiseandGaincircles.
WriteafilewiththeDataFileTool.
CopyrightAgilentTechnologies
2009
Table of Contents
11.
12.
13.
14.
OPTIONAL Read and Write S-parameter Data with an S2P file ................. 21
15.
52
CopyrightAgilentTechnologies
2009
PROCEDURE
1. Setupthesimulationandcircuitwithidealcomponents.
a. Savethelastschematic(ac_sim)designas:s_params.
b. Modifythedesigntomatchtheschematicshownhere:
DeletetheACsourceandcontroller.Alsodeletethemeasurement
equations,parameterssweep,andanyunwantedvariables,etc.
Insertterminations(Term)fromtheSparameterpalette.
FromtheLumpedComponentspalette,inserttwoidealinductors:
DC_FeedtokeeptheRFoutoftheDCpath
InserttwoidealDCblockcapacitors.
DeletethenodenamesbyclicktheNameiconand,leavingitblank,
clickingonthenodenames(VinandVout).ForSparameter
simulation,theportterminations(num1andnum2)providenodes.
c. InsertanSParametersimulationcontrollerandset:Start=100MHz,
Stop=4GHz,andStep=100MHz.
d. Savethedesign.
CopyrightAgilentTechnologies
2009
53
2. Simulateandplotdatawithmarkerreadoutmodifications.
a. Besurethenameofthedatasetis:
s_paramsandthensimulate.
b. Whenthesimulationisfinished,inserta
rectangularplotofS21(dB).Inserta
markeron1900MHzandverifythatthe
gainisabout20dB.
c. InsertaSmithchartofS11andplacea
markeron1900MHz.Tomovethemarker,
selectthereadoutandusethearrowkeys.
d. Editthemarkerreadout(doubleclick).Gotothe
theFormattabandchangeZoto50asshown.Click
ClickOKandthemarkerwillnowreadthevaluein
valueinohms,referencedto50ohms.
3. WriteanequationtovarytheTermportimpedance.
a. Inschematic,writeanequationforport2TermZtobe35ohmsabove
400MHz:Z=iffreq<400MHzthen50else35endif.
Typedirectlyonscreen.
b. Simulateandtheninsertalistof
PortZ(2).VerifythatZis35
Ohmsabove400MHz.
c. Resetthevalueofport2Termto
50ohms:Z=50Ohm.
54
CopyrightAgilentTechnologies
2009
4. CalculateLandCvaluesinthedatadisplay.
Thetransmissionandreflectioncharacteristicsofthebiasedcircuitshowabout20dB
ofgainbutwithamismatchto50ohmsattheinput.Also,theDCfeedsandblocksare
idealandneedtobereplacedwithrealvalues.
a. Indatadisplay,writeanequation,
XC,forthecapacitivereactanceof
10pFat1900MHz.Thenlist
equationXCasshownhere.If
desired,titlethelistusingPlot
Options.Withthislowreactance,
10pFwillbetheblockingcapacitor
values.
b. ChangethevalueofthecapacitorintheequationandverifythatXCis
automaticallyupdatedinthelist.
c. Createatableforarangeofinductorvaluesandreactances.L_valisa
rangeofsweptvaluesfrom1nanoto200nanoin10nanosteps.InADS,
thesyntaxoftwocolonsisawildcard(allvalues)andcanalsobeusedto
indicatearangeasshownhere.Thesquarebracketsareusedtogenerate
thesweep.Afterwritingtheequationsandlistingthemasshownhere,
scrollthroughthelist.Astheinductorvalueincreases,thereactanceat
1.9GHzincreases.Therefore,avalueof120nHshouldbeenoughforthe
DCfeed(RFchoke).
NOTE:TheXLequationwillbered(invalid)untilL_valiswritten.
NOTEonequationsandtablesYoucancopytheequationsandtables(CtrlC/CtrlV)
tootherdatadisplays.OrusethecommandFile>SaveAsTemplatetosavethedata
displayasatemplatethatcanbeinsertedinotherprojects.
d. Savethecurrentdatadisplayandtheschematic.
CopyrightAgilentTechnologies
2009
55
5. ReplaceLandCwithcalculatedvaluesandsimulate.
a. Savetheschematicwithanewname:s_match.
b. Changethecomponentname(DC_Block)ofbothblockingcapacitorstoC
andtheywillautomaticallybecomelumpedcapacitorsasshownhere.
AssignthevalueforeachC=10pF.
Highlightthecomponentname,
typeinC,andpressEnter:
DC_BlockwillbecomeC.Then
changeto10pF.
c. Changetheidealinductors(DC_Feed)inthesamemanner
andsetL=120nHforeach.AccordingtotheXLandL_val
table,thereactanceat1900MHzisabout1.5K,whichis
reasonableatthispointinthedesign.
d. Theschematicshouldnowlookliketheoneshownhere.
CheckyourvaluesandthenSimulate.
56
CopyrightAgilentTechnologies
2009
e. Inthedatadisplay,plotthetransmission(S12andS21)andreflection
(S11andS22)datawithmarkersasshownhere.Noticethegainstays
relativelyflat,theleakageisreasonable,buttheimpedanceisnotnear50
ohms.Thenextstepistocreateaninputmatchingnetwork.
6. UsetheSmithChartutilitytobuildasimplematchingnetwork.
a. Inthecurrentschematic,clickonthecommands:Tools>SmithChart
(thisisthesameasDesignGuide>FilterandthenselectingtheSmith
ChartControlwindow).
b. ClickthePaletteiconshownherethisaddstheSmithChart
palettewiththeSmithCharticontoyourschematic.
Smith Chart Control Window
CopyrightAgilentTechnologies
2009
57
c. Intheschematic(s_match),inserttheSmithChart
MatchingNetworkcomponent(alsoknownasaSmart
SmartComponent)neartheinputoftheamplifierno
noneedtoconnectitbutitisrequired.Also,clickOK
clickOKwhenamessagedialogappears.
d. GobacktotheSmithChartcontrolwindowandtypeintheFreq(GHz)to
1.9asshownhere.
e. InthelowerrightcorneroftheSmithChart
Chartutilitywindow,selecttheZL
componentandtypeintheimpedance
impedancelookingintotheamplifierfrom
fromthelastsimulation:554j*220as
asshownhereandclickEnter.
TypeintheZ
value:554j*220
here.
f. NoticethattheloadsymbolontheSmithcharthasrelocatedasshown
here.Next,selecttheshuntcapacitorfromthepaletteandmovethe
cursorontheSmithchart:whenyougettothe50Ohmcircleofconstant
resistance,clicktostop,asshownhere(itdoesnothavetobeexactfor
thisexercise).
Loadsymbolisat
554j220.Source
symbolisat
50+j0.
Shuntcap
allowsyou
tomoveto
the50ohm
circle.
58
CopyrightAgilentTechnologies
2009
g. Next,selecttheseriesinductorandmovethecursoralongthecircle
untilyoureachthecenteroftheSmithchartandthenclick.
Nowyouhavea50Ohmsmatchbetweentheloadandsource.
SeriesLallows
youtomove
alongthe50ohm
circletothe
centerofthe
SmithChart.
h. Movethecursorintothelowerrightcornerofthewindowandclickon
eachofthecomponentsintheSchematicasshownhere.Youwillseethe
valuesfortheinductorandcapacitor:approximatelyL=14nHandC=
400fFor0.4pF.
i.
Toclearlyseetheresponseofthisnetwork,changetheStopFreqto4
GHz(4.0e9)andyouwillseethenull(S11)at1900MHz.Also,setTrace2
toS21toseebothreflectionandtransmission.
j.
TohavetheDesignGuidebuildthecircuit,clickthebutton
buttononthebottomofthewindow:BuildADSCircuit.
Circuit.ClickOKtoanymessagesthatappear.
CopyrightAgilentTechnologies
2009
59
k. Ontheschematic,pushintotheSmithChartcomponentandyoushould
seethenetworksimilartotheoneasshownhere.Youvaluesmaybe
slightlydifferentwhichisOK.Popoutwhenfinished.
Nowitistimetousethematchingnetworkwiththeamplifier.Youcouldusethe
componentbyconnectingittotheamplifierinput.However,becauseyouwillbeusing
theoptimizer,itisbettertohavetheLCcomponentsontheschematic.
l.
Eithercopy/pastetheLCandgroundcomponentsontotheamplifieror
simplyinsertanLandConyourschematic.Thensetthevaluesto
L=14.3nHandC=0.4pF.Theamplifierinputshouldnowbeasshown
here.
m. DeletetheSmithChartcomponentfromtheschematicandclosethe
SmithChartutilitywindow.
510
CopyrightAgilentTechnologies
2009
n. Simulatewiththeinputnetwork.
o. Setthesimulationstepsizeto10
MHz,andsimulate.
p. Whenthesimulationiscomplete,
addS22totheSmithchart.Placea
markeronS22at1.9GHz.The
resultsshowS11isgoodbutS22is
notmatchedasshownhere.
7. Addoutputmatchingcomponents.
BecauseS22issimilartotheunmatchedimpedanceoftheinput,itisreasonabletoput
asimilartopologyontheoutputandsimulatetheresponse.
a. SelecttheinputLCnetworkandusethecopyicon(shownhere)tomake
acopytothecomponents.Thenplacethemneartheoutput,witha
groundonthecapacitor.Deletethewiresandinsertthemasshownat
theoutput.
b. Simulateandcheckthe
response.Yourdatashould
besimilartotheresults
shownherewhereS22is
nowcloserto50ohms.
However,S11hasshifted,as
youshouldexpect.Setthe
S22markerreadouttoZo
=50.
Doubleclicktoeditthemarker
readoutandsetZo=50.
c. Savethedesignbutdonot
closethewindow.
CopyrightAgilentTechnologies
2009
511
8. SetupanOptimizationcontrollerandGoals.
a. Savethes_matchschematicdesignwitha
withanewname:s_opt.
b. GototheOptim/Stat/Yield/DOEpalette
paletteandinsertanoptimization
controllerandonegoalasshownhere.
here.
c. Editthegoalbydoubleclicking.Inthe
thedialogbox,typeinthefollowing
followingsettingsandclickApplyafter
aftereachoneandOKwhendone.
Expr:dB(S(1,1))
SimInstanceName:SP1.
Max=10(S11mustbeatleast10dBtoachievethegoal)
RangeVar=freqRangeMin=1850MHzRangeMax:1950MHz
Noneedtotypequotation
markswhenusingdialogbox.
NoteonquotationmarksTherangevaluesdonotneedquotesbecausetheyare
valuesandnotstrings(variables).
512
CopyrightAgilentTechnologies
2009
d. CopytheS11goalselectitand
usethecopyicon.
e. Onscreen,changethegoal
expressiontodB(S(2,2))as
shownhere.Now,youhavetwo
goalsfortheinputandoutputmatch.
f. SetuptheOPTIMcontroller.Forthislab
exercise,mostofthedefaultsettingscan
remain,includingtheRandomtype.However,
editthecontrollerandsettheMaxIter=125
andsettheFinalAnalysis=SP1.These
settingsmeanthattheoptimizerwillrunforup
to125iterationstoachievethegoals.The
Normalizegoalssettingmeansthatallgoalswill
haveequalweighting.Also,afinalanalysisis
automaticallyrunwiththelastvaluessothat
youcanplottheresultswithoutrunning
anothersimulation.
NoteonOptimparametersettings
NormalizeGoals=nomeansthatmultiplegoalsarenotequally
weighted.Toequallyweightallgoals,setthistoyes.Forthis
labitisnotrequired.
SetBestValues=yesmeansthatthecomponentsonschematic
canbeupdatedwiththebestoptimizedvalues.TheSave
settingsallsavedatatothedataset.Insomecases,thiscanbe
alotofdataandusealotofmemory.Also,thedefaultistouse
allgoalsandallenabledcomponents(nextsteps)onthe
schematic.However,youcanedittheOPTIMcontrollerand
selectwhichgoalsorvariablestouse.Allofthesettingsare
explainedintheHELP(manuals).
NOTE:TheSaveparametersthataresettonomeanthatthosevalueswillnotbe
writtenintothedataset.
CopyrightAgilentTechnologies
2009
513
9. Enablethecomponentstobeoptimized.
a. Inschematic,gotoOptions>Preferences>andselectthetab
tabmarked:ComponentText/WireLabel.TurnontheFull
FulldisplayforOptasshownhereandclickOK.Thiswillallow
allowyoutoseetherangesettings.
b. Edit(doubleclick)theinductorL_match_in.Whenthedialog
dialogappears,clicktheTune/Opt/Stat/DOESetupbutton.Inthe
Optimizationtab,settheinductortobeEnabledasshownandtypein
thecontinuousrangefrom1nHto40nHasshownhere.ClickOKand
thecomponenttextwillshowtheoptfunctionandrange.
c. GoaheadandEnabletheotherthreematchingcomponentsasshown.
Editeachoneusingthedialogboxoryoucantypedirectlyonscreen
usingtheoptfunctionandcurlybracesfortherange.Also,usetheF5key
tomovecomponenttextasneeded:
514
CopyrightAgilentTechnologies
2009
d. CheckthecircuitasshownhereandthenSimulateandwatchthestatus
window.
e. Thestatuswindow
reportsprogress.Ifthe
goalsaremet,theEF
(errorfunction)=0.A
successfuliteration
occursiftheEFmoves
closertozero.WithEF=
0(orcloseinsome
cases),thenextstepisto
updatecomponent
valuesandplotthe
results.IfyourEFisnot
zero,checkthe
schematicandtryit
again.
CopyrightAgilentTechnologies
2009
515
NOTEonoptimizationEFthatdoesnotreachzeroIfanoptimizationdoesnotmeet
thegoal,youcanloosenthegoalsorDesiredError.Also,lookforcomponentsthatare
beingdriventotheendsoftheiroptrangeandwidenthem.Also,tryanother
optimizationmethod,increasethenumberofiterations,ortryanothertopology.
10. Plottheresults.
a. Inthedatadisplay,insertarectangularplot.Then,asshownhere,add
thecompleteSmatrixofthefinalanalysisindBtoseeallfourS
parameters.Thiswayyoucanquicklyverifytheresults.Yourvaluesmay
differslightlybutthegoalsfromtheoptimizationshouldbemet.
b. PlottheimpedanceS11and
S22onaSmithchart.
Changethemarkerreadout
toZo=50.Asyouwillsee,
theimpedanceisnotclose
enoughto50ohms,even
thoughthegoalsweremet.
Therefore,some
modificationswillbemade
inthenextsteps.Butfirst,
youwillupdatethe
schematicwiththevalues
fromtheoptimization.
516
CopyrightAgilentTechnologies
2009
11. Updateoptimizedvaluesanddisabletheoptfunction.
a. Clickthecommand:Simulate>Update
UpdateOptimizationValues.Theenabled
enabledcomponentsshouldnowhavethe
thefinal(best)valuesasthenominalvalues.
values.Forexample,theinputinductormay
inductormaylookliketheoneshownhere
hereyourvaluesmayvaryalittlebecauseof
becauseoftherandommodeandnoseeding.
seeding.
b. Disableacomponent.Edit(doubleclick)
L_match_ininductor.Thenclickthe
Tune/Opt/Stat/DOEbutton.SelectDisabled
DisabledasshownhereandclickOK.Notice
Noticethatthecomponentfunctionchanges
changesfromopttonoopt.Thismeans
thecomponentwillnotbeusedinan
optimization.Youcanalsodisablea
componentbyinsertingthecursoron
screenandtypingnoinfrontoftheopt
functiontomakeitnoopttryit.
Disabledoptfunction=noopt, or {-o} if
the Options>Preferences (Display
Format) is set to Short.
c. Savethes_optschematic.Inthenextsetofsteps,youwillsetupafinal
matchedcircuit.
NOTEondeactivatingtheoptimizationcontrollerIfyou
wanttosimulatewithoutrunninganoptimization,youmust
deactivatetheoptimizationcontroller.
CopyrightAgilentTechnologies
2009
517
12. Simulatethefinalmatchedcircuit.
a. Savethes_optschematicas:s_final.
b. Deactivate(usetheicon)theoptimizationcontrollerandgoals.
c. ModifythefourLandCmatchingcomponentvalues,addingresistanceto
theinductorsasshownhere.Thiswillresultinagoodmatchandwillbe
usedfortheremainderofthelabexercisessothatallstudentshavethe
samecircuit.Goaheadandchangethevaluesbytypingdirectlyon
screenasshownhere:
L_match_in=18.3nH&R=12Ohm
L_match_out=27.1nH&R=6Ohm
C_match_in=0.35pF
C_match_out=0.22pF
d. WiththenewfinalcomponentvaluesandSimulate.
e. Whenthedatadisplayopens,plottheentireSmatrixbyselectingSinthe
dataset.AlsoplottheS11andS22ontheSmithcharttoverifythematch
iscloseto50ohmsat1900MHz.Withtheseresults,thenextstepswill
betosimulatestability,gainandnoisecircles.
Improvedgainwithimprovedmatch.
f. Savethefinaldesignanddatadisplay.Closethedatadisplaybutkeep
theschematicwindowopened.
518
CopyrightAgilentTechnologies
2009
13. Stabilityequationswithgainandnoisecircles.
a. Savethes_finaldesignas:s_circles.
b. GototheSparametersimulationpaletteandinserttwo
stabilitymeasurementequationsMuandMuPrime(icons
shownhere).Thesecanbeusedwiththeirdefaultsettings..
c. Scrolldowninthepaletteandinserttwomeasurementequations:
GaCircleandNsCircleasshown.Also,inserttheOptionscontrollerand
setTemp=16.85toavoidthewarningmessagefornoise.Tnomisthe
temperatureatwhichadevicemodelisextractedanyshouldnotapply
here.AllotherOptionsdefaultsettingsareOK.
d. ChangethedBgainintheGaCircleto30asshown.Nosettingisrequired
fortheNsCircleitwilluseNFmin(calculatedminimumnoisefigure)
fromthesimulationdata.
Gain:30
dB.
CopyrightAgilentTechnologies
2009
519
e. Changethesimulationfrequency=1850MHzto1950MHzsothat
fewerdatapoints(circles)willbecreated.Checktheschematic,besure
thenoisecalculationisturnedONinthecontroller,andSimulate.
f. Whenthedatadisplayopens,plotthemeasurementequations:NsCircle1
andGaCircle1onaSmithchartasshown.
g. Inarectangularplot,addMu1andMuPrime1asshown.
h. Also,insertalistofnf(2),NFmin,andSopt.
Ifsourcereflectioncoefficientisequaltothecenterof
thenoisecircle,yougetminimumnoisefigure.
NOTEonresultsOntheSmithchart,theareainsidetheGainCircleindicatestheload
impedancethatwillresultin30dBofgain.TheNoiseCircleisdifferentbecauseits
centerindicatestheoptimumvalueofsourcereflectioncoefficientthatwillresultinthe
minimumnoisefigure(NFmin).WiththecenteroftheNoiseCircleiswithintheGain
Circle,bothGainandNFmincanbeachieved.Thetwostabilitytraces,Mu(load)and
MuPrime(source),aregreaterthanone.Thismeansthecircuitisstable(itwillnot
oscillate)withinthe100MHzbandwidth.Finally,thelistedvalueofnf(2)isthenoise
figurewhenport2istheoutputport.Thisvaluewouldimproveifthesourcereflection
coefficientwereequaltoSopt(optimumsourcematch).
520
CopyrightAgilentTechnologies
2009
i.
Saveandcloseallthedesignsanddatadisplaysintheproject.Atthis
point,theamplifierisreadytobetestedwiththenonlinearsimulator,
HarmonicBalance.However,beforedoingso,youwillreturntothe
systemprojectinthenextlabandbuildthetwofiltersfortheRFsystem.
14. OPTIONALReadandWriteSparameterDatawithanS2Pfile
YoucanreadorwritedatainTouchstone,MDIF,orCitifileformats.ADScan
convertsupporteddataintotheADSdatasetformat.Typically,thesedata
filesareputintheprojectdirectorybuttheycanalsobesenttothedata
directory.Youcancontrolwheretheyreside.
a. Openanewschematicandsaveitas:s2p_data.
b. ClickontheDataFileToolicon.
c. Whenthedialogboxopens,clicktheboxtoWritedatafilefromdataset,
thenselecttheTouchstoneformat.Youaregoingtowrite(convert)your
existingADSdataset(s_params)intoaTouchstonefile.Itwillrepresent
measurementdatafromanetworkanalyzer.
d. IntheOutputFileNamefield,type:
my_file.s2p.Thiswillbethenameofthe
theTouchstoneformatfilethatwillbe
convertedfromADSdata.
e. SelecttheOutputDataFormatasMag/Angle.
Mag/Angle.
f. IntheDatasetsfield,selectthedataset:
s_params.Thiswasthedatasetfromthe
thesimulationusingtheidealcomponents.
components.
g. ClickWritetoFile.ChecktheStatusWindow.
Window.Ifsuccessful,youwillseeamessage.
message.Thismeansmy_file.s2pisnowa
aTouchstonefileinthedatadirectoryofthe
theamp_1900project.Youcancheckthisifyou
thisifyouwantandyoucanuseatexteditor
editor(ADSMainwindow:Tools>TextEditor)
Editor)tolookatortomodifythefile.
CopyrightAgilentTechnologies
2009
521
h. ClosetheDataFiletoolwindow.
i.
Intheemptyschematic,insertanS2PcomponentfromtheData
DataItemspalette.Youwillnoticethatthecomponentvariable
variable(File=)isnotyetassigned
j.
Toassignthedata,edittheS2Pcomponentandanotherdialog
dialogboxwillappear.Next,browseforthefilename.Whenthe
Whenthenextdialogappears,selectmy_file.s2pandclickthe
theOpenbuttonandthefilenamewillbeassigned(shownhere).
(shownhere).
k. Intheschematic,insertanS_Paramstemplate(Insert>Template)and
wiretheS2PcomponenttotheTermswithgroundsasshownhere.
l.
FromtheSimulationS_Parampalette,
insertaSweepPlanandsetitto
Start=100MHz,Stop=3GHzand
Step=100MHzasshown.Sweepplans
arenormallyusedforfrequency
sweepswithinsweepsbutyoucanuse
itheretoseehowitreplacesthe
FrequencysettingsintheSparameter
simulationcontroller.
m. TousetheSweepPlan,editthesimulation
controller.IntheFrequencytab,selectthe
SwpPlan1asshownhere.GototheDisplaytab,
tab,selectSweepPlanandremovethestart,stopand
stopandstepasshownhere.
522
CopyrightAgilentTechnologies
2009
SimulationController:
Frequencytab
n. SimulateandtheresultswillautomaticallyappearintheDataDisplay
windowbecausethetemplatehasaDDSdisplaytemplatealso.
o. ZoominontheS21measurementandaddtheS21simulationdatafrom
youroriginals_paramsdatasettoverifythattheTouchstonefilecorrectly
representedthedata.Asyouwillsee,thetwotracesareidenticalexcept
thattheS2Psimulationonlygoesto3GHz.Here,thetracethicknessand
typeshavebeenadjusted(usingTraceOptions)toshowbothtracesmore
clearly.Markershavealsobeenadded.
15. OPTIONALYIELDanalysis
Refertothetheoryslidesandruntheyieldanalysisexamplewithadifferentyieldspec
(15dBforexample)usingadifferentfrequencyrange.Examinetheresultsinthedata
display.
CopyrightAgilentTechnologies
2009
523
EXTRA EXERCISES:
1. Z_PORTSInaseparateschematic,setupanSparametersimulationofimpedance
thatisdescribedbyanequationasshownhere.Plottheresponseandtryadjusting
thevalues.
2. SetupthesimulationusingasweepwithinasweepusingtwoormoreSweepPlans.
3. Gobacktotheoptionalexerciseandusethetexteditortoeditthes2pfile,change
somevalues,andsimulatetoverifythatyoucandothis.
524
CopyrightAgilentTechnologies
2009