реклама на сайте
подробности

 
 
> c28х FPU library beta1, помогите разобраться с real FFT
sigmaN
сообщение Sep 16 2009, 19:33
Сообщение #1


I WANT TO BELIEVE
******

Группа: Свой
Сообщений: 2 617
Регистрация: 9-03-08
Пользователь №: 35 751



Имеется оптимизированная либа C28x Floating Point Unit Library, содержащая следующие функции

RFFT_f32 void RFFT_f32(RFFT_F32_STRUCT *);
This module computes a 32-bit floating-point real FFT including input bit
reversing. This version of the function requires input buffer memory alignment. If
you do not wish to align the input buffer, then use the RFFT_f32u function.

RFFT_f32u void RFFT_f32u(RFFT_F32_STRUCT *);
This module computes a 32-bit floating-point real FFT including input bit
reversing. This version of the function does not have any buffer alignment
requirements. If you can align the input buffer, then use the RFFT_f32 function
for improved performance.

RFFT_f32_mag void RFFT_f32_mag(RFFT_F32_STRUCT *);
This module computes the real FFT magnitude.

RFFT_f32s_mag void RFFT_f32s_mag(RFFT_F32_STRUCT *);

This module computes the scaled real FFT magnitude.

RFFT_f32_phase void RFFT_f32_phase(RFFT_F32_STRUCT *);

This module computes FFT Phase

RFFT_f32_sincostable void RFFT_f32_sincostable(RFFT_F32_STRUCT *);
This module generates the twiddle factors used by the real FFT.


typedef struct {
float32 *InBuf;//Input buffer
float32 *OutBuf; //Output buffer
float32 *CosSinBuf;
float32 *MagBuf;
float32 *PhaseBuf;
Uint16 FFTSize;
Uint16 FFTStages;
} RFFT_F32_STRUCT;
По поводу output buffer сказано:
Result of RFFT_f32. This buffer is used as
the input to the magnitude and phase
calculations. The output order for FFTSize
= N is:
OutBuf[0] = real[0]
OutBuf[1] = real[1]
OutBuf[2] = real[2]
………
OutBuf[N/2] = real[N/2]
OutBuf[N/2+1] = imag[N/2-1]
………
OutBuf[N-3] = imag[3]
OutBuf[N-2] = imag[2]
OutBuf[N-1] = imag[1]


Почему на выходе _REAL_ FFT видим imag, т.е. мнимую часть?
Каков смысл FFT magnitude и phase?
Как используя эти функции реализовать обратное преобразование?


--------------------
The truth is out there...
Go to the top of the page
 
+Quote Post
 
Start new topic
Ответов
sigmaN
сообщение Sep 17 2009, 05:41
Сообщение #2


I WANT TO BELIEVE
******

Группа: Свой
Сообщений: 2 617
Регистрация: 9-03-08
Пользователь №: 35 751



Собственно говоря у меня тот-же вопрос и в сопроводительной доке ответа на него нет.

http://www.ti.com/litv/zip/sprc624 - либа вместе с докой

Вечерком ковырну исходники и посмотрю. Ну или эксперимент организую.....


Ну или накрайняк сапорт озадачить попробую......

дока отдельно:
Прикрепленные файлы
Прикрепленный файл  C28x_FPU_Library_Beta1.pdf ( 112.01 килобайт ) Кол-во скачиваний: 733
 


--------------------
The truth is out there...
Go to the top of the page
 
+Quote Post

Сообщений в этой теме
- sigmaN   c28х FPU library beta1   Sep 16 2009, 19:33
- - AndrewN   Цитата(sigmaN @ Sep 16 2009, 22:33) a. По...   Sep 16 2009, 20:35
- - sigmaN   Ответ по пункту c. подразумевает редактирование ис...   Sep 16 2009, 20:53
|- - des00   Цитата(sigmaN @ Sep 16 2009, 14:53) Ответ...   Sep 17 2009, 03:16
- - sigmaN   Английский у всех у нас слаб Насчёт комплексного...   Sep 17 2009, 05:30
- - bahurin   Цитата(sigmaN @ Sep 16 2009, 23:33) Почем...   Sep 17 2009, 05:34
|- - bahurin   Цитата(sigmaN @ Sep 17 2009, 09:41) Собст...   Sep 17 2009, 10:46
- - sigmaN   Нашел пост на техасовском форуме КодThere are two...   Sep 17 2009, 13:03
- - sigmaN   Код этих техасовских парней у меня не заработал. У...   Sep 17 2009, 23:09
|- - bahurin   Цитата(sigmaN @ Sep 18 2009, 03:09) Код э...   Sep 18 2009, 04:11
|- - AndrewN   Цитата(bahurin @ Sep 18 2009, 08:11) Есть...   Sep 18 2009, 05:48
- - sigmaN   Ну я был где-то рядом, но толком всё это разложить...   Sep 18 2009, 05:13
- - sigmaN   Чё-то тут не сходится по-моему Согласно доке - фор...   Sep 19 2009, 04:06
|- - bahurin   Цитата(sigmaN @ Sep 19 2009, 08:06) Чё-то...   Sep 19 2009, 06:56
- - sigmaN   bahurin, БОЛЬШОЕ Вам человеческое спасибо за вразу...   Sep 21 2009, 01:53
|- - AndrewN   Цитата(sigmaN @ Sep 21 2009, 04:53) Вопро...   Sep 21 2009, 15:33
- - sigmaN   Даа, я естественно тоже пришел к выводу, что там в...   Sep 22 2009, 02:16
- - sigmaN   Воистину ассемблер и трпение - великая сила! ...   Sep 23 2009, 05:16


Reply to this topicStart new topic
1 чел. читают эту тему (гостей: 1, скрытых пользователей: 0)
Пользователей: 0

 


RSS Текстовая версия Сейчас: 5th July 2025 - 22:25
Рейтинг@Mail.ru


Страница сгенерированна за 0.01401 секунд с 7
ELECTRONIX ©2004-2016