Skip to content

Commit

Permalink
[vision] 2021.1 initial release (#328)
Browse files Browse the repository at this point in the history
* Squashed 'hpc/' changes from 1c6ac0e..f28aa9a

f28aa9a update release notes
e9f956a Merge branch 'dev2021.1' into next
04c17bc update release notes
366f577 update release notes
26599b6 Merge branch 'dev2021.1' into next
4e191d6 updates
a40a413 update notes
01d565a Merge branch 'next' of gitenterprise.xilinx.com:FaaSApps/xf_hpc into next
fd999c0 Merge branch 'dev2021.1' into next
dbe158b fix version error
bb0beb4 Merge pull request #77 from liangm/next
95b21eb merge dev2021.1
4ee28f5 Merge branch 'dev2021.1' of gitenterprise.xilinx.com:FaaSApps/xf_hpc into dev2021.1
a188c06 update makefiles
26fd0ea update release notes
b7d6078 Update params.mk
550280c Update params.mk

git-subtree-dir: hpc
git-subtree-split: f28aa9aab61bf0cb761a7844986cad6a2320479f

* Squashed 'vision/' changes from bbdcf34..30a3efa

30a3efa Merge pull request #155 from kaushalk/next
0f704d9 standardization done
896a14a Moved AIE files to aie_dev branch
89743c9 Removed unnecessary files in docs folder
2ab3ccf Merge pull request #153 from nkpavan/next
42e1a9f addweighted args fix
1a56d28 addweighted args fix
516b4f8 Removed AIE info
04c9ee7 Merge pull request #154 from rgoel/next
dafbb32 Merge pull request #152 from kaushalk/next
7ec60d0 Migrating to HLI
1564a41 Merge pull request #151 from akashsun/next
5dfdd16 Merge pull request #149 from pvunnam/next
82fbda8 mat<->axi converters timing fixes
cb5f941 mat<->axi converters timing fixes
4dba3c8 kf_5state freq change to 200
45f9529 adding missing addweigted src file
a1bcff0 removed the unnecc directory
7ffe337 added aie code for abs, accum, accumw
fa84299 Few minor fixes
7f376a5 Update top level Readme
21c273a Merge pull request #150 from gouthamb/next
6ff9a39 Submitting 2021.1 doc updates
9ec0edd Adding clang format
8136a10 Pixelwise_mul RTP value
9f86f06 Merge pull request #148 from kaushalk/next
79e937f Merge pull request #147 from nkpavan/next
cca767c Merge pull request #139 from srujanam/next
07ac950 Adding laplacian, threshold, pixelwise_mul, zero aie functions
262898e vck190 & aws added
627d79f addweighted AIE test
e7ad5a9 addweighted AIE test
c08811f Merge pull request #115 from nkpavan/next
6eda861 Merge pull request #146 from ckreddy/next
318d813 table formats corrected
0c659df ex.rst removed
4ff6578 Merge pull request #145 from ckreddy/next
c0891da release odcs updated
db2109f 2021 heading removed
5250164 2021 heading added
86848b7 2021 heading added
e163c04 format changed
5ae34ee format changed
5fd505c hdr images and releasenotes added
164c422 hdr images and releasenotes added
89b7a35 Merge pull request #144 from rgoel/next
5936ed6 lknpyrof c-sim fix
6ac2474 Adding clang format
ece2e53 releasenotes format added
8cb6045 release notes added
83eeeb5 Adding HW data mover tests for gain control
40873e9 Merge remote-tracking branch 'upstream/next' into next
3359fa4 rst files updated
d07b0bb rst files updated
6f5aade design egs added
6b0a076 convertscaleabs changes for HW data movers
1031215 Merge pull request #143 from kaushalk/next
d908876 run_level increased
97b83e6 Merge pull request #142 from ckreddy/next
5c9ee7d temp file removed
f2f7834 hdrmerge pragma added
e6f61f6 format corrected
c90772b ex added
4e51a13 flip added and formatting done for design eg
8311ae3 format corrected
0b08c21 isp added in design examples
62f1427 isp added in design examples and minor changes added in api reference
ceeb5b9 Merge pull request #140 from rgoel/next
6f8c844 Porting fix from TRD
2baef6b updated accel and xf_flip.hpp
af265c8 updated accel and xf_flip.hpp
8a4524a Merge pull request #135 from srujanam/next
a5a74ab doc added
9d4b9a1 Merge branch 'next' into next
3a58fac Merge pull request #138 from ckreddy/next
26b12fc Canny makefile is added
fa2185b Merge pull request #137 from kaushalk/next
14f2918 RO testcases removed
870fb05 Merge pull request #136 from kaushalk/next
1e1d5f6 vck190 and aws-vu9p-f1 platforms are added
d7a1b0e clang formatting done
4455440 reference code added
b8238d8 Makefile & utils.mk update
22bd640 opencv4 path is added in description file
0e0c1d0 fix for CR-1093445 with clang format
f0dbdd8 Merge pull request #131 from rgoel/next
8e86a2a Fixing opencv include path for 2021.1
2636ecb Merge pull request #134 from ckreddy/next
e9dd3e4 assertion issue in harris is resloved
341dfcf assertion issue in harris is resloved
d70bfbe Adding apache 2.0 license
946e505 Adding licence banner
f0dfdcf Changing directory structure
689f129 Merge pull request #129 from ckreddy/next
e6553ab Updated readme for 2021.1
549265c Corrected datatypes table
afbe9e8 Merge remote-tracking branch 'upstream/next' into next
9d947ac Reverting test
161345c findmax3x3 and maxsupressionrad3 added
9ef3df4 gaussian filter opencv 4.4 compatablity added
1bedb11 Merge pull request #127 from kaushalk/next
e5c7c0d aie path modified
348cc40 Removing Author tag
84cb6a2 GUI disabled
ea07f38 Adding HW data mover support for filter2d
cec932f GUI disabled
3535826 Merge pull request #122 from srujanam/next
2f8e43a Merge pull request #124 from gouthamb/next
cdd0c44 Corrected few benchmark functions
e55772a Merge branch 'next' of https://gitenterprise.xilinx.com/FaaSApps/xf_opencv into next
5eed985 Merge pull request #125 from kaushalk/next
199844c ran over clang format
5a7d782 image path added
910f7c1 image path added
9b7fe22 image path added
cc62164 opencv4 path for edge added
094bc63 undefined symbol: xip_fpo_init2 resolved
76d6ae1 Array to Mat conversion functions are added
ae15393 Array to Mat conversion functions updated
5e04860 Assertion statements are added
b30c68b Removed duplicate ref function in houglines L1 tb file
7f5715a Removed duplicate ref function in houglines L2 tb file
178e648 Updated functions with benchmark calculation
7d37067 Updated functions with benchmark calculation
cdd20f4 Merge pull request #123 from gouthamb/next
9541740 Corrected pragma settings in 3dlut hpp
5c434de Fixed 3dlut assertion issue
206e981 Added Flip function
4adff14 Added Flip function
71bc320 Added Flip function
b4bf2e2 Added Flip function
9c3f9e2 Added Flip function
d422062 Merge pull request #117 from gouthamb/next
6ce6609 Removed hw build run from Jenkinsfile
ca60db3 Merge pull request #119 from ckreddy/next
f6ff171 clang formatted
d4d54c5 Corrected paths in aie json/makefiles
bb621d6 gmem port added for wr_hls for hw_emu issue
88f9128 Merge pull request #120 from kaushalk/next
ca2590f Removed x86 sims from json for aie tests
5c7713b Corrected Makefiles
b3007c8 Merge branch 'next' of https://gitenterprise.xilinx.com/FaaSApps/xf_opencv into next
8677fe1 Makefile update
fc0e2a6 L3 isppipeline with hdrmerge added
8e97fa9 Merge pull request #118 from ckreddy/next
0edc474 Merge pull request #114 from akashsun/next
4c391f5 hdr merge added
56785db Merge pull request #116 from kaushalk/next
5285358 RO testcases disabled
d355359 fixed the makefile and removed unnecessary config_param.h addition
6dde49e Added AIE files into next branch
328d217 RO testcases disabled
dfb253f Merge branch 'next' of https://gitenterprise.xilinx.com/FaaSApps/xf_opencv into next
194e490 fix for CR-1093445
a287744 Merge pull request #109 from ckreddy/next
8de592c Merge pull request #112 from kaushalk/next
eea3149 added cca for PR
aedecf2 image size changed to 128x128
754367a Merge pull request #110 from changg/fix_time_mem
8a54261 fix timeout and mem issue
0d22a1e hdr extract frames added
c898bd3 Added Benchmark Documentation
8108835 Merge pull request #108 from ckreddy/next
0c72a14 opencv 4_4 compatable changes added for gamma and gain
99b6d9a L1 and L3 pr conflict resloved
bdf3994 Merge pull request #104 from kaushalk/next
07158a7 clang format added
d360f6f zcu102 added to blacklist
05692ca iTC value added
9daadd9 aws-vu9p-f1 & VCK190 platform added
11d8e96 removed undeclared identifier imgOutput
1160abf resolved undeclared itentifier iTC
031b46c resolved for std::max
9591eb5 _ removed from src & dst
68ca5bb #include <algorithm> added
079c80b max replaced by fmax
824b051 Merge pull request #103 from kaushalk/next
e16ab82 U50 platform added
e6c68f8 __XF_DEPTH_IN replaced by _XF_DEPTH_IN
70cc3fa Merge pull request #101 from ckreddy/next
0e7ef88 Merge pull request #102 from rgoel/next
dcbae19 Fixing depth parameter in MMIter classes
070bdaa Merge pull request #100 from rgoel/next
956ec48 houghlines testcase was changed
3e3879b isp seg fault resolved
036edce Adding clang format, propagating DEPTH template parameter to base class
16840f7 Fix forregression failure in bounding box test
3d3bae5 Merge remote-tracking branch 'upstream/next' into next
b31e2c3 Merge pull request #99 from kaushalk/next
f464c81 Merge pull request #98 from maheshm/next
66ddb32 clang formatted
d030a7b accel update & ocv ref added
4f24902 ocv ref added
22b9866 ocv ref added
e0f0b8d ocv ref added
0602e3b remove unused code in the testbench file
b16a9d5 Merge pull request #97 from kaushalk/next
6efca21 fix snprintf
cab2bf4 Merge pull request #95 from kaushalk/next
b07182c Merge pull request #93 from gouthamb/next
5cea2b1 __XF_DEPTH__PTR changed to __XF_DEPTH_PTR
dea9f0e Merge pull request #94 from yuanqian/L1_vck_aws
7826907 JSON and Makefiles update
d95d52e hls cases support aws
897d940 vck190 support in Makefiles
ab13bb8 Merge pull request #83 from ckreddy/next
cd5c949 Merge pull request #76 from gouthamb/next
3aae4d7 Revert canny to old file
201feae L2/examples/canny/xf_canny_accel.cpp
21cf3d0 Update JSON related to check_env and SYSROOT
b621cd0 awb printf commited
1e14a32 Removing SDA_MEM_MAP macro usage
841a0c5 canny changes added
1e6299c Merge branch 'next' of https://gitenterprise.xilinx.com/FaaSApps/xf_opencv into next
fa880ee Merge pull request #81 from kaushalk/next
c253c3d clang added
e28d893 awb optimization added
3c3bcaf awb optimized code added
ac124de Porting to opencv 4.4
bcb952b Added all bitdepth support
ab454e6 Correct URAM test makefile
0e7d6ee Added 3D-LUT code
d1e2180 Using conditional type based on depth parameter
a2ca66b Merge remote-tracking branch 'upstream/next' into next
04db234 Merge pull request #73 from kaushalk/next
299c331 dim option removed from STREAM pragma
541e0d2 dim option removed from STREAM pragma
957b79d Merge pull request #72 from kaushalk/next
ed31b48 Commented line delete
82f5d0b Image size change
5acc11f Image size change
00540e0 change 2020.2_stable_latest to 2021.1_stable_latest
fe2f170 Correcting return status in case test fails
dcfd91c Adding clang-format changes
1d5428c Adding Clahe function
2ba8f02 Merge
e46395c Including clang formatting changes
a17070c Fixes in LTO

git-subtree-dir: vision
git-subtree-split: 30a3efabfb0c2f757b95e86cf8808199c1027201

Co-authored-by: sdausr <[email protected]>
  • Loading branch information
2 people authored and GitHub Enterprise committed Jun 27, 2021
1 parent d0cb20f commit 2078f6d
Show file tree
Hide file tree
Showing 3,785 changed files with 295,507 additions and 54,254 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
88 changes: 88 additions & 0 deletions vision/.clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
---
Language: Cpp
AccessModifierOffset: -1
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignEscapedNewlinesLeft: true
AlignOperands: true
AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: Inline
AllowShortIfStatementsOnASingleLine: true
AllowShortLoopsOnASingleLine: true
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: true
AlwaysBreakTemplateDeclarations: true
BinPackArguments: true
BinPackParameters: false
BraceWrapping:
AfterClass: false
AfterControlStatement: false
AfterEnum: false
AfterFunction: false
AfterNamespace: false
AfterObjCDeclaration: false
AfterStruct: false
AfterUnion: false
BeforeCatch: false
BeforeElse: false
IndentBraces: false
BreakBeforeBinaryOperators: None
BreakBeforeBraces: Attach
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: false
ColumnLimit: 120
CommentPragmas: '^ IWYU pragma:'
ConstructorInitializerAllOnOneLineOrOnePerLine: true
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
Cpp11BracedListStyle: true
DerivePointerAlignment: false
DisableFormat: false
ExperimentalAutoDetectBinPacking: false
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
IncludeCategories:
- Regex: '^<.*\.h>'
Priority: 1
- Regex: '^<.*'
Priority: 2
- Regex: '.*'
Priority: 3
IndentCaseLabels: true
IndentWidth: 4
IndentWrappedFunctionNames: false
KeepEmptyLinesAtTheStartOfBlocks: false
MacroBlockBegin: ''
MacroBlockEnd: ''
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
ObjCBlockIndentWidth: 4
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: false
PenaltyBreakBeforeFirstCallParameter: 1
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
PenaltyBreakString: 1000
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 200
PointerAlignment: Left
ReflowComments: true
SortIncludes: false
SpaceAfterCStyleCast: false
SpaceBeforeAssignmentOperators: true
SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 1
SpacesInAngles: false
SpacesInContainerLiterals: true
SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
Standard: Cpp03
TabWidth: 8
UseTab: Never
...
2 changes: 1 addition & 1 deletion vision/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@Library('pipeline-library')_

VitisLibPipeline (branch: 'next', libname: 'xf_opencv', TARGETS: 'hls_csim:hls_csynth:hls_cosim:vitis_sw_emu:vitis_hw_emu',
email: '[email protected]', devtest: 'RunDeploy.sh', TOOLVERSION: '2020.2_stable_latest')
email: '[email protected]', devtest: 'RunDeploy.sh', TOOLVERSION: '2021.1_stable_latest')
257 changes: 257 additions & 0 deletions vision/L1/examples/3dlut/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,257 @@
#
# Copyright 2021 Xilinx, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

