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

Subversion Repositories dblclockfft

[/] [dblclockfft/] [trunk/] [sw/] [Makefile] - Blame information for rev 28

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 16 dgisselq
############################################################################/
2
##
3
## Filename:    fftgen.v
4
##
5
## Project:     A Doubletime Pipelined FFT
6
##
7
## Purpose:     This is the main Makefile for the FFT core generator.
8
##              It is very simple in its construction, the most complicated
9
##              parts being the building of the Verilator simulation--a
10
##              step that may not be required for your project.
11
##
12
##              To build the FFT generator, just type 'make' on a line
13
##              by itself.  For a quick tutorial in how to run the
14
##              generator, just type './fftgen -h' to read the usage()
15
##              statement.
16
##
17
## Creator:     Dan Gisselquist, Ph.D.
18
##              Gisselquist Tecnology, LLC
19
##
20
##########################################################################/
21
##
22
## Copyright (C) 2015, Gisselquist Technology, LLC
23
##
24
## This program is free software (firmware): you can redistribute it and/or
25
## modify it under the terms of  the GNU General Public License as published
26
## by the Free Software Foundation, either version 3 of the License, or (at
27
## your option) any later version.
28
##
29
## This program is distributed in the hope that it will be useful, but WITHOUT
30
## ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY or
31
## FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
32
## for more details.
33
##
34
## You should have received a copy of the GNU General Public License along
35
## with this program.  (It's in the $(ROOT)/doc directory, run make with no
36
## target there if the PDF file isn't present.)  If not, see
37
##  for a copy.
38
##
39
## License:     GPL, v3, as defined and found on www.gnu.org,
40
##              http:##www.gnu.org/licenses/gpl.html
41
##
42
##
43
##########################################################################/
44
##
45
##
46 2 dgisselq
# This is really simple ...
47
all: fftgen
48
CORED := fft-core
49
OBJDR := $(CORED)/obj_dir
50 28 dgisselq
TESTSZ := 2048
51
BENCHD := ../bench/cpp
52 2 dgisselq
 
53
fftgen: fftgen.o
54
        $(CXX) $< -o $@
55
 
56
%.o: %.cpp
57
        $(CXX) -c $< -o $@
58
 
59 5 dgisselq
.PHONY: test
60 22 dgisselq
test: fft ifft shiftaddmpy butterfly dblreverse qtrstage dblstage fftstage_o2048 hwbfly
61 3 dgisselq
 
62 16 dgisselq
#
63
# Although these parameters, a 2048 point FFT of 16 bits input, aren't
64
# the only parameters the FFT can do, they are the ones that the test
65
# benches depend upon.  If you change these, and you are welcome to do so,
66
# you may need to adjust the test benches if you wish to prove that your
67
# changes work.
68
#
69 5 dgisselq
.PHONY: fft
70
fft: fftgen
71 28 dgisselq
        ./fftgen -f $(TESTSZ) -n 16 -p 6 -a $(BENCHD)/fftsize.h
72 2 dgisselq
        cd $(CORED)/; verilator -cc fftmain.v
73
        cd $(OBJDR); make -f Vfftmain.mk
74 3 dgisselq
 
75 5 dgisselq
.PHONY: ifft
76
ifft: fftgen
77 28 dgisselq
        ./fftgen -f $(TESTSZ) -i -n 22  -p 6 -a $(BENCHD)/ifftsize.h
78 2 dgisselq
        cd $(CORED)/; verilator -cc ifftmain.v
79
        cd $(OBJDR); make -f Vifftmain.mk
80
 
81 3 dgisselq
.PHONY: shiftaddmpy
82
shiftaddmpy: $(OBJDR)/Vshiftaddmpy__ALL.a
83
 
84 6 dgisselq
$(CORED)/shiftaddmpy.v: fft
85 2 dgisselq
$(OBJDR)/Vshiftaddmpy.cpp $(OBJDR)/Vshiftaddmpy.h: $(CORED)/shiftaddmpy.v
86
        cd $(CORED)/; verilator -cc shiftaddmpy.v
87 3 dgisselq
$(OBJDR)/Vshiftaddmpy__ALL.a: $(OBJDR)/Vshiftaddmpy.h
88
$(OBJDR)/Vshiftaddmpy__ALL.a: $(OBJDR)/Vshiftaddmpy.cpp
89 2 dgisselq
        cd $(OBJDR)/; make -f Vshiftaddmpy.mk
90
 
91 3 dgisselq
.PHONY: butterfly
92
butterfly: $(OBJDR)/Vbutterfly__ALL.a
93
 
