OpenCores
URL https://opencores.org/ocsvn/dblclockfft/dblclockfft/trunk

Subversion Repositories dblclockfft

[/] [dblclockfft/] [trunk/] [sw/] [defaults.h] - Blame information for rev 37

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 36 dgisselq
////////////////////////////////////////////////////////////////////////////////
2
//
3
// Filename:    defaults.h
4
//
5
// Project:     A General Purpose Pipelined FFT Implementation
6
//
7 37 dgisselq
// Purpose:     This defaults file contains defaults used throughout the design.
8
//              These primarily consist of whether or not the project contains
9
//      formal properties, the default directory the core will be placed into,
10
//      as well as the default parameters of the various modules--parameters
11
//      which will be overridden in operation but are kept as is for bench-test
12
//      simulation.
13 36 dgisselq
//
14
// Creator:     Dan Gisselquist, Ph.D.
15
//              Gisselquist Technology, LLC
16
//
17
////////////////////////////////////////////////////////////////////////////////
18
//
19
// Copyright (C) 2015-2018, Gisselquist Technology, LLC
20
//
21
// This program is free software (firmware): you can redistribute it and/or
22
// modify it under the terms of  the GNU General Public License as published
23
// by the Free Software Foundation, either version 3 of the License, or (at
24
// your option) any later version.
25
//
26
// This program is distributed in the hope that it will be useful, but WITHOUT
27
// ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY or
28
// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
29
// for more details.
30
//
31
// You should have received a copy of the GNU General Public License along
32 37 dgisselq
// with this program.  (It's in the $(ROOT)/doc directory.  Run make with no
33 36 dgisselq
// target there if the PDF file isn't present.)  If not, see
34
// <http://www.gnu.org/licenses/> for a copy.
35
//
36
// License:     GPL, v3, as defined and found on www.gnu.org,
37
//              http://www.gnu.org/licenses/gpl.html
38
//
39
//
40
////////////////////////////////////////////////////////////////////////////////
41
//
42
//
43
#ifndef DEFAULTS_H
44
#define DEFAULTS_H
45
 
46
#define DEF_NBITSIN     16
47
#define DEF_COREDIR     "fft-core"
48
#define DEF_XTRACBITS   4
49
#define DEF_NMPY        0
50
#define DEF_XTRAPBITS   0
51
#define USE_OLD_MULTIPLY        false
52
 
53
// To coordinate testing, it helps to have some defines in our header file that
54
// are common with the default parameters found within the various subroutines.
55
// We'll define those common parameters here.  These values, however, have no
56
// effect on anything other than bench testing.  They do, though, allow us to
57
// bench test exact copies of what is going on within the FFT when necessary
58
// in order to find problems.
59
// First, parameters for the new multiply based upon the bi-multiply structure
60
// (2-bits/2-tableau rows at a time).
61
#define TST_LONGBIMPY_AW        8
62
#define TST_LONGBIMPY_BW        12      // Leave undefined to match AW
63
 
64
//  We also include parameters for the shift add multiply
65
#define TST_SHIFTADDMPY_AW      16
66
#define TST_SHIFTADDMPY_BW      20      // Leave undefined to match AW
67
 
68
// Now for parameters matching the butterfly
69
#define TST_BUTTERFLY_IWIDTH    16
70
#define TST_BUTTERFLY_CWIDTH    20
71
#define TST_BUTTERFLY_OWIDTH    (TST_BUTTERFLY_IWIDTH+1)
72
 
73
// Now for parameters matching the qtrstage
74
#define TST_QTRSTAGE_IWIDTH     16
75
#define TST_QTRSTAGE_LGWIDTH    8
76
 
77
// Parameters for the dblstage
78
#define TST_DBLSTAGE_IWIDTH     16
79
#define TST_DBLSTAGE_SHIFT      0
80
 
81
// Now for parameters matching the dblreverse stage
82
#define TST_DBLREVERSE_LGSIZE   5
83
 
84
static  const   bool    formal_property_flag = true;
85
 
86
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.