MK_PATH := $(abspath $(lastword $(MAKEFILE_LIST)))
CUR_DIR := $(patsubst %/,%,$(dir $(MK_PATH)))
XF_PROJ_ROOT ?= $(shell bash -c 'export MK_PATH=$(MK_PATH); echo $${MK_PATH%L1/examples/*}')

# MK_INC_BEGIN hls_common.mk

.PHONY: help

help::
@echo ""
@echo "Makefile Usage:"
@echo ""
@echo " make run CSIM=1 CSYNTH=1 COSIM=1 DEVICE=<FPGA platform> PLATFORM_REPO_PATHS=<path to platform directories>"
@echo " Command to run the selected tasks for specified device."
@echo ""
@echo " Valid tasks are CSIM, CSYNTH, COSIM, VIVADO_SYN, VIVADO_IMPL"
@echo ""
@echo " DEVICE is case-insensitive and support awk regex."
@echo " For example, \`make run DEVICE='u200.*xdma' COSIM=1\`"
@echo " It can also be an absolute path to platform file."
@echo ""
@echo " PLATFORM_REPO_PATHS variable is used to specify the paths in which the platform files will be"
@echo " searched for."
@echo ""
@echo " make run CSIM=1 CSYNTH=1 COSIM=1 XPART=<FPGA part name>"
@echo " Alternatively, the FPGA part can be speficied via XPART."
@echo " For example, \`make run XPART='xcu200-fsgd2104-2-e' COSIM=1\`"
@echo " When XPART is set, DEVICE will be ignored."
@echo ""
@echo " make clean "
@echo " Command to remove the generated files."
@echo ""

