TI DSP simulator 種類選擇

沒有板子時使用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.
更進一步,不僅功能上,而且對流水線的影響也仿真時選擇


 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章