2016-06-26 15:22:25 +02:00
|
|
|
/** Moving window / Recursive DFT implementation based on HLS
|
|
|
|
*
|
|
|
|
* @file
|
|
|
|
* @author Steffen Vogel <stvogel@eonerc.rwth-aachen.de>
|
2017-03-03 20:20:13 -04:00
|
|
|
* @copyright 2017, Steffen Vogel
|
|
|
|
**********************************************************************************/
|
|
|
|
|
2017-03-12 17:13:37 -03:00
|
|
|
/** @addtogroup fpga VILLASfpga
|
|
|
|
* @{
|
|
|
|
*/
|
2017-02-18 10:43:58 -05:00
|
|
|
|
|
|
|
#pragma once
|
2016-06-26 15:22:25 +02:00
|
|
|
|
|
|
|
#include <xilinx/xhls_dft.h>
|
|
|
|
|
|
|
|
/* Forward declaration */
|
|
|
|
struct ip;
|
|
|
|
|
|
|
|
struct dft {
|
|
|
|
XHls_dft inst;
|
2017-05-05 19:24:16 +00:00
|
|
|
|
2016-06-26 15:22:25 +02:00
|
|
|
int period; /* in samples */
|
|
|
|
int num_harmonics;
|
|
|
|
float *fharmonics;
|
|
|
|
int decimation;
|
|
|
|
};
|
|
|
|
|
2017-02-18 10:43:58 -05:00
|
|
|
int dft_parse(struct fpga_ip *c);
|
2016-06-26 15:22:25 +02:00
|
|
|
|
2017-03-29 04:25:30 +02:00
|
|
|
int dft_start(struct fpga_ip *c);
|
|
|
|
|
|
|
|
int dft_stop(struct fpga_ip *c);
|
2016-06-26 15:22:25 +02:00
|
|
|
|
2017-02-18 10:43:58 -05:00
|
|
|
int dft_destroy(struct fpga_ip *c);
|
2016-06-26 15:22:25 +02:00
|
|
|
|
2017-02-18 10:43:58 -05:00
|
|
|
/** @} */
|