Skip to content

Commit 2078f6d

Browse files
SDA USRsdausr
authored andcommitted
[vision] 2021.1 initial release (#328)
* 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 <sdausr@xilinx.com>
1 parent d0cb20f commit 2078f6d

3,785 files changed

Lines changed: 295507 additions & 54254 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

vision/.clang-format

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
---
2+
Language: Cpp
3+
AccessModifierOffset: -1
4+
AlignAfterOpenBracket: Align
5+
AlignConsecutiveAssignments: false
6+
AlignConsecutiveDeclarations: false
7+
AlignEscapedNewlinesLeft: true
8+
AlignOperands: true
9+
AlignTrailingComments: true
10+
AllowAllParametersOfDeclarationOnNextLine: true
11+
AllowShortBlocksOnASingleLine: false
12+
AllowShortCaseLabelsOnASingleLine: false
13+
AllowShortFunctionsOnASingleLine: Inline
14+
AllowShortIfStatementsOnASingleLine: true
15+
AllowShortLoopsOnASingleLine: true
16+
AlwaysBreakAfterDefinitionReturnType: None
17+
AlwaysBreakAfterReturnType: None
18+
AlwaysBreakBeforeMultilineStrings: true
19+
AlwaysBreakTemplateDeclarations: true
20+
BinPackArguments: true
21+
BinPackParameters: false
22+
BraceWrapping:
23+
AfterClass: false
24+
AfterControlStatement: false
25+
AfterEnum: false
26+
AfterFunction: false
27+
AfterNamespace: false
28+
AfterObjCDeclaration: false
29+
AfterStruct: false
30+
AfterUnion: false
31+
BeforeCatch: false
32+
BeforeElse: false
33+
IndentBraces: false
34+
BreakBeforeBinaryOperators: None
35+
BreakBeforeBraces: Attach
36+
BreakBeforeTernaryOperators: true
37+
BreakConstructorInitializersBeforeComma: false
38+
ColumnLimit: 120
39+
CommentPragmas: '^ IWYU pragma:'
40+
ConstructorInitializerAllOnOneLineOrOnePerLine: true
41+
ConstructorInitializerIndentWidth: 4
42+
ContinuationIndentWidth: 4
43+
Cpp11BracedListStyle: true
44+
DerivePointerAlignment: false
45+
DisableFormat: false
46+
ExperimentalAutoDetectBinPacking: false
47+
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
48+
IncludeCategories:
49+
- Regex: '^<.*\.h>'
50+
Priority: 1
51+
- Regex: '^<.*'
52+
Priority: 2
53+
- Regex: '.*'
54+
Priority: 3
55+
IndentCaseLabels: true
56+
IndentWidth: 4
57+
IndentWrappedFunctionNames: false
58+
KeepEmptyLinesAtTheStartOfBlocks: false
59+
MacroBlockBegin: ''
60+
MacroBlockEnd: ''
61+
MaxEmptyLinesToKeep: 1
62+
NamespaceIndentation: None
63+
ObjCBlockIndentWidth: 4
64+
ObjCSpaceAfterProperty: false
65+
ObjCSpaceBeforeProtocolList: false
66+
PenaltyBreakBeforeFirstCallParameter: 1
67+
PenaltyBreakComment: 300
68+
PenaltyBreakFirstLessLess: 120
69+
PenaltyBreakString: 1000
70+
PenaltyExcessCharacter: 1000000
71+
PenaltyReturnTypeOnItsOwnLine: 200
72+
PointerAlignment: Left
73+
ReflowComments: true
74+
SortIncludes: false
75+
SpaceAfterCStyleCast: false
76+
SpaceBeforeAssignmentOperators: true
77+
SpaceBeforeParens: ControlStatements
78+
SpaceInEmptyParentheses: false
79+
SpacesBeforeTrailingComments: 1
80+
SpacesInAngles: false
81+
SpacesInContainerLiterals: true
82+
SpacesInCStyleCastParentheses: false
83+
SpacesInParentheses: false
84+
SpacesInSquareBrackets: false
85+
Standard: Cpp03
86+
TabWidth: 8
87+
UseTab: Never
88+
...

vision/Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
@Library('pipeline-library')_
22

33
VitisLibPipeline (branch: 'next', libname: 'xf_opencv', TARGETS: 'hls_csim:hls_csynth:hls_cosim:vitis_sw_emu:vitis_hw_emu',
4-
email: 'badermd@xilinx.com', devtest: 'RunDeploy.sh', TOOLVERSION: '2020.2_stable_latest')
4+
email: 'badermd@xilinx.com', devtest: 'RunDeploy.sh', TOOLVERSION: '2021.1_stable_latest')

vision/L1/examples/3dlut/Makefile

Lines changed: 257 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,257 @@
1+
#
2+
# Copyright 2021 Xilinx, Inc.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
17+
MK_PATH := $(abspath $(lastword $(MAKEFILE_LIST)))
18+
CUR_DIR := $(patsubst %/,%,$(dir $(MK_PATH)))
19+
XF_PROJ_ROOT ?= $(shell bash -c 'export MK_PATH=$(MK_PATH); echo $${MK_PATH%L1/examples/*}')
20+
21+
# MK_INC_BEGIN hls_common.mk
22+
23+
.PHONY: help
24+
25+
help::
26+
@echo ""
27+
@echo "Makefile Usage:"
28+
@echo ""
29+
@echo " make run CSIM=1 CSYNTH=1 COSIM=1 DEVICE=<FPGA platform> PLATFORM_REPO_PATHS=<path to platform directories>"
30+
@echo " Command to run the selected tasks for specified device."
31+
@echo ""
32+
@echo " Valid tasks are CSIM, CSYNTH, COSIM, VIVADO_SYN, VIVADO_IMPL"
33+
@echo ""
34+
@echo " DEVICE is case-insensitive and support awk regex."
35+
@echo " For example, \`make run DEVICE='u200.*xdma' COSIM=1\`"
36+
@echo " It can also be an absolute path to platform file."
37+
@echo ""
38+
@echo " PLATFORM_REPO_PATHS variable is used to specify the paths in which the platform files will be"
39+
@echo " searched for."
40+
@echo ""
41+
@echo " make run CSIM=1 CSYNTH=1 COSIM=1 XPART=<FPGA part name>"
42+
@echo " Alternatively, the FPGA part can be speficied via XPART."
43+
@echo " For example, \`make run XPART='xcu200-fsgd2104-2-e' COSIM=1\`"
44+
@echo " When XPART is set, DEVICE will be ignored."
45+
@echo ""
46+
@echo " make clean "
47+
@echo " Command to remove the generated files."
48+
@echo ""
49+
50+
# MK_INC_END hls_common.mk
51+
52+
# MK_INC_BEGIN vivado.mk
53+
54+
TOOL_VERSION ?= 2021.1
55+
56+
ifeq (,$(XILINX_VIVADO))
57+
XILINX_VIVADO = /opt/xilinx/Vivado/$(TOOL_VERSION)
58+
endif
59+
export XILINX_VIVADO
60+
61+
.PHONY: check_vivado
62+
check_vivado:
63+
ifeq (,$(wildcard $(XILINX_VIVADO)/bin/vivado))
64+
@echo "Cannot locate Vivado installation. Please set XILINX_VIVADO variable." && false
65+
endif
66+
67+
export PATH := $(XILINX_VIVADO)/bin:$(PATH)
68+
69+
# MK_INC_END vivado.mk
70+
71+
DEVICE ?= u200
72+
73+
# MK_INC_BEGIN vitis_set_part.mk
74+
75+
.PHONY: check_part
76+
77+
ifeq (,$(XPART))
78+
# MK_INC_BEGIN vitis.mk
79+
80+
TOOL_VERSION ?= 2021.1
81+
82+
ifeq (,$(XILINX_VITIS))
83+
XILINX_VITIS = /opt/xilinx/Vitis/$(TOOL_VERSION)
84+
endif
85+
export XILINX_VITIS
86+
.PHONY: check_vpp
87+
check_vpp:
88+
ifeq (,$(wildcard $(XILINX_VITIS)/bin/v++))
89+
@echo "Cannot locate Vitis installation. Please set XILINX_VITIS variable." && false
90+
endif
91+
92+
ifeq (,$(XILINX_XRT))
93+
XILINX_XRT = /opt/xilinx/xrt
94+
endif
95+
export XILINX_XRT
96+
.PHONY: check_xrt
97+
check_xrt:
98+
ifeq (,$(wildcard $(XILINX_XRT)/lib/libxilinxopencl.so))
99+
@echo "Cannot locate XRT installation. Please set XILINX_XRT variable." && false
100+
endif
101+
102+
.PHONY: check_opencv
103+
check_opencv:
104+
ifeq (,$(OPENCV_INCLUDE))
105+
@echo "Cannot find OpenCV include path. Please set OPENCV_INCLUDE variable" && false
106+
endif
107+
ifeq (,$(OPENCV_LIB))
108+
@echo "Cannot find Opencv lib path. Please set OPENCV_LIB variable" && false
109+
endif
110+
111+
export PATH := $(XILINX_VITIS)/bin:$(XILINX_XRT)/bin:$(PATH)
112+
113+
ifeq (,$(LD_LIBRARY_PATH))
114+
LD_LIBRARY_PATH := $(XILINX_XRT)/lib
115+
else
116+
LD_LIBRARY_PATH := $(XILINX_XRT)/lib:$(LD_LIBRARY_PATH)
117+
endif
118+
ifneq (,$(wildcard $(XILINX_VITIS)/bin/ldlibpath.sh))
119+
export LD_LIBRARY_PATH := $(shell $(XILINX_VITIS)/bin/ldlibpath.sh $(XILINX_VITIS)/lib/lnx64.o):$(LD_LIBRARY_PATH)
120+
endif
121+
122+
# MK_INC_END vitis.mk
123+
# MK_INC_BEGIN vitis_set_platform.mk
124+
125+
ifneq (,$(wildcard $(DEVICE)))
126+
# Use DEVICE as a file path
127+
XPLATFORM := $(DEVICE)
128+
else
129+
# Use DEVICE as a file name pattern
130+
DEVICE_L := $(shell echo $(DEVICE) | tr A-Z a-z)
131+
# Match the name
132+
ifneq (,$(PLATFORM_REPO_PATHS))
133+
XPLATFORMS := $(foreach p, $(subst :, ,$(PLATFORM_REPO_PATHS)), $(wildcard $(p)/*/*.xpfm))
134+
XPLATFORM := $(strip $(foreach p, $(XPLATFORMS), $(shell echo $(p) | awk '$$1 ~ /$(DEVICE_L)/')))
135+
endif
136+
ifeq (,$(XPLATFORM))
137+
XPLATFORMS := $(wildcard $(XILINX_VITIS)/platforms/*/*.xpfm)
138+
XPLATFORM := $(strip $(foreach p, $(XPLATFORMS), $(shell echo $(p) | awk '$$1 ~ /$(DEVICE_L)/')))
139+
endif
140+
ifeq (,$(XPLATFORM))
141+
XPLATFORMS := $(wildcard /opt/xilinx/platforms/*/*.xpfm)
142+
XPLATFORM := $(strip $(foreach p, $(XPLATFORMS), $(shell echo $(p) | awk '$$1 ~ /$(DEVICE_L)/')))
143+
endif
144+
endif
145+
146+
define MSG_PLATFORM
147+
No platform matched pattern '$(DEVICE)'.
148+
Available platforms are: $(XPLATFORMS)
149+
To add more platform directories, set the PLATFORM_REPO_PATHS variable.
150+
endef
151+
export MSG_PLATFORM
152+
153+
define MSG_DEVICE
154+
More than one platform matched: $(XPLATFORM)
155+
Please set DEVICE variable more accurately to select only one platform file. For example: DEVICE='u200.*xdma'
156+
endef
157+
export MSG_DEVICE
158+
159+
.PHONY: check_platform
160+
check_platform:
161+
ifeq (,$(XPLATFORM))
162+
@echo "$${MSG_PLATFORM}" && false
163+
endif
164+
ifneq (,$(word 2,$(XPLATFORM)))
165+
@echo "$${MSG_DEVICE}" && false
166+
endif
167+
168+
XDEVICE := $(basename $(notdir $(firstword $(XPLATFORM))))
169+
170+
# MK_INC_END vitis_set_platform.mk
171+
ifeq (1, $(words $(XPLATFORM)))
172+
# Query the part name of device
173+
ifneq (,$(wildcard $(XILINX_VITIS)/bin/platforminfo))
174+
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')
175+
endif
176+
endif
177+
check_part: check_platform check_vpp
178+
ifeq (,$(XPART))
179+
@echo "XPART is not set and cannot be inferred. Please run \`make help\` for usage info." && false
180+
endif
181+
else # XPART
182+
check_part:
183+
@echo "XPART is directly set to $(XPART)"
184+
endif # XPART
185+
186+
# MK_INC_END vitis_set_part.mk
187+
188+
# MK_INC_BEGIN hls_test_rules.mk
189+
190+
191+
.PHONY: run setup runhls clean cleanall check
192+
193+
# Alias to run, for legacy test script
194+
check: run
195+
196+
CSIM ?= 0
197+
CSYNTH ?= 0
198+
COSIM ?= 0
199+
VIVADO_SYN ?= 0
200+
VIVADO_IMPL ?= 0
201+
QOR_CHECK ?= 0
202+
203+
# at least RTL synthesis before check QoR
204+
ifeq (1,$(QOR_CHECK))
205+
ifeq (0,$(VIVADO_IMPL))
206+
override VIVADO_SYN := 1
207+
endif
208+
endif
209+
210+
# need synthesis before cosim or vivado
211+
ifeq (1,$(VIVADO_IMPL))
212+
override CSYNTH := 1
213+
endif
214+
215+
ifeq (1,$(VIVADO_SYN))
216+
override CSYNTH := 1
217+
endif
218+
219+
ifeq (1,$(COSIM))
220+
override CSYNTH := 1
221+
endif
222+
223+
# From testbench.data_recipe of description.json
224+
data:
225+
@true
226+
227+
run: data setup runhls
228+
229+
setup: | check_part check_opencv
230+
@rm -f ./settings.tcl
231+
@if [ -n "$$CLKP" ]; then echo 'set CLKP $(CLKP)' >> ./settings.tcl ; fi
232+
@echo 'set XPART $(XPART)' >> ./settings.tcl
233+
@echo 'set CSIM $(CSIM)' >> ./settings.tcl
234+
@echo 'set CSYNTH $(CSYNTH)' >> ./settings.tcl
235+
@echo 'set COSIM $(COSIM)' >> ./settings.tcl
236+
@echo 'set VIVADO_SYN $(VIVADO_SYN)' >> ./settings.tcl
237+
@echo 'set VIVADO_IMPL $(VIVADO_IMPL)' >> ./settings.tcl
238+
@echo 'set XF_PROJ_ROOT "$(XF_PROJ_ROOT)"' >> ./settings.tcl
239+
@echo 'set OPENCV_INCLUDE "$(OPENCV_INCLUDE)"' >> ./settings.tcl
240+
@echo 'set OPENCV_LIB "$(OPENCV_LIB)"' >> ./settings.tcl
241+
@echo 'set CUR_DIR "$(CUR_DIR)"' >> ./settings.tcl
242+
@echo "Configured: settings.tcl"
243+
@echo "----"
244+
@cat ./settings.tcl
245+
@echo "----"
246+
247+
HLS ?= vitis_hls
248+
runhls: data setup | check_vivado check_vpp
249+
$(HLS) -f run_hls.tcl;
250+
251+
clean:
252+
rm -rf settings.tcl *_hls.log lut3d.prj
253+
254+
# Used by Jenkins test
255+
cleanall: clean
256+
257+
# MK_INC_END hls_test_rules.mk
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/*
2+
* Copyright 2021 Xilinx, Inc.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
#define WIDTH 1920 // 7680//3840//
18+
#define HEIGHT 1080 // 4320//2160//
19+
#define NPPC XF_NPPC1
20+
21+
#define T_8U 1
22+
23+
#define XF_USE_URAM 0

0 commit comments

Comments
 (0)