版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)
文檔簡介
附錄2:外文原文,譯文ModulatingDirectDigitalSynthesizerInthepursuitofmorecomplexphasecontinuousmodulationtechniques,thecontroloftheoutputwaveformbecomesincreasinglymoredifficultwithanalogcircuitry.Inthesedesigns,usinganon-lineardigitaldesigneliminatestheneedforcircuitboardadjustmentsoveryieldandtemperature.AdigitaldesignthatmeetsthesegoalsisaDirectDigitalSynthesizerDDS.ADDSsystemsimplytakesaconstantreferenceclockinputanddividesitdownatoaspecifiedoutputfrequencydigitallyquantizedorsampledatthereferenceclockfrequency.ThisformoffrequencycontrolmakesDDSsystemsidealforsystemsthatrequireprecisefrequencysweepssuchasradarchirpsorfastfrequencyhoppers.Withcontrolofthefrequencyoutputderivedfromthedigitalinputword,DDSsystemscanbeusedasaPLLallowingprecisefrequencychangesphasecontinuously.Aswillbeshown,DDSsystemscanalsobedesignedtocontrolthephaseoftheoutputcarrierusingadigitalphasewordinput.Withdigitalcontroloverthecarrierphase,ahighspectraldensityphasemodulatedcarriercaneasilybegenerated.ThisarticleisintendedtogivethereaderabasicunderstandingofaDDSdesign,andanunderstandingofthespuriousoutputresponse.Thisarticlewillalsopresentasampledesignrunningat45MHzinahighspeedfieldprogrammablegatearrayfromQuickLogic.AbasicDDSsystemconsistsofanumericallycontrolledoscillator(NCO)usedtogeneratetheoutputcarrierwave,andadigitaltoanalogconverter(DAC)usedtotakethedigitalsinusoidalwordfromtheNCOandgenerateasampledanalogcarrier.SincetheDACoutputissampledatthereferenceclockfrequency,awaveformsmoothinglowpassfilteristypicallyusedtoeliminatealiascomponents.Figure1isabasicblockdiagramofatypicalDDSsystemdesign.ThegenerationoftheoutputcarrierfromthereferencesampleclockinputisperformedbytheNCO.ThebasiccomponentsoftheNCOareaphaseaccumulatorandasinusoidalROMlookuptable.AnoptionalphasemodulatorcanalsobeincludeintheNCOdesign.ThisphasemodulatorwilladdphaseoffsettotheoutputofthephaseaccumulatorjustbeforetheROMlookuptable.ThiswillenhancetheDDSsystemdesignbyaddingthecapabilitiestophasemodulatethecarrieroutputoftheNCO.Figure2isadetailedblockdiagramofatypicalNCOdesignshowingtheoptionalphasemodulator.FIGURE1:TypicalDDSSystem.FIGURE2:TypicalNCODesign.TobetterunderstandthefunctionsoftheNCOdesign,firstconsiderthebasicNCOdesignwhichincludesonlyaphaseaccumulatorandasinusoidalROMlookuptable.ThefunctionofthesetwoblocksoftheNCOdesignarebestunderstoodwhencomparedtothegraphicalrepresentationofEuler’sformulaejwt=cos(wt)+jsin(wt).ThegraphicalrepresentationofEuler’sformula,asshowninFigure3,isaunitvectorrotatingaroundthecenteraxisoftherealandimaginaryplaneatavelocityofwrad/s.Plottingtheimaginarycomponentversustimeprojectsasinewavewhileplottingtherealcomponentversustimeprojectsacosinewave.ThephaseaccumulatoroftheNCOisanalogous,orcouldbeconsidered,thegeneratoroftheangularvelocitycomponentwrad/s.Thephaseaccumulatorisloaded,synchronoustothereferencesampleclock,withanNbitfrequencyword.ThisfrequencywordiscontinuouslyaccumulatedwiththelastsampledphasevaluebyanNbitadder.TheoutputoftheadderissampledatthereferencesampleclockbyanNbitregister.WhentheaccumulatorreachestheNbitmaximumvalue,theaccumulatorrollsoverandcontinues.PlottingthesampledaccumulatorvaluesversustimeproducesasawtoothwaveformasshownbelowinFigure3.FIGURE3Euler’sEquationRepresentedGraphicallyThesampledoutputofthephaseaccumulatoristhenusedtoaddressaROMlookuptableofsinusoidalmagnitudevalues.Thisconversionofthesampledphasetoasinusoidalmagnitudeisanalogoustotheprojectionoftherealorimaginarycomponentintime.Sincethenumberofbitsusedbythephaseaccumulatordeterminesthegranularityofthefrequencyadjustmentsteps,atypicalphaseaccumulatorsizeis24to32bits.SincethesizeofthesinusoidalROMtableisdirectlyproportionaltotheaddressingrange,notall24or32bitsofthephaseaccumulatorareusedtoaddresstheROMsinusoidaltable.OnlytheupperYbitsofthephaseaccumulatorareusedtoaddressthesinusoidalROMtable,whereY<NbitsandYistypicallybutnotnecessarilyequaltoD,andDisthenumberofoutputmagnitudebitsfromthesinusoidalROMtable.SinceanNCOoutputsacarrierbasedonadigitalrepresentationofthephaseandmagnitudeofthesinusoidalwaveform,designershavecompletecontroloverfrequency,phase,andevenamplitudeoftheoutputcarrier.ByaddingaphaseportandaphaseaddertothebasicNCOdesign,theoutputcarrieroftheNCOcanbeMarrayphasemodulatedwhereMequalsthenumberofphaseportbitsandwhereMislessthanorequaltotheYnumberofbitsusedtoaddressthesinusoidalROMtable.ForsystemdesignsthatrequireamplitudemodulationsuchasQAM,amagnitudeportcanbeaddedtoadjustthesinusoidalROMtableoutput.NotethatthisportisnotshowninFigure2andthatthisfeatureisnotdemonstratedinthesampleQuickLogicFPGAdesign.Finally,frequencymodulationisagivenwiththebasicNCOdesign.Thefrequencyportcandirectlyadjustthecarrieroutputfrequency.SincefrequencywordsareloadedintotheDDSsynchronoustothesampleclock,frequencychangesarephasecontinuous.AlthoughDDSsystemsgivethedesignercompletecontrolofcomplexmodulationsynthesis,therepresentationofsinusoidalphaseandmagnitudeinanon-lineardigitalformatintroducesnewdesigncomplexities.Insamplinganycontinuous-timesignal,onemustconsiderthesamplingtheoryandquantizationerror.TounderstandtheeffectsofthesamplingtheoryonaDDSsystem,itisbesttolookattheDDSsynthesisprocessesinboththetimeandfrequencydomain.Asstatedabove,theNCOgeneratesasinusoidalwaveformbyaccumulatingthephaseataspecifiedrateandthenusesthephasevaluetoaddressaROMtableofsinusoidalamplitudevalues.Thus,theNCOisessentiallytakingasinusoidalwaveformandsamplingitwiththerisingorfallingedgeoftheNCOinputreferencesamplingclock.Figure4showsthetimeandfrequencydomainoftheNCOprocessing.Notethatthisrepresentationdoesnotassumequantization.Basedontheloadedfrequencyword,theNCOproducesasetofamplitudeoutputvaluesatasetperiod.Thefrequencydomainrepresentationofthissinusoidisanimpulsefunctionatthespecifiedfrequency.TheNCO,however,outputsdiscretedigitalsamplesofthissinusoidattheNCOreferenceclockrate.Inthetimedomain,theNCOoutputisafunctionofthesamplingclockedgestrobesmultipliedbythesinusoidwaveformproducingatrainofimpulsesatthesinusoidamplitude.Inthefrequencydomain,thesamplingstrobesofthereferenceclockproduceatrainofimpulsesatfrequenciesofKtimestheNCOclockfrequencywhereK=...-1,0,1,2....Sincethesamplingclockwasmultipliedbythesinusoidinthetimedomain,thefrequencydomaincomponentsofthesinusoidandthesamplingclockneedtobeconvolvedtoproducethefrequencydomainrepresentationoftheNCOoutput.ThefrequencydomainresultsaretheimpulsefunctionatthefundamentalfrequencyofthesinusoidandthealiasimpulsefunctionsoccurringatKtimestheNCOclockfrequencyplusorminusthefundamentalfrequency.Thefundamentalandaliascomponentoccurat:K*Fclk-FoutK*Fclk+FoutWhereK=...-1,0,1,2.....andK=0istheNCOsinusoidfundamentalfrequencyFoutisthespecifiedNCOsinusoidoutputfrequencyFclkistheNCOreferenceclockfrequencyFIGURE4NCOOutputRepresentationTimeandFrequencyDomainTheDACoftheDDSsystemtakestheNCOoutputvaluesandtranslatesthesevaluesintoanalogvoltages.Figure4showsthetimeandfrequencydomainrepresentationsoftheDACprocessingstartingwiththeNCOoutput.TheDACoutputisasampleandholdcircuitthattakestheNCOdigitalamplitudewordsandconvertsthevalueintoananalogvoltageandholdsthevalueforonesampleclockperiod.ThetimedomainplotoftheDACprocessingistheconvolutionoftheNCOsampledoutputvalueswithapulseofonesampleclockperiod.Thefrequencydomainplotofthesamplingpulseisasin(x)/xfunctionwiththefirstnullatthesampleclockfrequency.Sincethetimedomainwasconvolved,thefrequencydomainismultiplied.ThismultiplicationdampenstheNCOoutputwiththesin(x)/xenvelope.ThisattenuationattheDACoutputcanbecalculatedasfollowsandasampleoutputspectrumisshowninFigure5:Atten(F)=20log[(sin(pF/Fclk)/pF/Fclk)]WhereFistheoutputfrequencyFclkisthesampleclockfrequencyFIGURE5:DACOutputRepresentationinTimeandFrequencyDomainAsidefromthesamplingtheory,thequantizationoftherealvaluesintodigitalformmustalsobeconsideredintheperformanceanalysisofaDDSsystem.ThespuriousresponseofaDDSsystemisprimarilydictatedbytwoquantizationparameters.TheseparametersarethephasequantizationbythephaseaccumulatorandthemagnitudequantizationbytheROMsinusoidaltableandtheDAC.Asmentionedabove,onlytheupperYbitsofthephaseaccumulatorareusedtoaddresstheROMlookuptable.Itshouldbenoted,however,thatusingonlytheupperYbitsofthephaseaccumulatorintroducesaphasetruncation.Whenafrequencywordcontaininganon-zerovalueinthelower(N-Y-1:0)bitsisloadedintotheDDSsystem,thelowernon-zerobitswillaccumulatetotheupperYbitsandcauseaphasetruncation.Thefrequencyatwhichthephasetruncationoccurscanbecalculatedbythefollowing:Ftrunc=FW(N-Y-1:0)/2N-Y*Fclk.Aphasetruncationwillperiodically(attheFtruncrate)phasemodulatetheoutputcarrierforward2p/28tocompensateforfrequencywordgranularitygreaterthan2Y.Thephasejumpcausedbytheaccumulationofphasetruncatedbitsproducesspursaroundthefundamental.Thesespursarelocatedplusandminusthetruncationfrequencyfromthefundamentalfrequencyandthemagnitudeofthespurswillbe-20log(2Y)dBc.AsampleoutputofaphasetruncationspurisshowninFigure5.InatypicalNCOdesign,theROMsinusoidaltablewillholda?sinewave(0,p/2)ofmagnitudevalues.TheROMtableisgeneratedbytakingallpossiblephasevalueaddressesandmaptoarealmagnitudesinevalueroundedtothenearestDbits.Thus,themaximumerroroutputis±-?LSBgivingaworstcasespurof-20log(2D)dBc.LiketheNCOROMtable,aDACquantizesthedigitalmagnitudevalues.ADAC,however,outputsananalogvoltagecorrespondingtothedigitalinputvalue.WhendesigningtheNCOsinusoidalROMtable,oneshouldtakesomeempiricaldataontheDAClinearitytobetterunderstandtheinteractionbetweentheROMtableandtheDAC.ThequantizationforaDACisspecifiedagainstanideallinearplotofdigitalinputversusanalogoutput.Twolinearityparameters,differentialandintegrallinearity,areusedtospecifyaDAC’sperformance.Differentiallinearityistheoutputstepsizefrombittobit.ADACmustguaranteeadifferentiallinearityofamaximum1LSB.Whenaninputcodeisincreased,theDACoutputmustincrease.IftheDACvoltagedoesnotincreaseversusanincreasedigitalinputvalue,theDACissaidtobemissingcodes.Thus,a10bitDACthathasadifferentiallinearityofgreaterthat1LSBisonlyaccurateto9orlessbits.ThenumberofaccurateoutputbitswillspecifytheDDSspuriousperformanceas-20log(2dl)wheredlisthenumberdifferentiallinearbits..IntegrallinearityisameasureoftheDAC’soveralllinearperformanceversusanideallinearstraightline.Thestraightlineplotcanbeeithera“beststraightline”whereDCoffsetsarepossibleatboththeminandmaxoutputsoftheDAC,orthestraightlinecancrosstheendpointsoftheminandmaxoutputvalues.ADACwilltendtohaveacharacteristiccurvethatistraversedovertheoutputrange.Dependingontheshapeandsymmetry(symmetryaboutthehalfwaypointoftheDACoutput)ofthiscurve,outputharmonicsoftheDDSfundamentaloutputfrequencywillbeproduced.AstheseharmonicsapproachandcrosstheNyquistfrequencyofFclk/2,theharmonicsbecomeundersampledandreflectbackintothebandofinterest,0toFclk/2.ThisproblemisbestillustratedbysettingtheNCOoutputtoFclk/4plusaslightoffset.Thethirdharmonicwillfallminus3foldsthesmalloffsetfromthefundamentalandthesecondharmonicwillcrosstheNyquistfrequencyby2foldsthesmalloffsetleavingareflectedimagebackinthebandofinterestAsampleplotofthisfrequencysetupisshowninFigure5.OtherDACcharacteristicthatwillproduceharmonicdistortionisanydisruptionofthesymmetryoftheoutputwaveformsuchasadifferentriseandfalltime.ThesecharacteristicscantypicallybecorrectedbyboardcomponentsexternaltotheDACsuchasanRFtransformer,boardlayoutissues,attenuationpadsetc.GiventhecomplexitiesoftheDDSsystem,engineersshouldconsiderimplementingthedesignusingseparatedevicesforthenumericallycontrolledoscillator,thedigitaltoanalogconverter,andthelowpassfilter.Thisapproachallowsforsignalobservationatmanypointsinthesystem,yetiscompactenoughtobepracticalasanend-solution.Alternatively,thediscreteimplementationcanserveasaprototypingvehicleforasingle-chipmixedsignalASIC.TheauthordevelopedaversionofthedesignusingaHarrisHI5721evaluationboardfortheDAC.TheNCOattheheartoftheDDSdesign,andarandomgeneratortotestsignalmodulation,wasimplementedintoabout65%ofaQuickLogicfieldprogrammablegatearray(FPGA).ThisFPGA,aQL16x24B4000-gatedevice,waschosenforitshighperformance,ease-of-use,andpowerfuldevelopmenttools.TheNCOdesignincludedfollowing:DevelopedinVerilogwiththe8bitCLAadderschematiccapturedandnetlistedtoVerilog32bitfrequencywordinput32phaseaccumulatorpipelinedover8bits8bitphasemoudulationwordinput8bitsineROMlook-uptableThedesignwasdescribedmostlyinVerilog,withan8bitcarrylookaheadaddermodifiedfromQuickLogic’smacrolibrarynetlistedtoVerilog.Thewholedesigncyclewaslessthanfourdays(twodaystodescribethedesignandadayandahalftoprototypethehardware).Everythingworkedperfectlythefirsttime,withthedesignrunningatanimpressive45MHzaspredictedbythesoftwaresimulationtools.PlotsusedinthearticletoillustrateDDSperformanceparameterswereprovidedfromthetestconfiguration.Figure6belowshowstheexternalIOinterfacetotheNCOdesign.Thefunctionofeachsignalisdescribedinthefollowingtable.SignalFunctionTableFREQWORD[31:0]ThisinputisthefrequencycontrolwordtotheNCO.Thiswordcontrolsthephaseaccumulatorrate,andthus,theoutputfrequencyoftheDACOUTsinusoidalwaveform.Theoutputcarrierfrequencyiscalculatedbythefollowing:PHASEWORD[7:0]ThisinputisthephasemodulationcontrolwordtotheNCO.Thiswordcontrolsthephaseoffsetfollowingthephaseaccumulator.Thisphaseoffsetisusedtophasemodulatetheoutputcarrier.FWWRNThisinputisthelowassertedfrequencywordwritestrobe.ThisstrobeinputregisterstheFREQWORDinputontherisingedge.ThisstrobecanbeasynchronoustotheSYSCLK.SYSCLKThisisthereferencesystemclockinputtotheNCO.Thisclockisthesamplingclockoftheoutputcarrier.PNCLKThisinputisthepseudo-noisegeneratorclockinput.ThisclocksetsthedatarateoftheIandQdataoutputs.RESETNThisinputisalowassertedglobalreset.Whenasserted,theinternalphaseandfrequencywordregistersareclearedstoppingtheoutputcarrierat0radians.DACOUT[7:0]ThisoutputisthesinusoidalDACamplitudeword.ThiswordisvalidontherisingedgeoftheDACCLK.Thesinusoidalwaveformoutputisrepresentedbythefollowing:f(t)=sin(2pFout(t)+Pout)DACCLKThisoutputistheDACclockstrobe.ThisclockistheSYSCLKfeedbacktoanoutputpincompensatingforthelatencyoftheNCOIOpins.TheDACOUTamplitudewordswillbevalidontherisingedgeoftheDACCLK.SINThisoutputisasinglebitdigitalsinewaveoutput.ThissinewaveoutputcomesfromtheMSBofthephaseaccumulator.Theoutputfrequencyofthispiniscontrolledbythefrequencywordinput.COSThisoutputisasinglebitdigitalcosinewaveoutput.ThiscosinewaveoutputcomesformtheMSBandnextmostsignificantbitofthephaseaccumulator.Theoutputfrequencyofthispiniscontrolledbythefrequencywordinput.MSINThisoutputisasinglebitdigitalsinewaveoutput.ThissinewaveoutputcomesfromtheMSBofthephasemodulator.Theoutputfrequencyofthispiniscontrolledbythefrequencywordinputandphaseoffsetbythephasewordinput.ThissinewaveoutputisthesameastheSINoutputwithaphaseoffsetofplus2p/28*PHASEWORD.MCOSThisoutputisasinglebitdigitalcosinewaveoutput.ThiscosinewaveoutputcomesformtheMSBandnextmostsignificantbitofthephasemodulator.Theoutputfrequencyofthispiniscontrolledbythefrequencywordinputandthephaseoffsetbythephasewordinput.ThiscosinewaveoutputisthesameastheCOSoutputwithaphaseoffsetofplus2p/28*PHASEWORD.IDATAThisoutputisa25-1pseudonoiserandompattern.ThisoutputisnotafunctionalpartoftheNCOdesignbutusedtodemonstratephasemodulationusingthephaseport.QDATAThisoutputisa25-1pseudonoiserandompattern.ThisoutputisnotafunctionalpartoftheNCOdesignbutusedtodemonstratephasemodulationusingthephaseport.Figure6:TheExternalIOInterfaceTopLevel(dds.v)ThetopleveloftheNCOdesigninstantiatesthefunctionalblocksoftheNCOdesignandthePNgeneratorblock.PNGenerator(pngen.v)ThismoduleisnotpartoftheNCOdesignbutisusedtoproduceasamplerandomdatapatterntomodulatethecarrieroutput.ThismoduleusesthePNCLKinputtoclocktwoGoldcode5bitPNgenerators.TheoutputsofthePNgeneratorsareIDATAandQDATAoutputs.ThelowerlevelblockofthisNCOdesignconsistofasynchronousfrequencywordinputregister,asynchronousphasewordinputregister,a32bitpipelinedphaseaccumulator,an8bitphaseadder,andasinlockuptable.AdetaileddescriptionofeachoftheNCOblocksandthePNgeneratorareprovidedinthefollowingsections.LoadFrequencyWord(loadfw.v)Theloadfrequencywordblockisasynchronizingloadingcircuit.TheFREQWORD[31:0]inputdrivesathedatainputtothe32bitfwregregisterthatissampledontherisingedgeoftheFWWRNwritestrobe.TheFWWRNstrobealsodrivesthedatainputtoametastableflipflopfwwrnmthatisusedinconjunctionwithasynchronousregisterfwwrnstoproduceaFWWRNrisingedgestrobe.Thisrisingedgestrobeloadp1isthenpipedforanadditional3clockcyclesproducingtheloadstrobesloadp2,loadp3,andloadp4.Theloadstrobesareusedtosignalwhentoupdatethesynchronouspipeline8bitregisterspipefw1,pipefw2,pipefw3,andpipefw4tothesampledfrequencywordcontent.Thepipelineregistersareconcatenatedtoproducethe32bitsynchronousfrequencywordoutputSYNCFREQ[31:0]thatisstaggeredtocompensateforthe32bitpipelinedphaseadder.PhaseWordAccumulator(phasea.v)Thephaseaccumulatorblockisa32bitaccumulatorthatispipelinedin8bitsections.ThismoduleinstanciatesaschematiccapturedcarrylockaheadCLAadderthathasacarryinandcarryoutport.Thesynchronousfrequencyword,staggeredtomatchthepipelinedaccumulator,isloadedintotheBinputoftheCLAadders.ThesumoutputoftheCLAaddersareregisteredinthepiperegisteredwiththeoutputtiedbacktotheAinputoftheCLAadders.ThecarryoutputoftheCLAaddersisregisteredinthepipecregisterswiththeoutputtiedtothenextmostsignificantCLAaddercarryinput.Themostsignificantsumoutputregisterpipe4isassignedtothePHASEoutputportgivingaphasevaluequantizedto8bits.Adigitalsineandcosinevalueisalsocalculatedfromthepipe4registerandbroughtoutofthechipasSINandCOS.LoadPhaseWord(loadpw.v)Theloadphasewordblockisasynchronizingloadingcircuit.ThePHASEWORD[7:0]inputdrivesthedatainputtothe32bitpwregregisterthatissampledontherisingedgeofthePWWRNwritestrobe.ThePWWRNstrobealsodrivesthedatainputtoametastableflipfloppwwrnmthatisusedinconjunctionwithasynchronousregisterpwwrnstoproduceaFWWRNrisingedgestrobe.Thisrisingedgestrobeloadisusedtosignalwhentoupdatethesynchronousphasewordregisterphswd.ThephswdregisterisassignedtothesynchronousphasewordoutputSYNCPHSWD[7:0].PhaseModulator(phasemod.v)Thephasemodulatorblockisusedtophaseoffsetthephaseaccumulator8bitquantizedoutputwiththesynchronousphasewordfromtheloadphasewordblock.ThismoduleinstantiatesaCLAadderwiththeAinputtiedtothesynchronousphaseoutputandtheBinputtiedtothephaseaccumulatoroutput.ThesumoutputoftheadderisregisteredinthemphsregregisterandassignedtotheMODPHASEoutputport.AmodulatedversionofthesineandcosinevaluesarecalculatedandbroughtoutofthechipasMSINandMCOS.SineLockup(sinlup.v)Thismoduletakesthemodulatedphasevalueformthephasemodulatorblockandtranslatedthequantized8bitvalueintoasinewaveformamplitudevaluequantizedto8bits.ThetranslationfromphasetoamplitudeisperformedbyasineROMtablethatininstantiatedinthismodule.TheROMtableisreducedtoa?ofthesymmetricalsinewaveformandtheMSBofthesinewaveformisequivalenttothemodulatedphaseinput.Thismoduleperformsthecalculationstoreconstructacompleteperiodofthesinewaveformfromthe?representationoftheROMtableandtheMSBofthemodulatedphaseinput.Tobetterunderstandtheprocessingofthismodule,considerthefollowing.Themodulatedphasevalueisa0to2pvaluequantizedto8bits2p/28.Thequantizedvalueforp/2,p,3p/2,and2pare0x3F,0x7F,0xBF,and0xFF.Theamplitudevaluesfor0top/2isstoredintheROMtable.Theamplitudevaluesforp/2toparetheROMtableoutputinthereverseorder.Theamplitudevaluesforpto3p/2arethesameoutputastheamplitudevaluefrom0top/2withtheoutputfromtheROMtableinverted.Finallytheamplitudevaluefor3p/2to2parethesameasforpto3p/2withtheROMtableaccessedinreverse.ThismodulemanagestheaddressvaluestotheROMtableandtheamplitudeoutputstoformthecompleteperiodofthesinewaveform.ThefirstprocessofgeneratingthesinewavefunctionistheaddressingoftheROMtablesuchthatphaseanglesp/2topand3p/2to2pareaddressedinthereverseorder.ReverseaddressingisaccomplishedbysimplyinvertingtheROMtableaddressinputvector.ThephasemodulatedaddressinputisinvertedwhentheMODPHASE[6]isoneandisthenregisteredinthephaseaddregister.ThephaseaddressisusedtoaddresstheROMsinetablewiththeoutputregisteredintheqwavesin_ffregister.Toconstructthenegativeamplitudevaluesofthesinewaveform,theMSBofthemodulatephasewordinputisregisteredtwiceinmodphase_msb1_ffandmodphase_msb2_ff,compensatingforthetwocyclelatencyofthephaseaddandqwavesin_ffregisters.ThedelayedMSBbitisusedtoinverttheROMtableoutputwhenone.ThealteredROMtableoutputandtheinvertofthedelayedmodulatedphasewordMSBarefinallyregisteredinbythedac_ffregisterandthenassignedtotheDACOUToutputport.SineROMTable(romtab.v)ThismoduleisthesinewaveformROMtable.Thistableconvertsthephasewordinputtoasineamplitudeoutput.Toconservearea,only?ofthesymmetricalsinewaveformisstoredintheROM.Thesinevaluesstoredinthistablearethe0top/2unsignedvaluesquantizedto8bits.Thus,theROMtablerequiresa6bitphaseaddressinputandoutputsa7bitamplitudeoutput.Thesinlupmoduleprocessesthephaseandamplitudevaluestoproduceacompletesineperiod.DanMorellihasover9yearsofdesignandmanagementexperience.Hisareasofexpertiseincludespreadspectrumcommunications(involvingGPS,TDRSS,and802.11),PCchipsetandsystemarchitecture,celllibrarydevelopment(forECLdevices)andASICdevelopment.Hehasbeenpublishedandhasmultiplepatentsawardedandpending.DancurrentlyworksforAccelentSystemsInc.,anelectronicdesignconsultingcompany,whereheisafounderandtheVPofEngineering.
數(shù)字頻率合成器在探討許多復(fù)雜的相位連續(xù)的調(diào)制技術(shù)中,對模擬電路中輸出波形的控制已經(jīng)越來越困難。在這些設(shè)計中,使用非線性數(shù)字式設(shè)計除去電路板需要的調(diào)整額外輸出和溫度。一個適合這個目標(biāo)的數(shù)字式設(shè)計就是直接數(shù)字頻率合成器(DDS)。一個DDS系統(tǒng)僅僅使用一個恒定參考時鐘輸入和將該時鐘分解為指定的量化數(shù)位頻率輸出或者對參考時鐘頻率取樣。這種形式是頻率控制使得DDS系統(tǒng)成為需要精確頻率掃描比如雷達(dá)尖叫聲或者快速頻率計量器的理想系統(tǒng)。根據(jù)數(shù)字輸入控制字以控制輸出頻率,DDS系統(tǒng)可以用來當(dāng)作一個允許精確頻率連續(xù)改變相位的鎖相環(huán)(PLL)。根據(jù)后面的說明,我們知道DDS系統(tǒng)還可以使用輸入數(shù)字相位控制字來控制輸出載波的相位。用數(shù)字式控制載波相位,很容易產(chǎn)生一個高頻譜密度的相位調(diào)制載波。本文主旨是給讀者一個基本的DDS設(shè)計和寄生輸出響應(yīng)的知識。本文將展示一個運(yùn)行于45MHz的快速現(xiàn)場可編輯邏輯器件。一個基本的DDS系統(tǒng)包括一個數(shù)字振蕩器(NCO)用來產(chǎn)生輸出載波,和一個數(shù)模轉(zhuǎn)換器(DAC)用來將從NCO過來的數(shù)字式正弦曲線字產(chǎn)生一個抽樣的模擬載波。當(dāng)DAC的輸出是根據(jù)參考時鐘頻率的抽樣時,通常用一個圓滑波形的低通濾波器來消除混疊成分。根據(jù)輸入的參考時鐘抽樣經(jīng)過NCO來產(chǎn)生輸出載波。NCO的基本構(gòu)成是一個相位累加器和一個正弦ROM查找表。通過增加NCO的載波相位調(diào)制的輸出能力可以提高DDS系統(tǒng)的設(shè)計。為了更好的理解NCO設(shè)計的各種功能,首先考慮僅包括一個相位累加器和一個正弦ROM查找表的基本NCO設(shè)計。與歐拉公式(Euler’sformula)圖解比較就能最好地理解這兩個表的NCO設(shè)計的功能。歐拉公式的圖解如圖3所示,是一個單位向量繞著實(shí)軸和虛平面的中心以Wrad/s的速度轉(zhuǎn)圈。這個頻率控制字是最后一個抽樣相位值通過一個N位加法器的連續(xù)地累加而成。加法器的輸出是參考抽樣時鐘通過一個N位寄存器的抽樣。當(dāng)累加器達(dá)到N位最大值的時候,累加器翻轉(zhuǎn)然后繼續(xù)。然后相位累加器的抽樣輸出用來在一個正弦量化值表里進(jìn)行查找。抽樣相位到正弦量化的轉(zhuǎn)化可以看作是真實(shí)的或者虛擬的成分及時地影射。因為相位累加器的比特位數(shù)決定了頻率調(diào)整的步進(jìn),一個典型的相位累加器的大小是24到32位。由于正弦ROM表的大小是跟尋址范圍直接成比例的,因此,不是所有相位累加器的24或32位都用來作為正弦ROM表的地址。僅是相位累加器的高Y(Y〈N〉位是用來作為正弦ROM表的地址,Y通常不必要等于正弦ROM表的輸出量位D。因為一個NCO輸出的一個基于一個數(shù)字表示的相位和正弦波量化形式的載波,所以設(shè)計者可以完全的控制輸出載波的頻率,相位和幅度。通過加入一個相位端口和一個相位加法器到一個基本的NCO設(shè)計中,NCO的輸出載波當(dāng)M等于相位端口數(shù)和M小于或等于Y(用來作為正弦ROM表的地址位數(shù))時可以被M矩陣相位調(diào)制。假如系統(tǒng)設(shè)計需要幅度調(diào)制如QAM,可以加入一個量化端口來調(diào)整正弦ROM表的輸出。注意到這個端口沒有在圖2里表示出來以及這個特色沒有在簡單的快速邏輯FPGA設(shè)計中論證。最后,頻率是調(diào)制是一個基本的NCO設(shè)計給出的。因為頻率控制字是跟抽樣時鐘是同步裝載到DDS的,頻率的轉(zhuǎn)化是相位連續(xù)的。雖然DDS系統(tǒng)給設(shè)計者完全地控制復(fù)雜的調(diào)制合成,但是在一個非線性數(shù)字格式的正弦相位和量級的表示卻是復(fù)雜的新設(shè)計。在取樣任何的連續(xù)時間信號時,必須考慮取樣原理和量子化誤差。為了理解DDS系統(tǒng)中取樣理論的效果,最好看一下時間和頻率域的DDS合成過程。就象上面規(guī)定的,通過以指定的速率累積的形式由NCO產(chǎn)生一個正弦波然后用一個相位的值來定位一個正弦調(diào)制ROM表的值。因此,NCO本質(zhì)上用一個正弦波和用NCO的上升或下降沿輸出參考取樣時鐘對其取樣。圖4表示在時間和頻率域里NCO的處理。注意到這個表示并非量子化假設(shè)?;陬l率控制字的裝載,NCO在一個時期內(nèi)提供一批幅度的輸出值。這個正弦曲線的頻率域表示在指定的頻率里是一個推動的作用。N
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 【正版授權(quán)】 ISO 20948:2024 EN Vegetable fats and oils - Determination of aflatoxins B1,B2,G1 and G2 by immunoaffinity column clean-up and high-performance liquid chromatography
- 學(xué)校教育服務(wù)行業(yè)相關(guān)項目經(jīng)營管理報告
- 糞便潛血檢測用化學(xué)試紙項目營銷計劃書
- 布料除臭行業(yè)經(jīng)營分析報告
- 去中心化網(wǎng)絡(luò)服務(wù)行業(yè)市場調(diào)研分析報告
- 獸皮產(chǎn)業(yè)鏈招商引資的調(diào)研報告
- 裘皮披肩商業(yè)機(jī)會挖掘與戰(zhàn)略布局策略研究報告
- 廢舊汽車回收利用行業(yè)經(jīng)營分析報告
- 自行車測速計項目營銷計劃書
- 自行車前叉市場分析及投資價值研究報告
- 2024秋八年級道德與法治上冊 第二單元 遵守社會規(guī)則 第五課 做守法的公民 第1框 法不可違說課稿 新人教版
- 公務(wù)員2021年國考《申論》真題(地市級)及參考答案
- DBJ41T 263-2022 城市房屋建筑和市政基礎(chǔ)設(shè)施工程及道路揚(yáng)塵污染防治差異化評價標(biāo)準(zhǔn) 河南省工程建設(shè)標(biāo)準(zhǔn)(住建廳版)
- 細(xì)紗機(jī)設(shè)備維護(hù)維修說明書
- 地方課程六年級上冊
- 淺論構(gòu)建高效課堂研究的意義
- 村級一村一品實(shí)施方案
- 高壓線安全防護(hù)專項施工方案(完整版)
- 時柵位移傳感技術(shù)講解
- TKT-Glossary中譯版
評論
0/150
提交評論