Chinaunix首页 | 论坛 | 博客
  • 博客访问: 128345
  • 博文数量: 22
  • 博客积分: 1410
  • 博客等级: 上尉
  • 技术积分: 225
  • 用 户 组: 普通用户
  • 注册时间: 2008-12-15 19:03
文章分类

全部博文(22)

文章存档

2011年(1)

2010年(1)

2009年(20)

我的朋友

分类: 嵌入式

2010-02-13 11:21:42

没有板子时使用simulator(软仿真)来验证算法,是一种有效的方式。TI的CCS提供了三种软仿真方式CPU Cycle Accurate, Device Functional and Device Cycle Accurate.其各种意义如下所示。
 
a. If you need only to debug and optimize the program for code size and CPU cycles, then a CPU Cycle Accurate Simulator will give the best possible performance. These simulators model the instruction set of their respective targets. In addition, they model timers and can take external interrupts at the CPU core boundary. This allows BIOS code to run over CPU simulators. They can measure CPU cycles and other CPU core events. This is not the best simulator choice for an application that uses peripherals.
是优化算法用的。
 
b. If you are debugging an application that uses EDMA, or optimizing an application for better code and data placement, a Device Functional Simulator is the best choice. These simulators allow the DMA, Interrupt Selector, Caches, and McBSP to be programmed and used. However, only the hit/miss statistics of the caches is supported. DMA does not simulate the true cycles of data transfer, but functionally copies the data from source to destination. However, the peripherals maintain a correct programmer view. This can be used for faster device simulation when total device cycles are not of much concern.
当需要仿真中断、EDMA、cache等功能时选择。
 
c. If you want to use EDMA and Caches, and are interested in knowing the total device cycles and stall cycles consumed by the application, a Device Cycle Accurate Simulator should be selected. These simulators, besides supporting the programmatic view of all peripherals and caches, also model them in a cycle-accurate manner. However, these simulators are slow because of the vast details they model.
更进一步,不仅功能上,而且对流水线的影响也仿真时选择
阅读(3707) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2010-11-12 17:20:33

你好,我最近在做simulator环境仿真的东西,有个问题想请教你。在simulator 模式下可以仿真EDMA?应该怎样设置呢?谢谢了!