| Line 55... |
Line 55... |
|
|
%.o: %.cpp
|
%.o: %.cpp
|
$(CXX) -c $< -o $@
|
$(CXX) -c $< -o $@
|
|
|
.PHONY: test
|
.PHONY: test
|
test: fft ifft shiftaddmpy butterfly dblreverse qtrstage dblstage fftstage_o2048 hwbfly
|
test: fft ifft butterfly dblreverse qtrstage dblstage fftstage_o2048
|
|
test: hwbfly shiftaddmpy longbimpy
|
|
|
#
|
#
|
# Although these parameters, a 2048 point FFT of 16 bits input, aren't
|
# Although these parameters, a 2048 point FFT of 16 bits input, aren't
|
# the only parameters the FFT can do, they are the ones that the test
|
# the only parameters the FFT can do, they are the ones that the test
|
# benches depend upon. If you change these, and you are welcome to do so,
|
# benches depend upon. If you change these, and you are welcome to do so,
|
| Line 86... |
Line 87... |
cd $(CORED)/; verilator -cc shiftaddmpy.v
|
cd $(CORED)/; verilator -cc shiftaddmpy.v
|
$(OBJDR)/Vshiftaddmpy__ALL.a: $(OBJDR)/Vshiftaddmpy.h
|
$(OBJDR)/Vshiftaddmpy__ALL.a: $(OBJDR)/Vshiftaddmpy.h
|
$(OBJDR)/Vshiftaddmpy__ALL.a: $(OBJDR)/Vshiftaddmpy.cpp
|
$(OBJDR)/Vshiftaddmpy__ALL.a: $(OBJDR)/Vshiftaddmpy.cpp
|
cd $(OBJDR)/; make -f Vshiftaddmpy.mk
|
cd $(OBJDR)/; make -f Vshiftaddmpy.mk
|
|
|
|
.PHONY: longbimpy
|
|
longbimpy: $(OBJDR)/Vlongbimpy__ALL.a
|
|
|
|
$(CORED)/longbimpy.v: fft
|
|
$(OBJDR)/Vlongbimpy.cpp $(OBJDR)/Vlongbimpy.h: $(CORED)/longbimpy.v
|
|
cd $(CORED)/; verilator -cc longbimpy.v
|
|
$(OBJDR)/Vlongbimpy__ALL.a: $(OBJDR)/Vlongbimpy.h
|
|
$(OBJDR)/Vlongbimpy__ALL.a: $(OBJDR)/Vlongbimpy.cpp
|
|
cd $(OBJDR)/; make -f Vlongbimpy.mk
|
|
|
.PHONY: butterfly
|
.PHONY: butterfly
|
butterfly: $(OBJDR)/Vbutterfly__ALL.a
|
butterfly: $(OBJDR)/Vbutterfly__ALL.a
|
|
|
$(CORED)/butterfly.v: fft
|
$(CORED)/butterfly.v: fft
|
$(OBJDR)/Vbutterfly.cpp $(OBJDR)/Vbutterfly.h: $(CORED)/butterfly.v
|
$(OBJDR)/Vbutterfly.cpp $(OBJDR)/Vbutterfly.h: $(CORED)/butterfly.v
|