Line 1... |
Line 1... |
all: mpy_tb dblrev_tb dblstage_tb qtrstage_tb fft_tb test
|
all: mpy_tb dblrev_tb dblstage_tb qtrstage_tb fft_tb test
|
|
|
OBJDR:= ../../sw/fft-core/obj_dir
|
OBJDR:= ../../sw/fft-core/obj_dir
|
VINC := -I/usr/share/verilator/include -I$(OBJDR)/
|
VSRCD:= ../../sw/fft-core
|
|
LCLDR:= obj_dir
|
|
VINC := -I/usr/share/verilator/include -I$(OBJDR)/ -I$(LCLDR)/
|
MPYLB:= $(OBJDR)/Vshiftaddmpy__ALL.a
|
MPYLB:= $(OBJDR)/Vshiftaddmpy__ALL.a
|
DBLRV:= $(OBJDR)/Vdblreverse__ALL.a
|
DBLRV:= $(OBJDR)/Vdblreverse__ALL.a
|
DBLSG:= $(OBJDR)/Vdblstage__ALL.a
|
DBLSG:= $(OBJDR)/Vdblstage__ALL.a
|
QTRSG:= $(OBJDR)/Vqtrstage__ALL.a
|
QTRSG:= $(OBJDR)/Vqtrstage__ALL.a
|
BFLYL:= $(OBJDR)/Vbutterfly__ALL.a
|
BFLYL:= $(OBJDR)/Vbutterfly__ALL.a
|
FFTLB:= $(OBJDR)/Vfftmain__ALL.a
|
FFTLB:= $(OBJDR)/Vfftmain__ALL.a
|
|
IFTLB:= $(LCLDR)/Vifft_tb__ALL.a
|
STGLB:= $(OBJDR)/Vfftstage_o2048__ALL.a
|
STGLB:= $(OBJDR)/Vfftstage_o2048__ALL.a
|
VERILATOR_ROOT := /usr/share/verilator
|
VERILATOR_ROOT := /usr/share/verilator
|
|
|
mpy_tb: mpy_tb.cpp $(MPYLB)
|
mpy_tb: mpy_tb.cpp $(MPYLB)
|
g++ -g $(VINC) $< $(MPYLB) $(VERILATOR_ROOT)/include/verilated.cpp -o $@
|
g++ -g $(VINC) $< $(MPYLB) $(VERILATOR_ROOT)/include/verilated.cpp -o $@
|
Line 30... |
Line 33... |
g++ -g $(VINC) $< $(STGLB) $(VERILATOR_ROOT)/include/verilated.cpp -o $@
|
g++ -g $(VINC) $< $(STGLB) $(VERILATOR_ROOT)/include/verilated.cpp -o $@
|
|
|
fft_tb: fft_tb.cpp $(FFTLB)
|
fft_tb: fft_tb.cpp $(FFTLB)
|
g++ -g $(VINC) $< $(FFTLB) $(VERILATOR_ROOT)/include/verilated.cpp -lfftw3 -o $@
|
g++ -g $(VINC) $< $(FFTLB) $(VERILATOR_ROOT)/include/verilated.cpp -lfftw3 -o $@
|
|
|
|
ifft_tb: ifft_tb.cpp $(IFTLB)
|
|
g++ -g $(VINC) $< $(IFTLB) $(VERILATOR_ROOT)/include/verilated.cpp -lfftw3 -o $@
|
|
$(IFTLB): $(LCLDR)/Vifft_tb.cpp
|
|
cd $(LCLDR); make -f Vifft_tb.mk
|
|
$(LCLDR)/Vifft_tb.cpp: ifft_tb.v $(VSRCD)/fftmain.v $(VSRCD)/ifftmain.v
|
|
verilator -y $(VSRCD) -cc ifft_tb.v
|
|
|
.PHONY: test
|
.PHONY: test
|
test: mpy_tb dblrev_tb dblstage_tb qtrstage_tb butterfly_tb fftstage_o2048_tb
|
test: mpy_tb dblrev_tb dblstage_tb qtrstage_tb butterfly_tb fftstage_o2048_tb
|
test: fft_tb
|
test: fft_tb ifft_tb
|
./mpy_tb
|
./mpy_tb
|
./dblrev_tb
|
./dblrev_tb
|
./dblstage_tb
|
./dblstage_tb
|
./qtrstage_tb
|
./qtrstage_tb
|
./butterfly_tb
|
./butterfly_tb
|
./fftstage_o2048_tb
|
./fftstage_o2048_tb
|
./fft_tb
|
./fft_tb
|
|
./ifft_tb
|
|
|
.PHONY: clean
|
.PHONY: clean
|
clean:
|
clean:
|
rm mpy_tb dblrev_tb dblstage_tb qtrstage_tb
|
rm mpy_tb dblrev_tb dblstage_tb qtrstage_tb butterfly_tb
|
|
rm fftstage_o2048_tb fft_tb ifft_tb
|
|
rm -rf $(LCLDR) fft_tb.dbl ifft_tb.dbl
|
|
|
include $(VERILATOR_ROOT)/include/verilated.mk
|
include $(VERILATOR_ROOT)/include/verilated.mk
|