94 5 dgisselq
$(CORED)/butterfly.v: fft
95 2 dgisselq
$(OBJDR)/Vbutterfly.cpp $(OBJDR)/Vbutterfly.h: $(CORED)/butterfly.v
96
        cd $(CORED)/; verilator -cc butterfly.v
97
$(OBJDR)/Vbutterfly__ALL.a: $(OBJDR)/Vbutterfly.h
98
$(OBJDR)/Vbutterfly__ALL.a: $(OBJDR)/Vbutterfly.cpp
99
        cd $(OBJDR)/; make -f Vbutterfly.mk
100
 
101 22 dgisselq
.PHONY: hwbfly
102
hwbfly: $(OBJDR)/Vhwbfly__ALL.a
103
 
104
$(CORED)/hwbfly.v: fft
105
$(OBJDR)/Vhwbfly.cpp $(OBJDR)/Vhwbfly.h: $(CORED)/hwbfly.v
106
        cd $(CORED)/; verilator -cc hwbfly.v
107
$(OBJDR)/Vhwbfly__ALL.a: $(OBJDR)/Vhwbfly.h
108
$(OBJDR)/Vhwbfly__ALL.a: $(OBJDR)/Vhwbfly.cpp
109
        cd $(OBJDR)/; make -f Vhwbfly.mk
110
 
111 3 dgisselq
.PHONY: dblreverse
112
dblreverse: $(OBJDR)/Vdblreverse__ALL.a
113
 
114 5 dgisselq
$(CORED)/dblreverse.v: fft
115 2 dgisselq
$(OBJDR)/Vdblreverse.cpp $(OBJDR)/Vdblreverse.h: $(CORED)/dblreverse.v
116
        cd $(CORED)/; verilator -cc dblreverse.v
117
$(OBJDR)/Vdblreverse__ALL.a: $(OBJDR)/Vdblreverse.h
118
$(OBJDR)/Vdblreverse__ALL.a: $(OBJDR)/Vdblreverse.cpp
119
        cd $(OBJDR)/; make -f Vdblreverse.mk
120
 
121 3 dgisselq
.PHONY: qtrstage
122
qtrstage: $(OBJDR)/Vqtrstage__ALL.a
123
 
124 5 dgisselq
$(CORED)/qtrstage.v: fft
125 2 dgisselq
$(OBJDR)/Vqtrstage.cpp $(OBJDR)/Vqtrstage.h: $(CORED)/qtrstage.v
126
        cd $(CORED)/; verilator -cc qtrstage.v
127
$(OBJDR)/Vqtrstage__ALL.a: $(OBJDR)/Vqtrstage.h
128
$(OBJDR)/Vqtrstage__ALL.a: $(OBJDR)/Vqtrstage.cpp
129
        cd $(OBJDR)/; make -f Vqtrstage.mk
130
 
131 3 dgisselq
.PHONY: dblstage
132
dblstage: $(OBJDR)/Vdblstage__ALL.a
133
 
134 5 dgisselq
$(CORED)/dblstage.v: fft
135 2 dgisselq
$(OBJDR)/Vdblstage.cpp $(OBJDR)/Vdblstage.h: $(CORED)/dblstage.v
136
        cd $(CORED)/; verilator -cc dblstage.v
137
$(OBJDR)/Vdblstage__ALL.a: $(OBJDR)/Vdblstage.h
138
$(OBJDR)/Vdblstage__ALL.a: $(OBJDR)/Vdblstage.cpp
139
        cd $(OBJDR)/; make -f Vdblstage.mk
140
 
141 6 dgisselq
.PHONY: fftstage_o2048
142
dblstage: $(OBJDR)/Vfftstage_o2048__ALL.a
143
 
144
$(CORED)/fftstage_o2048.v: fft
145
$(OBJDR)/Vfftstage_o2048.cpp $(OBJDR)/Vfftstage_o2048.h: $(CORED)/fftstage_o2048.v
146
        cd $(CORED)/; verilator -cc fftstage_o2048.v
147
$(OBJDR)/Vfftstage_o2048__ALL.a: $(OBJDR)/Vfftstage_o2048.h
148
$(OBJDR)/Vfftstage_o2048__ALL.a: $(OBJDR)/Vfftstage_o2048.cpp
149
        cd $(OBJDR)/; make -f Vfftstage_o2048.mk
150
 
151 5 dgisselq
.PHONY: clean
152 2 dgisselq
clean:
153
        rm fftgen fftgen.o
154
        rm -rf $(CORED)
155
 
156
 

powered by: WebSVN 2.1.0

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