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

Subversion Repositories dblclockfft

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

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

Line No. Rev Author Line
1 16 dgisselq
############################################################################/
2
##
3 30 dgisselq
## Filename:    Makefile
4 16 dgisselq
##
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 30 dgisselq
##              Gisselquist Technology, LLC
19 16 dgisselq
##
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 29 dgisselq
test: fft ifft butterfly dblreverse qtrstage dblstage fftstage_o2048
61
test: hwbfly shiftaddmpy longbimpy
62 3 dgisselq
 
63 16 dgisselq
#
64
# Although these parameters, a 2048 point FFT of 16 bits input, aren't
65
# the only parameters the FFT can do, they are the ones that the test
66
# benches depend upon.  If you change these, and you are welcome to do so,
67
# you may need to adjust the test benches if you wish to prove that your
68
# changes work.
69
#
70 5 dgisselq
.PHONY: fft
71
fft: fftgen
72 28 dgisselq
        ./fftgen -f $(TESTSZ) -n 16 -p 6 -a $(BENCHD)/fftsize.h
73 2 dgisselq
        cd $(CORED)/; verilator -cc fftmain.v
74
        cd $(OBJDR); make -f Vfftmain.mk
75 3 dgisselq
 
76 5 dgisselq
.PHONY: ifft
77
ifft: fftgen
78 28 dgisselq
        ./fftgen -f $(TESTSZ) -i -n 22  -p 6 -a $(BENCHD)/ifftsize.h
79 2 dgisselq
        cd $(CORED)/; verilator -cc ifftmain.v
80
        cd $(OBJDR); make -f Vifftmain.mk
81
 
82 3 dgisselq
.PHONY: shiftaddmpy
83
shiftaddmpy: $(OBJDR)/Vshiftaddmpy__ALL.a
84
 
85 6 dgisselq
$(CORED)/shiftaddmpy.v: fft
86 2 dgisselq
$(OBJDR)/Vshiftaddmpy.cpp $(OBJDR)/Vshiftaddmpy.h: $(CORED)/shiftaddmpy.v
87
        cd $(CORED)/; verilator -cc shiftaddmpy.v
88 3 dgisselq
$(OBJDR)/Vshiftaddmpy__ALL.a: $(OBJDR)/Vshiftaddmpy.h
89
$(OBJDR)/Vshiftaddmpy__ALL.a: $(OBJDR)/Vshiftaddmpy.cpp
90 2 dgisselq
        cd $(OBJDR)/; make -f Vshiftaddmpy.mk
91
 
92 29 dgisselq
.PHONY: longbimpy
93
longbimpy: $(OBJDR)/Vlongbimpy__ALL.a
94
 
95
$(CORED)/longbimpy.v: fft
96
$(OBJDR)/Vlongbimpy.cpp $(OBJDR)/Vlongbimpy.h: $(CORED)/longbimpy.v
97
        cd $(CORED)/; verilator -cc longbimpy.v
98
$(OBJDR)/Vlongbimpy__ALL.a: $(OBJDR)/Vlongbimpy.h
99
$(OBJDR)/Vlongbimpy__ALL.a: $(OBJDR)/Vlongbimpy.cpp
100
        cd $(OBJDR)/; make -f Vlongbimpy.mk
101
 
102 3 dgisselq
.PHONY: butterfly
103
butterfly: $(OBJDR)/Vbutterfly__ALL.a
104
 
105 5 dgisselq
$(CORED)/butterfly.v: fft
106 2 dgisselq
$(OBJDR)/Vbutterfly.cpp $(OBJDR)/Vbutterfly.h: $(CORED)/butterfly.v
107
        cd $(CORED)/; verilator -cc butterfly.v
108
$(OBJDR)/Vbutterfly__ALL.a: $(OBJDR)/Vbutterfly.h
109
$(OBJDR)/Vbutterfly__ALL.a: $(OBJDR)/Vbutterfly.cpp
110
        cd $(OBJDR)/; make -f Vbutterfly.mk