# MK_INC_END hls_common.mk

# MK_INC_BEGIN vivado.mk

TOOL_VERSION ?= 2021.1

ifeq (,$(XILINX_VIVADO))
XILINX_VIVADO = /opt/xilinx/Vivado/$(TOOL_VERSION)
endif
export XILINX_VIVADO

.PHONY: check_vivado
check_vivado:
ifeq (,$(wildcard $(XILINX_VIVADO)/bin/vivado))
@echo "Cannot locate Vivado installation. Please set XILINX_VIVADO variable." && false
endif

export PATH := $(XILINX_VIVADO)/bin:$(PATH)

# MK_INC_END vivado.mk

DEVICE ?= u200

# MK_INC_BEGIN vitis_set_part.mk

.PHONY: check_part

ifeq (,$(XPART))
# MK_INC_BEGIN vitis.mk

TOOL_VERSION ?= 2021.1

ifeq (,$(XILINX_VITIS))
XILINX_VITIS = /opt/xilinx/Vitis/$(TOOL_VERSION)
endif
export XILINX_VITIS
.PHONY: check_vpp
check_vpp:
ifeq (,$(wildcard $(XILINX_VITIS)/bin/v++))
@echo "Cannot locate Vitis installation. Please set XILINX_VITIS variable." && false
endif

