从文档 C28X-FPU-LIB-UG.pdf P14的表可以知道FFTSize=512时,时间为24249 cycle count,系统时钟为150MHZ,即6.67ns, 24249*6.67ns=161.74us,与实测时间(10ms)相差较大,是哪里理解错了,还是什么原因?
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.
从文档 C28X-FPU-LIB-UG.pdf P14的表可以知道FFTSize=512时,时间为24249 cycle count,系统时钟为150MHZ,即6.67ns, 24249*6.67ns=161.74us,与实测时间(10ms)相差较大,是哪里理解错了,还是什么原因?
g_CFFT_Structure.CoefPtr = &g_CFFT_F32Coef[0];
g_CFFT_Structure.InPtr = &g_CFFT_Buf_1.Buf_0[0];
g_CFFT_Structure.OutPtr = &g_CFFT_Buf_2.Buf_0[0];
g_CFFT_Structure.Stages = 8; // FFT stages
g_CFFT_Structure.FFTSize = 512;
CFFT_f32_sincostable(&g_CFFT_Structure);
CFFT_f32(&g_CFFT_Structure);
g_PointerTRI_0.pFFT = g_CFFT_Structure.CurrentInPtr;
g_PointerTRI_0.pMag = g_CFFT_Structure.CurrentOutPtr;
CFFT_f32_mag(&g_CFFT_Structure); // Calculate magnitude, result stored in CurrentOutPtr
g_CFFT_Structure.CurrentOutPtr = g_CFFT_Structure.CurrentOutPtr + 512;
g_PointerTRI_0.pPhase = g_CFFT_Structure.CurrentOutPtr;
CFFT_f32_phase(&g_CFFT_Structure);
执行完以上代码需要约12ms,有没有办法缩短时间?