版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
基于dspbuilder的fir滤波器设计与仿真51、山气日夕佳,飞鸟相与还。52、木欣欣以向荣,泉涓涓而始流。53、富贵非吾愿,帝乡不可期。54、雄发指危冠,猛气冲长缨。55、土地平旷,屋舍俨然,有良田美池桑竹之属,阡陌交通,鸡犬相闻。基于dspbuilder的fir滤波器设计与仿真基于dspbuilder的fir滤波器设计与仿真51、山气日夕佳,飞鸟相与还。52、木欣欣以向荣,泉涓涓而始流。53、富贵非吾愿,帝乡不可期。54、雄发指危冠,猛气冲长缨。55、土地平旷,屋舍俨然,有良田美池桑竹之属,阡陌交通,鸡犬相闻。DesignforthefirfilterbasedondspbuilderDspbuilderprofileandbasicdesignprocessFirdesignprocessandsomethingneedtopayattentionDspbuilderprofiledspbuilderisasystem-level(oralgorithm-level)designtools,itisonthetopofmultiplesoftware,itconnectssystemlevel(algorithmsimulationmodeling)andRTL-level(hardware)twodesigntoolstogetherandplacesthemintheMatlab/simulinkgraphicdesignplatform,theQuartusIIastheunderlyingdesigntoolsissetbackground,toplaythegreatestadvantageofvarietytools.FirdesignprocessThemostbasicfirfiltercanbeexpressedas:Inwhichx(n)istheinputsamplesequence,h(n)isthefiltercoefficient,Listheorderofthefilter,y(n)isthefilter'soutputsequence.FirdesignprocessForthefourthorderfirfiltercanbeexpressedasy(n)=Cq[h(0)x(n)+h(1)x(n-1)+h(2)x(n-2)+h(3)x(n-3)+h(4)x(n-4)]Cqisquantizationfactor.ForthedirectItypefirfiltercanbecascaded,sowedesignafourthorderFirfilterfirst,thengeneratethe16orderfirfilterwewantbycascading.FirdesignprocessCreatingtheFIRModel
1.StarttheMATLABsoftware.2.OntheFilemenu,pointtoNewandclickModeltocreateanewmodelwindow.3.ClickSaveontheFilemenuinthenewmodelwindow.CreatingtheFIRModelOpensimulinkLibraryBrowserbyenteringsimulinkincommandwindow.youcanalsoopensimulinkLibraryBrowserbyusingthetoolbaricon.AddtheDspbuilderBlockaddtheDspbuilderBlockthatyouneedintoyourmodelanddouble-clicktheblockinyourmodeltosetthebolckparameters.(NOTE:inordertogenerateVHDLyoumustusetheblockinDspbuilderBlock)Connecteveryblockinthemodelconnecteveryblockinthemodelasshownabove.
(NOTE:asthisblockisusedassubsysterm,youneeduseAltbusBlockastheinputBlock.)Createsubsystermselecteveryblockandclicktherightmousebuttonandclickcreatesubsystermtocreatesubsystermandrenametheinputblock.RenametheinputblockofthesubsystermCreatesubsystermandrenametheinputblockinordertocreateVHDL,youalsoneedtoSetthesubsystermblock:selectthesubsystermblockandclickEdit-MaskSubsysterm-DocumentationandsetMasktypeasSubSystermAlteraBlockSetBuild16-orderFirfilter
16-orderfirfilterisshownbelowGeneratetheFirfilterparameteruseFDATooltogeneratethefirfilterparameter:enterFDAToolintheMatlabcommandwindowtoopenitandsettheparameterofthefiltergeneratethefirfilterparameteritissignedfractionalthatFDAToolcalculate,inordertogeneratesignedintegerthatneededinfirfiltermodlewhtchisbuildedinDspBuilder,signedinteger,Signedfractionneedtoquantifyandnormalize.clicktoquantify.generatethefirfilterparameterExportfiltercoefficientsandconvertthedataintointeger.clickfile-exporttoexportthem.generatethefirfilterparameterentercoeff=round(Num*2^9)intheMatlabcommandwindowtoviewtheparameterexported.addsinwaveblock(sin1=7.8Khzsin2=125Khz)AclockblockisrequiredtosetaSimulinksampletimethatmatchesthesampletimespecifiedontheSineWaveandIncrementDecrement.addsinwaveandclockblockAddthescopeblockaddthescopeblocktoviewthewave.thefinalmodelisshownbelow.
SimulateYourModelinSimulink
ClickConfigurationParametersontheSimulationmenutodisplaytheConfigurationParametersdialogboxandselecttheSolverpageViewthewavethefirstoneistheresultoftwosinewaveoverlay.ThesecondisthefilteredwaveformThethirdisthelow-frequencysinewavebeforefiltered.TocreateandcompileaQuartusIIprojectforyourDSPBuilderdesign,andtoprogramthedesignontoanAlteraFPGA,youneedtoaddtheSignalCompilerblock.CompilingtheDesignPerformRTLsimulationToperformRTLsimulationwiththeModelSimsoftware,youneedtoaddaTestBenchblock.ClickGenerateHDLtogenerateaVDHL-basedtestbenchfromyourmodel.ClickRunSimulinktogenerateSimulinksimulationresultsforthetestbench.ClickRunModelSimtoloadthedesigninModelSim.performRTLsimulationselectingthesignalnameintheWavewindowandright-clickingon
Format-Anolog(automatic)ClickZoomFullontherightbuttonpop-upmenuintheModelSimWavewindow.ThesimulationresultsdisplayasananalogwaveformsimilartothatshowninTimingsimulationinQuartusIIopentheQuartusIIprojectcreatedbytheSignalCompilerblockinMatlab/simulinkselectfir1129.mdlandsetitasthetop-levelEntitytosimulinkselectfir1129_GN.vhdinDesignUnitsandcreatesymbolfile
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026年山东胶南职业学院高职单招职业适应性测试考试模拟试卷及完整答案详解【夺冠系列】
- 2024年江西九江浔阳职业学院单招综合素质考试模拟试卷附完整答案详解【必刷】
- 2027年信阳鸡公山职业学院单招综合素质考试题库附答案详解(突破训练)
- 2025年陕西三秦职业学院高职单招职业适应性测试考试题库及参考答案详解【满分必刷】
- 冀教版-5年级上册-英语-教案
- 2026年淀山湖职业学院高职单招职业技能考试题库【学生专用】附答案详解
- 沪科版-8年级下册-数学-教案
- 2024年陕西宝鸡渭滨职业学院高职单招职业技能考试题库含完整答案详解(有一套)
- 青岛版-5年级上册-数学-教案
- 高中美术《美在民间·情系乡土-中国民间美术传承与创新》教学设计
- 全髋关节置换术后护理常规
- 标准气体管理制度内容
- 长沙理工大学城南学院《光纤通信原理》2022-2023学年第一学期期末试卷
- 手术室外来器械使用管理
- 2024年全国寄生虫病防治技能竞赛备赛试题库-上(血吸虫病、疟疾)
- 二手车出口规划方案
- 事故类比检查表
- 房屋居住权合同
- 公文识读与写作培训课件
- 油漆用量计算公式表
- 生理学第四章第二节 心脏的泵血功能
评论
0/150
提交评论