摘    要
传统的DSP设计开发流程分为开发设计和产品实现两个环节,这样的开发流程存在许多问题,针对DSP编程难度大,耗时长的问题,给出了一种综合运用Matlab软件、Code Compose Studio(CCS)软件及其内嵌工具和连接软件进行自动代码生成的方法。本文重点研究TMS320F2812 DSP的自动代码生成方法,基于Matlab/Simulink模型的构建,完成了从概念设计、软件仿真、硬件测试全过程在软件算法仿真测试后直接生成面向数字信号处理(DSP)芯片的代码,有利发现系统设计的错误。
DSP代码自动生成首先根据系统的设计思路在Matlab平台下搭建模型(.mdl);其次在Simulink中对于算法进行仿真,在仿真中遇到问题后可反复修改参数;仿真满意后通过Matlab提供的Real Time Workshop生成面向CCS的工程文件代码(.prj),并进一步完成代码的编译,链接生成DSP可执行机器码(.out),最后下载到目标DSP板上运行,完成系统的开发。
在Matlab平台下代码的自动生成可以代替人工编写程序,这不仅工作者们从枯燥的编程中解放出来,而且还大大简化了开发复杂程度,节约了时间,提高了准确率。这将在以后的生活中得到广泛的应用。
关键词:DSP;Matlab/Simulink;代码自动生成;CCS
Abstractmatlab 下载
Traditional DSP development, design and product design and development process is divided into two links, so many problems in the development process, in view of the DSP programming is difficult and time-consuming long problem, presents an integrated use of Matlab software, the Code composer Studio (CCS) and embedded software tools and the connection method for automatic Code generation software. This article focuses on automatic code generation method of TMS320F2812 DSP, based on the Matlab/Simulink model building, completed the whole process from concept design, software simulation and hardware test after the software algorithm simulation test directly generate code for digital signal processing (DSP) chip, in favor of the error of discovery system design.
DSP code automatically generated based on the system the design train of thought in the Matlab platform to build model (.mdl); Secondly in the Simulink simulation for the algorithm, after the problems encountered in the simulation can be repeatedly modified parameters; S
atisfaction after through Matlab simulation to provide the Real Time Workshop generating code for CCS project file (. prj), and further complete the code to compile, link generation DSP executable machine code (.out), finally downloaded to the target run on DSP board, the implementation of the system.
Code automatically generated in the Matlab platform can replace artificial program, it not only liberate workers from boring programming, but also greatly simplifies the development complexity, saves time, improves the accuracy. This will be widely used in later life.
Keywords:DSP; Matlab/Simulink; Code automatically generated; CCS

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。