本科毕业设计基于VHDL的FIR滤波器设计学院名称工程学院专业名称电子信息工程论文提交日期2012年5月14日论文答辩日期2012年5月19日摘要常用的实时数字信号处理的器件有可编程的数字信号处理(DSP)芯片(如AD系列、TI系列)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)等。有限长冲击响应(FIR)滤波器,由于FIR系统只有零点、系统稳定,便于实现FFT(快速傅里叶变换)算法、运算速度快、线性相位的特性和设计更为灵活等突出优点而在工程实际中获得广泛应用,属于数字信号处理的基本模块之一。本论文对基于FPGA的FIR数字滤波器实现进行了研究,所做的主要工作如下:1.介绍了FIR数字滤波器的基本理论和FPGA的基本概况,以及FPGA设计流程、设计指导原则和常用的设计指导思想与技巧。2.以FIR数字滤波器的基本理论为依据,使用分布式算法为滤波器的硬件实现算法,并对其进行了详细的讨论。3.设计出一个16阶低通线性相位FIR滤波器实例。设计使用VHDL语言通过QuartusII软件进行仿真。关键词:FIR滤波器FPGAQuartusIIMatlabVHDLTheDesignofFIRFilterbaseonVHDL(CollegeofEngineering,SouthChinaAgriculturalUniversity,Guangzhou510642,China)Abstract:Commonreal-timedigitalsignalprocessingdeviceshaveprogrammabledigitalsignalprocessing(DSP)chip(suchasADseries,TIseries),application-specificintegratedcircuit(ASIC),fieldprogrammablegatesarray(FPGA),etc.Limitedlongshockresponse(FIRfilter,becauseFIRsystemonlyzero,thesystemisstable,easytorealizeFFT(fastFouriertransform)algorithm,quickspeed,linearphasecharacteristicanddesignmoreflexiblesuchprominentadvantagesandinengineeringpracticebeingwidelyapplieddigitalsignalprocessing,belongtooneofthebasicmodules.ThispaperbasedonFPGArealizingtheFIRdigitalfiltersisstudied,themainworkdoneasfollows:1.IntroducedthebasictheoryofFIRdigitalfilterswithFPGA,andthebasicsituationofFPGAdesignprocess,thedesignguidingprincipleandcommondesignguidingideologyandskill.2.WiththebasictheoryofFIRdigitalfilters,byusingdistributedalgorithmbasedonthehardwareimplementationalgorithmforfilter,anditsarediscussedindetail.3.Designa17orderlow-passlinearphaseFIRfilterexamples.DesignusesVHDLlanguagethroughsimulationQuartusIIsoftware,andthesimulationresultsandMatlabsimulationresultsarecomparedandanalyzed.Keywords:FIRfilterFPGAQuartusIIDistributedArithmeticMatlabVHDL目录1前言........................................................................................................................................11.1课题背景及意义.................................................................................................................11.2课题主要研究内容.............................................................................................................21.3FPGA介绍..........................................................................................................................21.4工作平台介绍.....................................................................................................................31.4.1MATLAB.........................................................................................................................31.4.2QuartusII..........................................................................................................................32FIR滤波器原理.....................................................................................................................42.1FIR滤波器概念..................................................................................................................42.2FIR滤波器特点..................................................................................................................42.3FIR滤波器工作原理..........................................................................................................53方案分析及计算....................................................................................................................63.1FIR滤波器方案设计..........................................................................................................63.1.1分布式..............................................................................................................................73.1.2直接型..............................................................................................................................73.2FIR滤波器结构..................................................................................................................73.3基于Matlab的FIR滤波器系数计算...............................................................................84基于VHDL的FIR滤波器的设计及仿真实现.................................................................124.1寄存器模块.......................................................................................................................124.2加法器模块.......................................................................................................................134.3减法器模块.......................................................................................................................154.4乘法器模块.......................................................................................................................185仿真......................................................................................................................................196结论......................................................................................................................................20参考文献..............................................................................................................................22附录........................................................................................