111
 
112 22 dgisselq
.PHONY: hwbfly
113
hwbfly: $(OBJDR)/Vhwbfly__ALL.a
114
 
115
$(CORED)/hwbfly.v: fft
116
$(OBJDR)/Vhwbfly.cpp $(OBJDR)/Vhwbfly.h: $(CORED)/hwbfly.v
117
        cd $(CORED)/; verilator -cc hwbfly.v
118
$(OBJDR)/Vhwbfly__ALL.a: $(OBJDR)/Vhwbfly.h
119
$(OBJDR)/Vhwbfly__ALL.a: $(OBJDR)/Vhwbfly.cpp
120
        cd $(OBJDR)/; make -f Vhwbfly.mk
121
 
122 3 dgisselq
.PHONY: dblreverse
123
dblreverse: $(OBJDR)/Vdblreverse__ALL.a
124
 
125 5 dgisselq
$(CORED)/dblreverse.v: fft
126 2 dgisselq
$(OBJDR)/Vdblreverse.cpp $(OBJDR)/Vdblreverse.h: $(CORED)/dblreverse.v
127
        cd $(CORED)/; verilator -cc dblreverse.v
128
$(OBJDR)/Vdblreverse__ALL.a: $(OBJDR)/Vdblreverse.h
129
$(OBJDR)/Vdblreverse__ALL.a: $(OBJDR)/Vdblreverse.cpp
130
        cd $(OBJDR)/; make -f Vdblreverse.mk
131
 
132 3 dgisselq
.PHONY: qtrstage
133
qtrstage: $(OBJDR)/Vqtrstage__ALL.a
134
 
135 5 dgisselq
$(CORED)/qtrstage.v: fft
136 2 dgisselq
$(OBJDR)/Vqtrstage.cpp $(OBJDR)/Vqtrstage.h: $(CORED)/qtrstage.v
137
        cd $(CORED)/; verilator -cc qtrstage.v
138
$(OBJDR)/Vqtrstage__ALL.a: $(OBJDR)/Vqtrstage.h
139
$(OBJDR)/Vqtrstage__ALL.a: $(OBJDR)/Vqtrstage.cpp
140
        cd $(OBJDR)/; make -f Vqtrstage.mk
141
 
142 3 dgisselq
.PHONY: dblstage
143
dblstage: $(OBJDR)/Vdblstage__ALL.a
144
 
145 5 dgisselq
$(CORED)/dblstage.v: fft
146 2 dgisselq
$(OBJDR)/Vdblstage.cpp $(OBJDR)/Vdblstage.h: $(CORED)/dblstage.v
147
        cd $(CORED)/; verilator -cc dblstage.v
148
$(OBJDR)/Vdblstage__ALL.a: $(OBJDR)/Vdblstage.h
149
$(OBJDR)/Vdblstage__ALL.a: $(OBJDR)/Vdblstage.cpp
150
        cd $(OBJDR)/; make -f Vdblstage.mk
151
 
152 6 dgisselq
.PHONY: fftstage_o2048
153
dblstage: $(OBJDR)/Vfftstage_o2048__ALL.a
154
 
155
$(CORED)/fftstage_o2048.v: fft
156
$(OBJDR)/Vfftstage_o2048.cpp $(OBJDR)/Vfftstage_o2048.h: $(CORED)/fftstage_o2048.v
157
        cd $(CORED)/; verilator -cc fftstage_o2048.v
158
$(OBJDR)/Vfftstage_o2048__ALL.a: $(OBJDR)/Vfftstage_o2048.h
159
$(OBJDR)/Vfftstage_o2048__ALL.a: $(OBJDR)/Vfftstage_o2048.cpp
160
        cd $(OBJDR)/; make -f Vfftstage_o2048.mk
161
 
162 5 dgisselq
.PHONY: clean
163 2 dgisselq
clean:
164
        rm fftgen fftgen.o
165
        rm -rf $(CORED)
166
 
167
 

powered by: WebSVN 2.1.0

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