你好:
我在调用dsplib库中的DSPF_sp_fir_r2函数时,相同滤波器阶数32,处理相同长度数据262144点,运行速度在6678上比6748慢很多(6678上运行500ms,6748行运行50ms),请问什么原因导致这种问题,有什么方法可以在6678上提速。
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
你好:
我在调用dsplib库中的DSPF_sp_fir_r2函数时,相同滤波器阶数32,处理相同长度数据262144点,运行速度在6678上比6748慢很多(6678上运行500ms,6748行运行50ms),请问什么原因导致这种问题,有什么方法可以在6678上提速。
如果放在片外DDR中运行的话,请使能cache,并用EDMA传输数据,这样会改善代码运行时间。
另外,代码执行时间建议用TSCH, TSCL寄存器来计数。
使用参考如下:
#include "c6x.h"
...
int start, stop;
TSCL = 0; // need to write to it to start counting
start = TSCL;
///... critical code
stop = TSCL;
stop -= start; // stop will have the total number of CPU cycles