-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c512fd2
commit 3cb16d4
Showing
31 changed files
with
948 additions
and
229 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,4 +21,5 @@ csr | |
tmp_fpga_top | ||
tmp_para | ||
code_gen | ||
para_gen | ||
para_gen | ||
makefile_gen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,6 @@ | ||
SHELL := /bin/bash | ||
COMMON_REPO = ./ | ||
ABS_COMMON_REPO = $(shell readlink -f $(COMMON_REPO)) | ||
UTILS_PATH = ./utils | ||
include ThunderGP.mk | ||
|
||
include $(UTILS_PATH)/help.mk | ||
include $(UTILS_PATH)/utils.mk | ||
.PHONY: all clean exe hwemuprepare | ||
|
||
TARGETS := hw | ||
TARGET := $(TARGETS) | ||
DEVICES := xilinx_vcu1525_xdma_201830_1 | ||
# device list: | ||
# xilinx_vcu1525_xdma_201830_1 | ||
# xilinx_u200_xdma_201830_2 | ||
# xilinx_u250_xdma_201830_2 | ||
|
||
DEVICE := $(DEVICES) | ||
|
||
.PHONY:all clean emconfig exe | ||
all: | ||
ifndef app | ||
$(error app is undefined) | ||
else | ||
APP = $(app) | ||
APPCONFIG = ./application/$(APP) | ||
|
||
include $(APPCONFIG)/config.mk | ||
include $(APPCONFIG)/build.mk | ||
include ./application/common.mk | ||
|
||
CODE_GEN_PATH=./libfpga/generator | ||
include $(CODE_GEN_PATH)/parser.mk | ||
|
||
|
||
all: code_gen $(EXECUTABLE) $(BINARY_CONTAINERS) emconfig | ||
exe: cleanexe $(EXECUTABLE) | ||
|
||
include ./application/common_gs_kernel.mk | ||
include ./application/common_apply_kernel.mk | ||
|
||
include $(UTILS_PATH)/bitstream.mk | ||
include $(UTILS_PATH)/clean.mk | ||
|
||
endif | ||
include utils/main.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
TARGETS := hw | ||
# emu or acc: | ||
# hw | ||
# hw_emu | ||
|
||
APP := | ||
# pass in by app= | ||
|
||
TARGET_BANDWIDTH := 77 | ||
# target memory bandwidth in GB/s | ||
# max: 77GB/s | ||
|
||
DEVICES := xilinx_u250_xdma_201830_2 | ||
# device list: | ||
# xilinx_vcu1525_xdma_201830_1 | ||
# xilinx_u200_xdma_201830_2 | ||
# xilinx_u250_xdma_201830_2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#ifndef __PARA_CHECK__ | ||
#define __PARA_CHECK__ | ||
|
||
#ifndef SUB_PARTITION_NUM | ||
#error "SUB_PARTITION_NUM is not define! please check the ThunderGP para_gen." | ||
#endif | ||
|
||
#ifndef PARTITION_SIZE | ||
#error "PARTITION_SIZE is not define! please check the ThunderGP para_gen." | ||
#endif | ||
|
||
#endif /* __PARA_CHECK__ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.