资源描述:
《matlab平台下dsp代码自动生成技术研究及实现》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、传统的DSP设计开发流程分为开发设计和产品实现两个环节,这样的开发流程存在许多问题,针对DSP编程难度大,耗时长的问题,给出了一种综合运用Matlab软件、CodeComposeStudio(CCS)软件及其内嵌工具和连接软件进行自动代码生成的方法。本文重点研究TMS320F2812DSP的自动代码生成方法,基于Matlab/Simulink模型的构建,完成了从概念设计、软件仿真、硬件测试全过程在软件算法仿真测试后肓接牛成面向数字信号处理(DSP)芯片的代码,有利发现系统设计的错误。DSP代码自动生成首先根据系统的设计思路在Matlab平台下搭建模型(,mdl);其次在Simulink
2、中对于算法进行仿真,在仿真中遇到问题后可反复修改参数;仿真满意后通过Matlab提供的RealTimeWorkshop生成面向CCS的工程文件代码(.prj),并进一步完成代码的编译,链接牛成DSP可执行机器码(.out),最后下载到目标DSP板上运行,完成系统的开发。在Matlab平台下代码的自动生成可以代替人工编写程序,这不仅工作者们从枯燥的编程中解放岀来,而且述大大简化了开发复杂程度,节约了时间,提高了准确率。这将在以后的生活中得到广泛的应用。关键词:DSP;Matlab/Simulink;代码自动生成;CCSAbstractTraditionalDSPdevelopment,d
3、esignandproductdesignanddevelopmentprocessisdividedintotwolinks,somanyproblemsinthedevelopmentprocess,inviewoftheDSPprogrammingisdifficultandtime-consuminglongproblem,presentsanintegrateduseofMatlabsoftware,theCodecomposerStudio(CCS)andembeddedsoftwaretoolsandtheconnectionmethodforautomaticCodeg
4、enerationsoftware.ThisarticlefocusesonautomaticcodegenerationmethodofTMS320F2812DSP,basedontheMatlab/Simulinkmodelbuilding,completedthewholeprocessfromconceptdesign,softwaresimulationandhardwaretestafterthesoftwarealgorithmsimulationtestdirectlygeneratecodefordigitalsignalprocessing(DSP)chip,inf
5、avoroftheerrorofdiscoverysystemdesign.DSPcodeautomaticallygeneratedbasedonthesystemthedesigntrainofthoughtintheMatlabplatformtobuildmodel(.mdl);SecondlyintheSimulinksimulationforthealgorithm,aftertheproblemsencounteredinthesimulationcanberepeatedlymodifiedparameters;SatisfactionafterthroughMatla
6、bsimulationtoprovidetheRealTimeWorkshopgeneratingcodeforCCSprojectfile(.pij),andfurthercompletethecodetocompile,linkgenerationDSPexecutablemachinecode(.out),finallydownloadedtothetargetrunonDSPboard,theimplementationofthesystem.CodeautomaticallygeneratedintheMatlabplatformcanreplaceartificialpro
7、gram,itnotonlyliberateworkersfromboringprogramming,butalsogreatlysimplifiesthedevelopmentcomplexity,savestime,improvestheaccuracy.Thiswillbewidelyusedinlaterlife.Keywords:DSP;Matlab/Simulink;Codeautomaticallygenerated;CCS引言-