Line 47... |
Line 47... |
all: fftgen
|
all: fftgen
|
CORED := fft-core
|
CORED := fft-core
|
OBJDR := $(CORED)/obj_dir
|
OBJDR := $(CORED)/obj_dir
|
TESTSZ := 2048
|
TESTSZ := 2048
|
BENCHD := ../bench/cpp
|
BENCHD := ../bench/cpp
|
|
ifneq ($(VERILATOR_ROOT),)
|
|
VERILATOR:=$(VERILATOR_ROOT)/bin/verilator
|
|
else
|
|
VERILATOR:=verilator
|
|
VERILATOR_ROOT ?= $(shell bash -c 'verilator -V|grep VERILATOR_ROOT | head -1 | sed -e " s/^.*=\s*//"')
|
|
endif
|
|
export $(VERILATOR)
|
|
VROOT := $(VERILATOR_ROOT)
|
|
VFLAGS := -Wall -MMD --trace -cc
|
|
|
fftgen: fftgen.o
|
fftgen: fftgen.o
|
$(CXX) $< -o $@
|
$(CXX) $< -o $@
|
|
|
%.o: %.cpp
|
%.o: %.cpp
|
Line 68... |
Line 77... |
# changes work.
|
# changes work.
|
#
|
#
|
.PHONY: fft
|
.PHONY: fft
|
fft: fftgen
|
fft: fftgen
|
./fftgen -f $(TESTSZ) -n 16 -p 6 -a $(BENCHD)/fftsize.h
|
./fftgen -f $(TESTSZ) -n 16 -p 6 -a $(BENCHD)/fftsize.h
|
cd $(CORED)/; verilator -cc fftmain.v
|
cd $(CORED)/; $(VERILATOR) $(VFLAGS) fftmain.v
|
cd $(OBJDR); make -f Vfftmain.mk
|
cd $(OBJDR); make -f Vfftmain.mk
|
|
|
.PHONY: ifft
|
.PHONY: ifft
|
ifft: fftgen
|
ifft: fftgen
|
./fftgen -f $(TESTSZ) -i -n 22 -p 6 -a $(BENCHD)/ifftsize.h
|
./fftgen -f $(TESTSZ) -i -n 22 -p 6 -a $(BENCHD)/ifftsize.h
|
cd $(CORED)/; verilator -cc ifftmain.v
|
cd $(CORED)/; $(VERILATOR) $(VFLAGS) ifftmain.v
|
cd $(OBJDR); make -f Vifftmain.mk
|
cd $(OBJDR); make -f Vifftmain.mk
|
|
|
.PHONY: shiftaddmpy
|
.PHONY: shiftaddmpy
|
shiftaddmpy: $(OBJDR)/Vshiftaddmpy__ALL.a
|
shiftaddmpy: $(OBJDR)/Vshiftaddmpy__ALL.a
|
|
|
$(CORED)/shiftaddmpy.v: fft
|
$(CORED)/shiftaddmpy.v: fft
|
$(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) $(VFLAGS) 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
|
.PHONY: longbimpy
|
longbimpy: $(OBJDR)/Vlongbimpy__ALL.a
|
longbimpy: $(OBJDR)/Vlongbimpy__ALL.a
|
|
|
$(CORED)/longbimpy.v: fft
|
$(CORED)/longbimpy.v: fft
|
$(OBJDR)/Vlongbimpy.cpp $(OBJDR)/Vlongbimpy.h: $(CORED)/longbimpy.v
|
$(OBJDR)/Vlongbimpy.cpp $(OBJDR)/Vlongbimpy.h: $(CORED)/longbimpy.v
|
cd $(CORED)/; verilator -cc longbimpy.v
|
cd $(CORED)/; $(VERILATOR) $(VFLAGS) longbimpy.v
|
$(OBJDR)/Vlongbimpy__ALL.a: $(OBJDR)/Vlongbimpy.h
|
$(OBJDR)/Vlongbimpy__ALL.a: $(OBJDR)/Vlongbimpy.h
|
$(OBJDR)/Vlongbimpy__ALL.a: $(OBJDR)/Vlongbimpy.cpp
|
$(OBJDR)/Vlongbimpy__ALL.a: $(OBJDR)/Vlongbimpy.cpp
|
cd $(OBJDR)/; make -f Vlongbimpy.mk
|
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
|
cd $(CORED)/; verilator -cc butterfly.v
|
cd $(CORED)/; $(VERILATOR) $(VFLAGS) 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: hwbfly
|
.PHONY: hwbfly
|
hwbfly: $(OBJDR)/Vhwbfly__ALL.a
|
hwbfly: $(OBJDR)/Vhwbfly__ALL.a
|
|
|
$(CORED)/hwbfly.v: fft
|
$(CORED)/hwbfly.v: fft
|
$(OBJDR)/Vhwbfly.cpp $(OBJDR)/Vhwbfly.h: $(CORED)/hwbfly.v
|
$(OBJDR)/Vhwbfly.cpp $(OBJDR)/Vhwbfly.h: $(CORED)/hwbfly.v
|
cd $(CORED)/; verilator -cc hwbfly.v
|
cd $(CORED)/; $(VERILATOR) $(VFLAGS) hwbfly.v
|
$(OBJDR)/Vhwbfly__ALL.a: $(OBJDR)/Vhwbfly.h
|
$(OBJDR)/Vhwbfly__ALL.a: $(OBJDR)/Vhwbfly.h
|
$(OBJDR)/Vhwbfly__ALL.a: $(OBJDR)/Vhwbfly.cpp
|
$(OBJDR)/Vhwbfly__ALL.a: $(OBJDR)/Vhwbfly.cpp
|
cd $(OBJDR)/; make -f Vhwbfly.mk
|
cd $(OBJDR)/; make -f Vhwbfly.mk
|
|
|
.PHONY: dblreverse
|
.PHONY: dblreverse
|
dblreverse: $(OBJDR)/Vdblreverse__ALL.a
|
dblreverse: $(OBJDR)/Vdblreverse__ALL.a
|
|
|
$(CORED)/dblreverse.v: fft
|
$(CORED)/dblreverse.v: fft
|
$(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) $(VFLAGS) 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
|
.PHONY: qtrstage
|
qtrstage: $(OBJDR)/Vqtrstage__ALL.a
|
qtrstage: $(OBJDR)/Vqtrstage__ALL.a
|
|
|
$(CORED)/qtrstage.v: fft
|
$(CORED)/qtrstage.v: fft
|
$(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) $(VFLAGS) 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
|
.PHONY: dblstage
|
dblstage: $(OBJDR)/Vdblstage__ALL.a
|
dblstage: $(OBJDR)/Vdblstage__ALL.a
|
|
|
$(CORED)/dblstage.v: fft
|
$(CORED)/dblstage.v: fft
|
$(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) $(VFLAGS) 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
|
cd $(OBJDR)/; make -f Vdblstage.mk
|
cd $(OBJDR)/; make -f Vdblstage.mk
|
|
|
.PHONY: fftstage_o2048
|
.PHONY: fftstage_o2048
|
dblstage: $(OBJDR)/Vfftstage_o2048__ALL.a
|
dblstage: $(OBJDR)/Vfftstage_o2048__ALL.a
|
|
|
$(CORED)/fftstage_o2048.v: fft
|
$(CORED)/fftstage_o2048.v: fft
|
$(OBJDR)/Vfftstage_o2048.cpp $(OBJDR)/Vfftstage_o2048.h: $(CORED)/fftstage_o2048.v
|
$(OBJDR)/Vfftstage_o2048.cpp $(OBJDR)/Vfftstage_o2048.h: $(CORED)/fftstage_o2048.v
|
cd $(CORED)/; verilator -cc fftstage_o2048.v
|
cd $(CORED)/; $(VERILATOR) $(VFLAGS) fftstage_o2048.v
|
$(OBJDR)/Vfftstage_o2048__ALL.a: $(OBJDR)/Vfftstage_o2048.h
|
$(OBJDR)/Vfftstage_o2048__ALL.a: $(OBJDR)/Vfftstage_o2048.h
|
$(OBJDR)/Vfftstage_o2048__ALL.a: $(OBJDR)/Vfftstage_o2048.cpp
|
$(OBJDR)/Vfftstage_o2048__ALL.a: $(OBJDR)/Vfftstage_o2048.cpp
|
cd $(OBJDR)/; make -f Vfftstage_o2048.mk
|
cd $(OBJDR)/; make -f Vfftstage_o2048.mk
|
|
|
.PHONY: clean
|
.PHONY: clean
|