ifeq (,$(XILINX_XRT))
XILINX_XRT = /opt/xilinx/xrt
endif
export XILINX_XRT
.PHONY: check_xrt
check_xrt:
ifeq (,$(wildcard $(XILINX_XRT)/lib/libxilinxopencl.so))
@echo "Cannot locate XRT installation. Please set XILINX_XRT variable." && false
endif

.PHONY: check_opencv
check_opencv:
ifeq (,$(OPENCV_INCLUDE))
@echo "Cannot find OpenCV include path. Please set OPENCV_INCLUDE variable" && false
endif
ifeq (,$(OPENCV_LIB))
@echo "Cannot find Opencv lib path. Please set OPENCV_LIB variable" && false
endif

export PATH := $(XILINX_VITIS)/bin:$(XILINX_XRT)/bin:$(PATH)

ifeq (,$(LD_LIBRARY_PATH))
LD_LIBRARY_PATH := $(XILINX_XRT)/lib
else
LD_LIBRARY_PATH := $(XILINX_XRT)/lib:$(LD_LIBRARY_PATH)
endif
ifneq (,$(wildcard $(XILINX_VITIS)/bin/ldlibpath.sh))
export LD_LIBRARY_PATH := $(shell $(XILINX_VITIS)/bin/ldlibpath.sh $(XILINX_VITIS)/lib/lnx64.o):$(LD_LIBRARY_PATH)
endif

