Commit 0637eff4 authored by Leonardo Solis's avatar Leonardo Solis
Browse files

ga-sdx174: adapted Makefile for lapc and spm debug features

builds xclbin completely
parent 87230798
...@@ -168,38 +168,6 @@ opencl_LDFLAGS=-L$(OPENCL_LIB) -L$(SDA_LIB) -lxilinxopencl -pthread ...@@ -168,38 +168,6 @@ opencl_LDFLAGS=-L$(OPENCL_LIB) -L$(SDA_LIB) -lxilinxopencl -pthread
# bank0, bank1, bank2, and bank3 # bank0, bank1, bank2, and bank3
# for platforms with 4 DDR banks. # for platforms with 4 DDR banks.
## Commented because it is example
#krnl_GA_LDCLFLAGS+= --sp bandwidth_1.m_axi_gmem0:bank0 \
# --sp bandwidth_1.m_axi_gmem1:bank1 \
# --sp bandwidth_1.m_axi_gmem2:bank2
## Ideal configuration, but results in routing error
# First two args of IntraE are the 2nd and 3rd of InterE (atom_charges & atom_types),
# Therefore they are mapped to the same DDR bank
#Krnl_GA_LDCLFLAGS+=--sp Krnl_GA_1.m_axi_gmem0:bank0 \
# --sp Krnl_GA_1.m_axi_gmem1:bank0 \
# --sp Krnl_GA_1.m_axi_gmem2:bank0 \
# --sp Krnl_GA_1.m_axi_gmem3:bank0 \
# --sp Krnl_Conform_1.m_axi_gmem0:bank1 \
# --sp Krnl_Conform_1.m_axi_gmem1:bank1 \
# --sp Krnl_Conform_1.m_axi_gmem2:bank1 \
# --sp Krnl_Conform_1.m_axi_gmem3:bank1 \
# --sp Krnl_Conform_1.m_axi_gmem4:bank1 \
# --sp Krnl_InterE_1.m_axi_gmem0:bank2 \
# --sp Krnl_InterE_1.m_axi_gmem1:bank2 \
# --sp Krnl_InterE_1.m_axi_gmem2:bank2 \
# --sp Krnl_IntraE_1.m_axi_gmem0:bank2 \
# --sp Krnl_IntraE_1.m_axi_gmem1:bank2 \
# --sp Krnl_IntraE_1.m_axi_gmem2:bank3 \
# --sp Krnl_IntraE_1.m_axi_gmem3:bank3 \
# --sp Krnl_IntraE_1.m_axi_gmem4:bank3 \
# --sp Krnl_IntraE_1.m_axi_gmem5:bank3 \
# --sp Krnl_IntraE_1.m_axi_gmem6:bank3 \
# --sp Krnl_IntraE_1.m_axi_gmem7:bank3 \
# --sp Krnl_IntraE_1.m_axi_gmem8:bank3 \
# --sp Krnl_IntraE_1.m_axi_gmem9:bank3 \
# --sp Krnl_IntraE_1.m_axi_gmem10:bank3
#Krnl_GA_LDCLFLAGS+=--sp Krnl_GA_1.m_axi_gmem:bank0 \ #Krnl_GA_LDCLFLAGS+=--sp Krnl_GA_1.m_axi_gmem:bank0 \
# --sp Krnl_Conform_1.m_axi_gmem:bank1 \ # --sp Krnl_Conform_1.m_axi_gmem:bank1 \
# --sp Krnl_InterE_1.m_axi_gmem:bank2 \ # --sp Krnl_InterE_1.m_axi_gmem:bank2 \
...@@ -218,6 +186,8 @@ Krnl_GA_LDCLFLAGS+=--sp Krnl_GA_1.m_axi_gmem:bank0 \ ...@@ -218,6 +186,8 @@ Krnl_GA_LDCLFLAGS+=--sp Krnl_GA_1.m_axi_gmem:bank0 \
# Add Lightweight AXI Protocol Checker (lapc) # Add Lightweight AXI Protocol Checker (lapc)
# <protocol:< compute_unit_name >:< interface_name >> # <protocol:< compute_unit_name >:< interface_name >>
# To see kernel interfaces, check <ports> </ports> field within:
# _xocc_compile_<>/impl/kernels/<MYKERNEL>/<MYKERNEL>/kernel.xml
LAPC:=none LAPC:=none
ifneq ($(LAPC),none) ifneq ($(LAPC),none)
...@@ -229,29 +199,19 @@ ifneq ($(LAPC),none) ...@@ -229,29 +199,19 @@ ifneq ($(LAPC),none)
## Warning obtained (not sure if because of configuration) ## Warning obtained (not sure if because of configuration)
## # xbsak status --lapc ## # xbsak status --lapc
## Invalid codes read, skip decoding ## Invalid codes read, skip decoding
Krnl_GA_LDCLFLAGS+=--dk protocol:Krnl_GA_1:m_axi_gmem0 \
--dk protocol:Krnl_GA_1:m_axi_gmem1 \ ## Valid config for ga-sdx174,
--dk protocol:Krnl_GA_1:m_axi_gmem2 \ ## but commented because something more ambicious can be done
--dk protocol:Krnl_GA_1:m_axi_gmem3 \ #Krnl_GA_LDCLFLAGS+=--dk protocol:Krnl_GA_1:m_axi_gmem \
--dk protocol:Krnl_Conform_1:m_axi_gmem0 \ # --dk protocol:Krnl_Conform_1:m_axi_gmem \
--dk protocol:Krnl_Conform_1:m_axi_gmem1 \ # --dk protocol:Krnl_InterE_1:m_axi_gmem \
--dk protocol:Krnl_Conform_1:m_axi_gmem2 \ # --dk protocol:Krnl_IntraE_1:m_axi_gmem
--dk protocol:Krnl_Conform_1:m_axi_gmem3 \
--dk protocol:Krnl_Conform_1:m_axi_gmem4 \ Krnl_GA_LDCLFLAGS+=--dk protocol:Krnl_GA_1:all \
--dk protocol:Krnl_InterE_1:m_axi_gmem0 \ --dk protocol:Krnl_Conform_1:all \
--dk protocol:Krnl_InterE_1:m_axi_gmem1 \ --dk protocol:Krnl_InterE_1:all \
--dk protocol:Krnl_InterE_1:m_axi_gmem2 \ --dk protocol:Krnl_IntraE_1:all
--dk protocol:Krnl_IntraE_1:m_axi_gmem0 \
--dk protocol:Krnl_IntraE_1:m_axi_gmem1 \
--dk protocol:Krnl_IntraE_1:m_axi_gmem2 \
--dk protocol:Krnl_IntraE_1:m_axi_gmem3 \
--dk protocol:Krnl_IntraE_1:m_axi_gmem4 \
--dk protocol:Krnl_IntraE_1:m_axi_gmem5 \
--dk protocol:Krnl_IntraE_1:m_axi_gmem6 \
--dk protocol:Krnl_IntraE_1:m_axi_gmem7 \
--dk protocol:Krnl_IntraE_1:m_axi_gmem8 \
--dk protocol:Krnl_IntraE_1:m_axi_gmem9 \
--dk protocol:Krnl_IntraE_1:m_axi_gmem10
## Commented because error was obtained: ## Commented because error was obtained:
## No interface pins matched 'get_bd_intf_pins -of /Krnl_Conform_1 -filter NAME=~m_axi_gmem' ## No interface pins matched 'get_bd_intf_pins -of /Krnl_Conform_1 -filter NAME=~m_axi_gmem'
...@@ -265,6 +225,8 @@ endif ...@@ -265,6 +225,8 @@ endif
## Adding Performance Monitors (spm) ## Adding Performance Monitors (spm)
## enables the listing of detailed communication statistics (counters). ## enables the listing of detailed communication statistics (counters).
## --profile_kernel data:<kernel_name|all>:<cu_name|all>:<interface_name|all> ## --profile_kernel data:<kernel_name|all>:<cu_name|all>:<interface_name|all>
# To see kernel interfaces, check <ports> </ports> field within:
# _xocc_compile_<>/impl/kernels/<MYKERNEL>/<MYKERNEL>/kernel.xml
SPM:=none SPM:=none
ifneq ($(SPM),none) ifneq ($(SPM),none)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment