Commit 0363429f authored by Leonardo Solis's avatar Leonardo Solis
Browse files

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

builds xclbin completely


Former-commit-id: 0637eff4
parent 6fdc64c6
......@@ -168,38 +168,6 @@ opencl_LDFLAGS=-L$(OPENCL_LIB) -L$(SDA_LIB) -lxilinxopencl -pthread
# bank0, bank1, bank2, and bank3
# 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 \
# --sp Krnl_Conform_1.m_axi_gmem:bank1 \
# --sp Krnl_InterE_1.m_axi_gmem:bank2 \
......@@ -218,6 +186,8 @@ Krnl_GA_LDCLFLAGS+=--sp Krnl_GA_1.m_axi_gmem:bank0 \
# Add Lightweight AXI Protocol Checker (lapc)
# <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
ifneq ($(LAPC),none)
......@@ -229,29 +199,19 @@ ifneq ($(LAPC),none)
## Warning obtained (not sure if because of configuration)
## # xbsak status --lapc
## Invalid codes read, skip decoding
Krnl_GA_LDCLFLAGS+=--dk protocol:Krnl_GA_1:m_axi_gmem0 \
--dk protocol:Krnl_GA_1:m_axi_gmem1 \
--dk protocol:Krnl_GA_1:m_axi_gmem2 \
--dk protocol:Krnl_GA_1:m_axi_gmem3 \
--dk protocol:Krnl_Conform_1:m_axi_gmem0 \
--dk protocol:Krnl_Conform_1:m_axi_gmem1 \
--dk protocol:Krnl_Conform_1:m_axi_gmem2 \
--dk protocol:Krnl_Conform_1:m_axi_gmem3 \
--dk protocol:Krnl_Conform_1:m_axi_gmem4 \
--dk protocol:Krnl_InterE_1:m_axi_gmem0 \
--dk protocol:Krnl_InterE_1:m_axi_gmem1 \
--dk protocol:Krnl_InterE_1:m_axi_gmem2 \
--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
## Valid config for ga-sdx174,
## but commented because something more ambicious can be done
#Krnl_GA_LDCLFLAGS+=--dk protocol:Krnl_GA_1:m_axi_gmem \
# --dk protocol:Krnl_Conform_1:m_axi_gmem \
# --dk protocol:Krnl_InterE_1:m_axi_gmem \
# --dk protocol:Krnl_IntraE_1:m_axi_gmem
Krnl_GA_LDCLFLAGS+=--dk protocol:Krnl_GA_1:all \
--dk protocol:Krnl_Conform_1:all \
--dk protocol:Krnl_InterE_1:all \
--dk protocol:Krnl_IntraE_1:all
## Commented because error was obtained:
## No interface pins matched 'get_bd_intf_pins -of /Krnl_Conform_1 -filter NAME=~m_axi_gmem'
......@@ -265,6 +225,8 @@ endif
## Adding Performance Monitors (spm)
## enables the listing of detailed communication statistics (counters).
## --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
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