+ Microarchitecture optimizations + 64-bit support + Xilinx FPGA support + LLVM-16 support + Refactoring and quality control fixes minor update minor update minor update minor update minor update minor update cleanup cleanup cache bindings and memory perf refactory minor update minor update hw unit tests fixes minor update minor update minor update minor update minor update minor udpate minor update minor update minor update minor update minor update minor update minor update minor updates minor updates minor update minor update minor update minor update minor update minor update minor updates minor updates minor updates minor updates minor update minor update
50 lines
1.5 KiB
Makefile
50 lines
1.5 KiB
Makefile
VIVADO = $(XILINX_VIVADO)/bin/vivado
|
|
|
|
RTL_DIR = ../../../rtl
|
|
AFU_DIR = $(RTL_DIR)/afu/xrt
|
|
SCRIPT_DIR = ../../../scripts
|
|
THIRD_PARTY_DIR = ../../../../third_party
|
|
|
|
# include paths
|
|
FPU_INCLUDE = -I$(RTL_DIR)/fpu
|
|
ifneq (,$(findstring FPU_FPNEW,$(CONFIGS)))
|
|
FPU_INCLUDE += -I$(THIRD_PARTY_DIR)/fpnew/src/common_cells/include -I$(THIRD_PARTY_DIR)/fpnew/src/common_cells/src -I$(THIRD_PARTY_DIR)/fpnew/src/fpu_div_sqrt_mvp/hdl -I$(THIRD_PARTY_DIR)/fpnew/src
|
|
endif
|
|
RTL_INCLUDE = -I$(RTL_DIR) -I$(RTL_DIR)/libs -I$(RTL_DIR)/interfaces -I$(RTL_DIR)/core -I$(RTL_DIR)/mem -I$(RTL_DIR)/cache
|
|
RTL_INCLUDE += $(FPU_INCLUDE)
|
|
RTL_INCLUDE += -Iproject_1_files
|
|
|
|
# compilation flags
|
|
CFLAGS += -DNDEBUG -DSYNTHESIS -DVIVADO
|
|
CFLAGS += $(CONFIGS)
|
|
CFLAGS += $(RTL_INCLUDE)
|
|
CFLAGS += -DEXT_F_DISABLE
|
|
#CFLAGS += -DNUM_CORES 4
|
|
|
|
# update memory layout for 2MB RAM
|
|
CFLAGS += -DSTARTUP_ADDR=32\'h80000
|
|
CFLAGS += -DIO_BASE_ADDR=32\'hFF000
|
|
|
|
COE_FILE := $(realpath project_1_files)/kernel.bin.coe
|
|
ESCAPED_COE_FILE := $(shell echo "$(COE_FILE)" | sed -e 's/[\/&]/\\&/g')
|
|
|
|
all: build
|
|
|
|
gen-sources: project_1/sources.txt
|
|
project_1/sources.txt:
|
|
mkdir -p project_1
|
|
$(SCRIPT_DIR)/gen_sources.sh $(CFLAGS) -P -Cproject_1/src -Oproject_1/sources.txt
|
|
|
|
project.tcl: project.tcl.in
|
|
sed -e 's/%COE_FILE%/$(ESCAPED_COE_FILE)/g' < $< > $@
|
|
|
|
build: project_1/vortex.xpr
|
|
project_1/vortex.xpr: project_1/sources.txt project.tcl
|
|
$(VIVADO) -mode batch -source project.tcl -tclargs project_1/sources.txt project_1/src $(SCRIPT_DIR)
|
|
|
|
run: project_1/vortex.xpr
|
|
$(VIVADO) project_1/vortex.xpr &
|
|
|
|
clean:
|
|
rm -rf project_1 project.tcl
|