1 |
17 |
dgisselq |
all: ifft_tb
|
2 |
23 |
dgisselq |
############################################################################
|
3 |
|
|
##
|
4 |
|
|
## Filename: Makefile
|
5 |
|
|
##
|
6 |
|
|
## Project: A Doubletime Pipelined FFT
|
7 |
|
|
##
|
8 |
|
|
## Purpose: This programs the build process for part of the ifft_tb test
|
9 |
|
|
## bench associated with the double clocked FFT project.
|
10 |
|
|
##
|
11 |
|
|
## This is only part of the test bench program. This one is
|
12 |
|
|
## different from the others, in that the ifft_tb includes
|
13 |
|
|
## both verilator code in the test bench as well as the
|
14 |
|
|
## C++ code. The C++ code will depend upon the verilog
|
15 |
|
|
## code found in this directory and built here.
|
16 |
|
|
##
|
17 |
|
|
## Creator: Dan Gisselquist, Ph.D.
|
18 |
30 |
dgisselq |
## Gisselquist Technology, LLC
|
19 |
23 |
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 |
17 |
dgisselq |
|
45 |
|
|
OBJDR:= ../../sw/fft-core/obj_dir
|
46 |
|
|
VSRCD:= ../../sw/fft-core
|
47 |
|
|
LCLDR:= obj_dir
|
48 |
|
|
VINC := -I/usr/share/verilator/include -I$(OBJDR)/ -I$(LCLDR)/
|
49 |
|
|
IFTLB:= $(LCLDR)/Vifft_tb__ALL.a
|
50 |
|
|
VERILATOR_ROOT := /usr/share/verilator
|
51 |
|
|
|
52 |
|
|
.PHONY: ifft_tb
|
53 |
|
|
ifft_tb: $(IFTLB)
|
54 |
|
|
|
55 |
|
|
$(IFTLB): $(LCLDR)/Vifft_tb.cpp
|
56 |
|
|
cd $(LCLDR); make -f Vifft_tb.mk
|
57 |
|
|
$(LCLDR)/Vifft_tb.cpp: ifft_tb.v $(VSRCD)/fftmain.v $(VSRCD)/ifftmain.v
|
58 |
|
|
verilator -y $(VSRCD) -cc ifft_tb.v
|
59 |
|
|
|
60 |
|
|
.PHONY: clean
|
61 |
|
|
clean:
|
62 |
|
|
rm -rf $(LCLDR)
|
63 |
|
|
|
64 |
|
|
-include $(VERILATOR_ROOT)/include/verilated.mk
|