Line 1... |
Line 1... |
all: mpy_tb dblrev_tb dblstage_tb qtrstage_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)/
|
VINC := -I/usr/share/verilator/include -I$(OBJDR)/
|
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
|
|
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 22... |
Line 24... |
g++ -g $(VINC) $< $(QTRSG) $(VERILATOR_ROOT)/include/verilated.cpp -o $@
|
g++ -g $(VINC) $< $(QTRSG) $(VERILATOR_ROOT)/include/verilated.cpp -o $@
|
|
|
butterfly_tb: butterfly_tb.cpp $(BFLYL)
|
butterfly_tb: butterfly_tb.cpp $(BFLYL)
|
g++ -g $(VINC) $< $(BFLYL) $(VERILATOR_ROOT)/include/verilated.cpp -o $@
|
g++ -g $(VINC) $< $(BFLYL) $(VERILATOR_ROOT)/include/verilated.cpp -o $@
|
|
|
|
fftstage_o2048_tb: fftstage_o2048_tb.cpp $(STGLB)
|
|
g++ -g $(VINC) $< $(STGLB) $(VERILATOR_ROOT)/include/verilated.cpp -o $@
|
|
|
|
fft_tb: fft_tb.cpp $(FFTLB)
|
|
g++ -g $(VINC) $< $(FFTLB) $(VERILATOR_ROOT)/include/verilated.cpp -o $@
|
|
|
.PHONY: test
|
.PHONY: test
|
test: mpy_tb dblrev_tb dblstage_tb qtrstage_tb butterfly_tb
|
test: mpy_tb dblrev_tb dblstage_tb qtrstage_tb butterfly_tb fftstage_o2048_tb
|
|
test: fft_tb
|
./mpy_tb
|
./mpy_tb
|
./dblrev_tb
|
./dblrev_tb
|
./dblstage_tb
|
./dblstage_tb
|
./qtrstage_tb
|
./qtrstage_tb
|
./butterfly_tb
|
./butterfly_tb
|
|
./fftstage_o2048_tb
|
|
./fft_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
|
|
|