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

Subversion Repositories dblclockfft

[/] [dblclockfft/] [trunk/] [bench/] [cpp/] [Makefile] - Rev 14

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

all: mpy_tb dblrev_tb dblstage_tb qtrstage_tb fft_tb test

OBJDR:= ../../sw/fft-core/obj_dir
VSRCD:= ../../sw/fft-core
LCLDR:= obj_dir
VINC := -I/usr/share/verilator/include -I$(OBJDR)/ -I$(LCLDR)/
MPYLB:= $(OBJDR)/Vshiftaddmpy__ALL.a
DBLRV:= $(OBJDR)/Vdblreverse__ALL.a
DBLSG:= $(OBJDR)/Vdblstage__ALL.a
QTRSG:= $(OBJDR)/Vqtrstage__ALL.a
BFLYL:= $(OBJDR)/Vbutterfly__ALL.a
FFTLB:= $(OBJDR)/Vfftmain__ALL.a
IFTLB:= $(LCLDR)/Vifft_tb__ALL.a
STGLB:= $(OBJDR)/Vfftstage_o2048__ALL.a
VERILATOR_ROOT := /usr/share/verilator

mpy_tb: mpy_tb.cpp $(MPYLB)
        g++ -g $(VINC) $< $(MPYLB) $(VERILATOR_ROOT)/include/verilated.cpp -o $@

dblrev_tb: dblrev_tb.cpp $(DBLRV)
        g++ -g $(VINC) $< $(DBLRV) $(VERILATOR_ROOT)/include/verilated.cpp -o $@

dblstage_tb: dblstage_tb.cpp $(DBLSG)
        g++ -g $(VINC) $< $(DBLSG) $(VERILATOR_ROOT)/include/verilated.cpp -o $@

qtrstage_tb: qtrstage_tb.cpp $(QTRSG)
        g++ -g $(VINC) $< $(QTRSG) $(VERILATOR_ROOT)/include/verilated.cpp -o $@

butterfly_tb: butterfly_tb.cpp $(BFLYL)
        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 -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
test: mpy_tb dblrev_tb dblstage_tb qtrstage_tb butterfly_tb fftstage_o2048_tb
test: fft_tb ifft_tb
        ./mpy_tb
        ./dblrev_tb
        ./dblstage_tb
        ./qtrstage_tb
        ./butterfly_tb
        ./fftstage_o2048_tb
        ./fft_tb
        ./ifft_tb

.PHONY: clean
clean:
        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

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

powered by: WebSVN 2.1.0

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