1 |
36 |
dgisselq |
////////////////////////////////////////////////////////////////////////////////
|
2 |
|
|
//
|
3 |
|
|
// Filename: fftlib.h
|
4 |
|
|
//
|
5 |
|
|
// Project: A General Purpose Pipelined FFT Implementation
|
6 |
|
|
//
|
7 |
|
|
// Purpose:
|
8 |
|
|
//
|
9 |
|
|
// Creator: Dan Gisselquist, Ph.D.
|
10 |
|
|
// Gisselquist Technology, LLC
|
11 |
|
|
//
|
12 |
|
|
////////////////////////////////////////////////////////////////////////////////
|
13 |
|
|
//
|
14 |
|
|
// Copyright (C) 2015-2018, Gisselquist Technology, LLC
|
15 |
|
|
//
|
16 |
|
|
// This program is free software (firmware): you can redistribute it and/or
|
17 |
|
|
// modify it under the terms of the GNU General Public License as published
|
18 |
|
|
// by the Free Software Foundation, either version 3 of the License, or (at
|
19 |
|
|
// your option) any later version.
|
20 |
|
|
//
|
21 |
|
|
// This program is distributed in the hope that it will be useful, but WITHOUT
|
22 |
|
|
// ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY or
|
23 |
|
|
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
24 |
|
|
// for more details.
|
25 |
|
|
//
|
26 |
|
|
// You should have received a copy of the GNU General Public License along
|
27 |
37 |
dgisselq |
// with this program. (It's in the $(ROOT)/doc directory. Run make with no
|
28 |
36 |
dgisselq |
// target there if the PDF file isn't present.) If not, see
|
29 |
|
|
// <http://www.gnu.org/licenses/> for a copy.
|
30 |
|
|
//
|
31 |
|
|
// License: GPL, v3, as defined and found on www.gnu.org,
|
32 |
|
|
// http://www.gnu.org/licenses/gpl.html
|
33 |
|
|
//
|
34 |
|
|
//
|
35 |
|
|
////////////////////////////////////////////////////////////////////////////////
|
36 |
|
|
//
|
37 |
|
|
//
|
38 |
|
|
#ifndef FFTLIB_H
|
39 |
|
|
#define FFTLIB_H
|
40 |
|
|
|
41 |
|
|
#define USE_OLD_MULTIPLY false
|
42 |
|
|
|
43 |
|
|
extern int lgval(int vl);
|
44 |
|
|
extern int nextlg(int vl);
|
45 |
|
|
extern int bflydelay(int nbits, int xtra);
|
46 |
|
|
extern int lgdelay(int nbits, int xtra);
|
47 |
|
|
extern void gen_coeffs(FILE *cmem, int stage, int cbits,
|
48 |
|
|
int nwide, int offset, bool inv);
|
49 |
|
|
extern std::string gen_coeff_fname(const char *coredir,
|
50 |
|
|
int stage, int nwide, int offset, bool inv);
|
51 |
|
|
extern FILE *gen_coeff_open(const char *fname);
|
52 |
|
|
extern void gen_coeff_file(const char *coredir, const char *fname,
|
53 |
|
|
int stage, int cbits, int nwide, int offset, bool inv);
|
54 |
|
|
|
55 |
|
|
#endif // FFTLIB_H
|