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

Subversion Repositories dblclockfft

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

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

Line No. Rev Author Line
1 2 dgisselq
# This is really simple ...
2
all: fftgen
3
CORED := fft-core
4
OBJDR := $(CORED)/obj_dir
5
 
6
fftgen: fftgen.o
7
        $(CXX) $< -o $@
8
 
9
%.o: %.cpp
10
        $(CXX) -c $< -o $@
11
 
12 5 dgisselq
.PHONY: test
13 6 dgisselq
test: fft ifft shiftaddmpy butterfly dblreverse qtrstage dblstage fftstage_o2048
14 3 dgisselq
 
15 5 dgisselq
.PHONY: fft
16
fft: fftgen
17 6 dgisselq
        ./fftgen -f 2048 -n 16 -s
18 2 dgisselq
        cd $(CORED)/; verilator -cc fftmain.v
19
        cd $(OBJDR); make -f Vfftmain.mk
20 3 dgisselq
 
21 5 dgisselq
.PHONY: ifft
22
ifft: fftgen
23 2 dgisselq
        ./fftgen -f 2048 -1 -n 24 -m 24
24
        cd $(CORED)/; verilator -cc ifftmain.v
25
        cd $(OBJDR); make -f Vifftmain.mk
26
 
27 3 dgisselq
.PHONY: shiftaddmpy
28
shiftaddmpy: $(OBJDR)/Vshiftaddmpy__ALL.a
29
 
30 6 dgisselq
$(CORED)/shiftaddmpy.v: fft
31 2 dgisselq
$(OBJDR)/Vshiftaddmpy.cpp $(OBJDR)/Vshiftaddmpy.h: $(CORED)/shiftaddmpy.v
32
        cd $(CORED)/; verilator -cc shiftaddmpy.v
33 3 dgisselq
$(OBJDR)/Vshiftaddmpy__ALL.a: $(OBJDR)/Vshiftaddmpy.h
34
$(OBJDR)/Vshiftaddmpy__ALL.a: $(OBJDR)/Vshiftaddmpy.cpp
35 2 dgisselq
        cd $(OBJDR)/; make -f Vshiftaddmpy.mk
36
 
37 3 dgisselq
.PHONY: butterfly
38
butterfly: $(OBJDR)/Vbutterfly__ALL.a
39
 
40 5 dgisselq
$(CORED)/butterfly.v: fft
41 2 dgisselq
$(OBJDR)/Vbutterfly.cpp $(OBJDR)/Vbutterfly.h: $(CORED)/butterfly.v
42
        cd $(CORED)/; verilator -cc butterfly.v
43
$(OBJDR)/Vbutterfly__ALL.a: $(OBJDR)/Vbutterfly.h
44
$(OBJDR)/Vbutterfly__ALL.a: $(OBJDR)/Vbutterfly.cpp
45
        cd $(OBJDR)/; make -f Vbutterfly.mk
46
 
47 3 dgisselq
.PHONY: dblreverse
48
dblreverse: $(OBJDR)/Vdblreverse__ALL.a
49
 
50 5 dgisselq
$(CORED)/dblreverse.v: fft
51 2 dgisselq
$(OBJDR)/Vdblreverse.cpp $(OBJDR)/Vdblreverse.h: $(CORED)/dblreverse.v
52
        cd $(CORED)/; verilator -cc dblreverse.v
53
$(OBJDR)/Vdblreverse__ALL.a: $(OBJDR)/Vdblreverse.h
54
$(OBJDR)/Vdblreverse__ALL.a: $(OBJDR)/Vdblreverse.cpp
55
        cd $(OBJDR)/; make -f Vdblreverse.mk
56
 
57 3 dgisselq
.PHONY: qtrstage
58
qtrstage: $(OBJDR)/Vqtrstage__ALL.a
59
 
60 5 dgisselq
$(CORED)/qtrstage.v: fft
61 2 dgisselq
$(OBJDR)/Vqtrstage.cpp $(OBJDR)/Vqtrstage.h: $(CORED)/qtrstage.v
62
        cd $(CORED)/; verilator -cc qtrstage.v
63
$(OBJDR)/Vqtrstage__ALL.a: $(OBJDR)/Vqtrstage.h
64
$(OBJDR)/Vqtrstage__ALL.a: $(OBJDR)/Vqtrstage.cpp
65
        cd $(OBJDR)/; make -f Vqtrstage.mk
66
 
67 3 dgisselq
.PHONY: dblstage
68
dblstage: $(OBJDR)/Vdblstage__ALL.a
69
 
70 5 dgisselq
$(CORED)/dblstage.v: fft
71 2 dgisselq
$(OBJDR)/Vdblstage.cpp $(OBJDR)/Vdblstage.h: $(CORED)/dblstage.v
72
        cd $(CORED)/; verilator -cc dblstage.v
73
$(OBJDR)/Vdblstage__ALL.a: $(OBJDR)/Vdblstage.h
74
$(OBJDR)/Vdblstage__ALL.a: $(OBJDR)/Vdblstage.cpp
75
        cd $(OBJDR)/; make -f Vdblstage.mk
76
 
77 6 dgisselq
.PHONY: fftstage_o2048
78
dblstage: $(OBJDR)/Vfftstage_o2048__ALL.a
79
 
80
$(CORED)/fftstage_o2048.v: fft
81
$(OBJDR)/Vfftstage_o2048.cpp $(OBJDR)/Vfftstage_o2048.h: $(CORED)/fftstage_o2048.v
82
        cd $(CORED)/; verilator -cc fftstage_o2048.v
83
$(OBJDR)/Vfftstage_o2048__ALL.a: $(OBJDR)/Vfftstage_o2048.h
84
$(OBJDR)/Vfftstage_o2048__ALL.a: $(OBJDR)/Vfftstage_o2048.cpp
85
        cd $(OBJDR)/; make -f Vfftstage_o2048.mk
86
 
87 5 dgisselq
.PHONY: clean
88 2 dgisselq
clean:
89
        rm fftgen fftgen.o
90
        rm -rf $(CORED)
91
 
92
 

powered by: WebSVN 2.1.0

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