# MK_INC_END vitis.mk
# MK_INC_BEGIN vitis_set_platform.mk

ifneq (,$(wildcard $(DEVICE)))
# Use DEVICE as a file path
XPLATFORM := $(DEVICE)
else
# Use DEVICE as a file name pattern
DEVICE_L := $(shell echo $(DEVICE) | tr A-Z a-z)
# Match the name
ifneq (,$(PLATFORM_REPO_PATHS))
XPLATFORMS := $(foreach p, $(subst :, ,$(PLATFORM_REPO_PATHS)), $(wildcard $(p)/*/*.xpfm))
XPLATFORM := $(strip $(foreach p, $(XPLATFORMS), $(shell echo $(p) | awk '$$1 ~ /$(DEVICE_L)/')))
endif
ifeq (,$(XPLATFORM))
XPLATFORMS := $(wildcard $(XILINX_VITIS)/platforms/*/*.xpfm)
XPLATFORM := $(strip $(foreach p, $(XPLATFORMS), $(shell echo $(p) | awk '$$1 ~ /$(DEVICE_L)/')))
endif
ifeq (,$(XPLATFORM))
XPLATFORMS := $(wildcard /opt/xilinx/platforms/*/*.xpfm)
XPLATFORM := $(strip $(foreach p, $(XPLATFORMS), $(shell echo $(p) | awk '$$1 ~ /$(DEVICE_L)/')))
endif
endif

define MSG_PLATFORM
No platform matched pattern '$(DEVICE)'.
Available platforms are: $(XPLATFORMS)
To add more platform directories, set the PLATFORM_REPO_PATHS variable.
endef
export MSG_PLATFORM

define MSG_DEVICE
More than one platform matched: $(XPLATFORM)
Please set DEVICE variable more accurately to select only one platform file. For example: DEVICE='u200.*xdma'
endef
export MSG_DEVICE

.PHONY: check_platform
check_platform:
ifeq (,$(XPLATFORM))
@echo "$${MSG_PLATFORM}" && false
endif
ifneq (,$(word 2,$(XPLATFORM)))
@echo "$${MSG_DEVICE}" && false
endif

XDEVICE := $(basename $(notdir $(firstword $(XPLATFORM))))

# MK_INC_END vitis_set_platform.mk
ifeq (1, $(words $(XPLATFORM)))
# Query the part name of device
ifneq (,$(wildcard $(XILINX_VITIS)/bin/platforminfo))
override XPART := $(shell $(XILINX_VITIS)/bin/platforminfo --json="hardwarePlatform.devices[0].fpgaPart" --platform $(firstword $(XPLATFORM)) | sed 's/^[^:]*://g' | sed 's/[^a-zA-Z0-9]/-/g' | sed 's/-\+/-/g')
endif
endif
check_part: check_platform check_vpp
ifeq (,$(XPART))
@echo "XPART is not set and cannot be inferred. Please run \`make help\` for usage info." && false
endif
else # XPART
check_part:
@echo "XPART is directly set to $(XPART)"
endif # XPART

# MK_INC_END vitis_set_part.mk

# MK_INC_BEGIN hls_test_rules.mk


.PHONY: run setup runhls clean cleanall check

# Alias to run, for legacy test script
check: run

CSIM ?= 0
CSYNTH ?= 0
COSIM ?= 0
VIVADO_SYN ?= 0
VIVADO_IMPL ?= 0
QOR_CHECK ?= 0

# at least RTL synthesis before check QoR
ifeq (1,$(QOR_CHECK))
ifeq (0,$(VIVADO_IMPL))
override VIVADO_SYN := 1
endif
endif

# need synthesis before cosim or vivado
ifeq (1,$(VIVADO_IMPL))
override CSYNTH := 1
endif

ifeq (1,$(VIVADO_SYN))
override CSYNTH := 1
endif

ifeq (1,$(COSIM))
override CSYNTH := 1
endif

# From testbench.data_recipe of description.json
data:
@true

run: data setup runhls

setup: | check_part check_opencv
@rm -f ./settings.tcl
@if [ -n "$$CLKP" ]; then echo 'set CLKP $(CLKP)' >> ./settings.tcl ; fi
@echo 'set XPART $(XPART)' >> ./settings.tcl
@echo 'set CSIM $(CSIM)' >> ./settings.tcl
@echo 'set CSYNTH $(CSYNTH)' >> ./settings.tcl
@echo 'set COSIM $(COSIM)' >> ./settings.tcl
@echo 'set VIVADO_SYN $(VIVADO_SYN)' >> ./settings.tcl
@echo 'set VIVADO_IMPL $(VIVADO_IMPL)' >> ./settings.tcl
@echo 'set XF_PROJ_ROOT "$(XF_PROJ_ROOT)"' >> ./settings.tcl
@echo 'set OPENCV_INCLUDE "$(OPENCV_INCLUDE)"' >> ./settings.tcl
@echo 'set OPENCV_LIB "$(OPENCV_LIB)"' >> ./settings.tcl
@echo 'set CUR_DIR "$(CUR_DIR)"' >> ./settings.tcl
@echo "Configured: settings.tcl"
@echo "----"
@cat ./settings.tcl
@echo "----"

HLS ?= vitis_hls
runhls: data setup | check_vivado check_vpp
$(HLS) -f run_hls.tcl;

clean:
rm -rf settings.tcl *_hls.log lut3d.prj

# Used by Jenkins test
cleanall: clean

# MK_INC_END hls_test_rules.mk
23 changes: 23 additions & 0 deletions vision/L1/examples/3dlut/build/xf_config_params.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*
* Copyright 2021 Xilinx, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

#define WIDTH 1920 // 7680//3840//
#define HEIGHT 1080 // 4320//2160//
#define NPPC XF_NPPC1

#define T_8U 1

#define XF_USE_URAM 0
Loading

0 comments on commit 2078f6d

Please sign in to comment.