Line 7... |
Line 7... |
$(CXX) $< -o $@
|
$(CXX) $< -o $@
|
|
|
%.o: %.cpp
|
%.o: %.cpp
|
$(CXX) -c $< -o $@
|
$(CXX) -c $< -o $@
|
|
|
.PHONY:
|
.PHONY: alltest
|
|
alltest: test itest shiftaddmpy butterfly dblreverse qtrstage dblstage
|
|
|
|
.PHONY: test
|
test: fftgen
|
test: fftgen
|
./fftgen -f 2048 -n 16
|
./fftgen -f 2048 -n 16
|
cd $(CORED)/; verilator -cc fftmain.v
|
cd $(CORED)/; verilator -cc fftmain.v
|
cd $(OBJDR); make -f Vfftmain.mk
|
cd $(OBJDR); make -f Vfftmain.mk
|
|
|
|
.PHONY: itest
|
|
itest: fftgen
|
./fftgen -f 2048 -1 -n 24 -m 24
|
./fftgen -f 2048 -1 -n 24 -m 24
|
cd $(CORED)/; verilator -cc ifftmain.v
|
cd $(CORED)/; verilator -cc ifftmain.v
|
cd $(OBJDR); make -f Vifftmain.mk
|
cd $(OBJDR); make -f Vifftmain.mk
|
|
|
|
.PHONY: shiftaddmpy
|
|
shiftaddmpy: $(OBJDR)/Vshiftaddmpy__ALL.a
|
|
|
$(CORED)/shiftaddmpy.v: test
|
$(CORED)/shiftaddmpy.v: test
|
$(OBJDR)/Vshiftaddmpy.cpp $(OBJDR)/Vshiftaddmpy.h: $(CORED)/shiftaddmpy.v
|
$(OBJDR)/Vshiftaddmpy.cpp $(OBJDR)/Vshiftaddmpy.h: $(CORED)/shiftaddmpy.v
|
cd $(CORED)/; verilator -cc shiftaddmpy.v
|
cd $(CORED)/; verilator -cc shiftaddmpy.v
|
$(OBJDR)/Vshiftaddmpy.a: $(OBJDR)/Vshiftaddmpy.h
|
$(OBJDR)/Vshiftaddmpy__ALL.a: $(OBJDR)/Vshiftaddmpy.h
|
$(OBJDR)/Vshiftaddmpy.a: $(OBJDR)/Vshiftaddmpy.cpp
|
$(OBJDR)/Vshiftaddmpy__ALL.a: $(OBJDR)/Vshiftaddmpy.cpp
|
cd $(OBJDR)/; make -f Vshiftaddmpy.mk
|
cd $(OBJDR)/; make -f Vshiftaddmpy.mk
|
|
|
|
.PHONY: butterfly
|
|
butterfly: $(OBJDR)/Vbutterfly__ALL.a
|
|
|
$(CORED)/butterfly.v: test
|
$(CORED)/butterfly.v: test
|
$(OBJDR)/Vbutterfly.cpp $(OBJDR)/Vbutterfly.h: $(CORED)/butterfly.v
|
$(OBJDR)/Vbutterfly.cpp $(OBJDR)/Vbutterfly.h: $(CORED)/butterfly.v
|
cd $(CORED)/; verilator -cc butterfly.v
|
cd $(CORED)/; verilator -cc butterfly.v
|
$(OBJDR)/Vbutterfly__ALL.a: $(OBJDR)/Vbutterfly.h
|
$(OBJDR)/Vbutterfly__ALL.a: $(OBJDR)/Vbutterfly.h
|
$(OBJDR)/Vbutterfly__ALL.a: $(OBJDR)/Vbutterfly.cpp
|
$(OBJDR)/Vbutterfly__ALL.a: $(OBJDR)/Vbutterfly.cpp
|
cd $(OBJDR)/; make -f Vbutterfly.mk
|
cd $(OBJDR)/; make -f Vbutterfly.mk
|
|
|
|
.PHONY: dblreverse
|
|
dblreverse: $(OBJDR)/Vdblreverse__ALL.a
|
|
|
$(CORED)/dblreverse.v: test
|
$(CORED)/dblreverse.v: test
|
$(OBJDR)/Vdblreverse.cpp $(OBJDR)/Vdblreverse.h: $(CORED)/dblreverse.v
|
$(OBJDR)/Vdblreverse.cpp $(OBJDR)/Vdblreverse.h: $(CORED)/dblreverse.v
|
cd $(CORED)/; verilator -cc dblreverse.v
|
cd $(CORED)/; verilator -cc dblreverse.v
|
$(OBJDR)/Vdblreverse__ALL.a: $(OBJDR)/Vdblreverse.h
|
$(OBJDR)/Vdblreverse__ALL.a: $(OBJDR)/Vdblreverse.h
|
$(OBJDR)/Vdblreverse__ALL.a: $(OBJDR)/Vdblreverse.cpp
|
$(OBJDR)/Vdblreverse__ALL.a: $(OBJDR)/Vdblreverse.cpp
|
cd $(OBJDR)/; make -f Vdblreverse.mk
|
cd $(OBJDR)/; make -f Vdblreverse.mk
|
|
|
|
.PHONY: qtrstage
|
|
qtrstage: $(OBJDR)/Vqtrstage__ALL.a
|
|
|
$(CORED)/qtrstage.v: test
|
$(CORED)/qtrstage.v: test
|
$(OBJDR)/Vqtrstage.cpp $(OBJDR)/Vqtrstage.h: $(CORED)/qtrstage.v
|
$(OBJDR)/Vqtrstage.cpp $(OBJDR)/Vqtrstage.h: $(CORED)/qtrstage.v
|
cd $(CORED)/; verilator -cc qtrstage.v
|
cd $(CORED)/; verilator -cc qtrstage.v
|
$(OBJDR)/Vqtrstage__ALL.a: $(OBJDR)/Vqtrstage.h
|
$(OBJDR)/Vqtrstage__ALL.a: $(OBJDR)/Vqtrstage.h
|
$(OBJDR)/Vqtrstage__ALL.a: $(OBJDR)/Vqtrstage.cpp
|
$(OBJDR)/Vqtrstage__ALL.a: $(OBJDR)/Vqtrstage.cpp
|
cd $(OBJDR)/; make -f Vqtrstage.mk
|
cd $(OBJDR)/; make -f Vqtrstage.mk
|
|
|
|
.PHONY: dblstage
|
|
dblstage: $(OBJDR)/Vdblstage__ALL.a
|
|
|
$(CORED)/dblstage.v: test
|
$(CORED)/dblstage.v: test
|
$(OBJDR)/Vdblstage.cpp $(OBJDR)/Vdblstage.h: $(CORED)/dblstage.v
|
$(OBJDR)/Vdblstage.cpp $(OBJDR)/Vdblstage.h: $(CORED)/dblstage.v
|
cd $(CORED)/; verilator -cc dblstage.v
|
cd $(CORED)/; verilator -cc dblstage.v
|
$(OBJDR)/Vdblstage__ALL.a: $(OBJDR)/Vdblstage.h
|
$(OBJDR)/Vdblstage__ALL.a: $(OBJDR)/Vdblstage.h
|
$(OBJDR)/Vdblstage__ALL.a: $(OBJDR)/Vdblstage.cpp
|
$(OBJDR)/Vdblstage__ALL.a: $(OBJDR)/Vdblstage.cpp
|