enabled FFT. But somehow it makes random-looking result. My next step -- flush twiddles to the PC and check them

This commit is contained in:
2025-10-09 18:40:56 +03:00
parent eafa833ed6
commit 2f6f7d9793
14 changed files with 8294 additions and 8259 deletions

View File

@ -150,9 +150,17 @@ uint32_t dataprocessor(uint32_t* AVG_buff, uint32_t AVG_buff_I_max, uint64_t* FF
FFT_buff[FFT_buff_I++] = AVG_buff[i++];
}
}else if (mode == FFT){
uint32_t i = 0;
//uint32_t i = 0;
//void FFT_fp(int64_t* inp, uint32_t inp_L, int64_t* buf)
FFT_fp(AVG_buff, FFT_INP_DATA_L, FFT_buff);
/* }else if (mode == FLUSH_TWIDDLES){
uint32_t i = 0;
while ((FFT_buff_I < FFT_BUFF_SIZE) && (i < TWIDDLE_L)){
FFT_buff[FFT_buff_I++] = twiddle_re[i++];
}
*/
}
return FFT_buff_I;
@ -268,7 +276,8 @@ uint32_t usr_in_proc_data(uint32_t* data, uint32_t size) {
FFT_buff[i] = 0;
}
uint32_t FFT_res_size = dataprocessor(AVG_buff, Proc_state.AVG_buff_I_last, FFT_buff, TRANSPARENT);
uint32_t FFT_res_size = dataprocessor(AVG_buff, Proc_state.AVG_buff_I_last, FFT_buff, FFT);
// uint32_t FFT_res_size = dataprocessor(AVG_buff, Proc_state.AVG_buff_I_last, FFT_buff, TRANSPARENT);
@ -333,7 +342,7 @@ uint32_t usr_in_proc_data(uint32_t* data, uint32_t size) {
}
}
}else{
AVG_buff[Proc_state.AVG_buff_I] = 0xC1000000;
//AVG_buff[Proc_state.AVG_buff_I] = 0xC1000000;
Proc_state.AVG_buff_I_last = Proc_state.AVG_buff_I;
Proc_state.AVG_buff_I++;
if (Proc_state.AVG_buff_I >= AVG_BUFF_SIZE){