FC2カウンター FPGAの部屋 Vitis_Libraries/vision/L3/examples/colordetect/をやってみた1
FC2ブログ

FPGAやCPLDの話題やFPGA用のツールの話題などです。 マニアックです。 日記も書きます。

FPGAの部屋

FPGAの部屋の有用と思われるコンテンツのまとめサイトを作りました。Xilinx ISEの初心者の方には、FPGAリテラシーおよびチュートリアルのページをお勧めいたします。

Vitis_Libraries/vision/L3/examples/colordetect/をやってみた1

Vitis Vision ライブラリの resize をやってみた。CUI ではうまく行ったが Vitis GUI では、うまく行かなかった。
今回は、Vitis_Libraries/vision/L3/examples/colordetect/をやってみる。

これは、VITIS VISION LIBRARY USER GUIDEColor Detection によると、Vitisビジョンライブラリの4つのハードウェア関数を使用してるそうだ。

xf::cv::BGR2HSV
xf::cv::colorthresholding
xf::cv::erode
xf::cv::dilate


resize を CUI でやっているので、環境は整っている。どのように環境を設定したのか?をおさらいしてみよう。

1. Vitis のインストール・ディレクトリの settings64.sh を実行
source /media/masaaki/Ubuntu_Disk/tools/Xilinx/Vitis/2019.2/settings64.sh

2. XRT の setenv.sh を実行
source /opt/xilinx/xrt/setup.sh

3. DEVICE 環境変数にプラットフォームの xpfm ファイルへのパスを設定する
export DEVICE=/media/masaaki/Ubuntu_Disk/tools/Xilinx/Vitis/2019.2/platforms/ultra96v2_min2/ultra96v2_min2.xpfm

4. SYSROOT にプラットフォームの sysroot へのパスを設定する。
export SYSROOT=/media/masaaki/Ubuntu_Disk/tools/Xilinx/PetaLinux/PetaL_Proj/2019.2/ultra96v2_min2/images/linux/ultra96v2_min2_pkg/pfm/sysroots/aarch64-xilinx-linux


それでは、Vitis_Libraries/vision/L3/examples/colordetect/build ディレクトリに cd して、 xclbin を make する
make host xclbin TARGET=hw BOARD=Zynq ARCH=aarch64
を実行した。
Vitis_Vision_44_200330.png

全ログを示す。

masaaki@masaaki-H110M4-M01:/media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build$ make host xclbin TARGET=hw BOARD=Zynq ARCH=aarch64
-e ----
Compiling object xf_colordetect_tb...
mkdir -p /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/obj_ultra96v2_min2
aarch64-linux-gnu-g++ -o /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/obj_ultra96v2_min2/xf_colordetect_tb.o -c /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/xf_colordetect_tb.cpp -D XDEVICE=ultra96v2_min2 -DVIVADO_HLS_SIM -D__SDSVHLS__ -DHLS_NO_XIL_FPO_LIB -I. -I/media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L1/include -I/media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/ext/xcl2  -g --sysroot=/media/masaaki/Ubuntu_Disk/tools/Xilinx/PetaLinux/PetaL_Proj/2019.2/ultra96v2_min2/images/linux/ultra96v2_min2_pkg/pfm/sysroots/aarch64-xilinx-linux -D__ZYNQ -std=c++14 -fPIC -I/media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect -I/opt/xilinx/xrt/include -Wall -Wno-unknown-pragmas -Wno-unused-label -pthread  -idirafter /media/masaaki/Ubuntu_Disk/tools/Xilinx/Vivado/2019.2/include 
In file included from /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L1/include/common/xf_headers.hpp:30,
                 from /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/xf_colordetect_tb.cpp:17:
/media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L1/include/common/xf_sw_utils.hpp: 関数 ‘void xf::cv::analyzeDiff(cv::Mat&, int, float&)’ 内:
/media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L1/include/common/xf_sw_utils.hpp:150:23: 警告: 変数 ‘v_tmp1’ が設定されましたが使用されていません [-Wunused-but-set-variable]
                 float v_tmp1;
                       ^~~~~~
/media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/xf_colordetect_tb.cpp: 関数 ‘int main(int, char**)’ 内:
/media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/xf_colordetect_tb.cpp:146:14: 警告: unused variable ‘fileBufSize’ [-Wunused-variable]
     unsigned fileBufSize;
              ^~~~~~~~~~~
-e ----
Compiling object xf_colordetect_accel...
mkdir -p /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/obj_ultra96v2_min2
aarch64-linux-gnu-g++ -o /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/obj_ultra96v2_min2/xf_colordetect_accel.o -c /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/xf_colordetect_accel.cpp -D XDEVICE=ultra96v2_min2 -DVIVADO_HLS_SIM -D__SDSVHLS__ -DHLS_NO_XIL_FPO_LIB -I. -I/media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L1/include -I/media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/ext/xcl2  -g --sysroot=/media/masaaki/Ubuntu_Disk/tools/Xilinx/PetaLinux/PetaL_Proj/2019.2/ultra96v2_min2/images/linux/ultra96v2_min2_pkg/pfm/sysroots/aarch64-xilinx-linux -D__ZYNQ -std=c++14 -fPIC -I/media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect -I/opt/xilinx/xrt/include -Wall -Wno-unknown-pragmas -Wno-unused-label -pthread  -idirafter /media/masaaki/Ubuntu_Disk/tools/Xilinx/Vivado/2019.2/include 
In file included from /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/xf_colordetect_config.h:23,
                 from /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/xf_colordetect_accel.cpp:17:
/media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L1/include/common/xf_utility.hpp: In instantiation of ‘void xf::cv::accel_utils::hlsStrm2xfMat(hls::stream<ap_uint<_AP_W2> >&, xf::cv::Mat<MAT_T, ROWS, COLS, NPC>&, int) [with int PTR_WIDTH = 32; int MAT_T = 9; int ROWS = 2160; int COLS = 3840; int NPC = 1; int TRIPCOUNT = 8294400]’:
/media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L1/include/common/xf_utility.hpp:312:9:   required from ‘void xf::cv::accel_utils::Array2xfMat(ap_uint<_AP_W2>*, xf::cv::Mat<MAT_T, ROWS, COLS, NPC>&) [with int PTR_WIDTH = 32; int MAT_T = 9; int ROWS = 2160; int COLS = 3840; int NPC = 1]’
/media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L1/include/common/xf_utility.hpp:508:5:   required from ‘void xf::cv::Array2xfMat(ap_uint<_AP_W2>*, xf::cv::Mat<MAT_T, ROWS, COLS, NPC>&) [with int PTR_WIDTH = 32; int MAT_T = 9; int ROWS = 2160; int COLS = 3840; int NPC = 1]’
/media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/xf_colordetect_accel.cpp:86:85:   required from here
/media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L1/include/common/xf_utility.hpp:270:17: 警告: unused variable ‘valid_bits_update’ [-Wunused-variable]
             int valid_bits_update;
                 ^~~~~~~~~~~~~~~~~
/media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L1/include/common/xf_utility.hpp:271:17: 警告: unused variable ‘valid_bits_tmp’ [-Wunused-variable]
             int valid_bits_tmp = valid_bits - K_size;
                 ^~~~~~~~~~~~~~
/media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L1/include/common/xf_utility.hpp:247:13: 警告: unused variable ‘strm_cnt_disply’ [-Wunused-variable]
         int strm_cnt_disply = 0;
             ^~~~~~~~~~~~~~~
/media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L1/include/common/xf_utility.hpp:293:13: 警告: unused variable ‘stop’ [-Wunused-variable]
         int stop = 0;
             ^~~~
/media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L1/include/common/xf_utility.hpp: In instantiation of ‘void xf::cv::accel_utils::xfMat2hlsStrm(xf::cv::Mat<MAT_T, ROWS, COLS, NPC>&, hls::stream<ap_uint<_AP_W2> >&, int) [with int PTR_WIDTH = 8; int MAT_T = 0; int ROWS = 2160; int COLS = 3840; int NPC = 1; int TRIPCOUNT = 8294400]’:
/media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L1/include/common/xf_utility.hpp:452:9:   required from ‘void xf::cv::accel_utils::xfMat2Array(xf::cv::Mat<MAT_T, ROWS, COLS, NPC>&, ap_uint<_AP_W2>*) [with int PTR_WIDTH = 8; int MAT_T = 0; int ROWS = 2160; int COLS = 3840; int NPC = 1]’
/media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L1/include/common/xf_utility.hpp:502:5:   required from ‘void xf::cv::xfMat2Array(xf::cv::Mat<MAT_T, ROWS, COLS, NPC>&, ap_uint<_AP_W2>*) [with int PTR_WIDTH = 8; int MAT_T = 0; int ROWS = 2160; int COLS = 3840; int NPC = 1]’
/media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/xf_colordetect_accel.cpp:106:89:   required from here
/media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L1/include/common/xf_utility.hpp:365:13: 警告: unused variable ‘ddr_write_cycles’ [-Wunused-variable]
         int ddr_write_cycles = (((out_size_bits) + (PTR_WIDTH)-1) / (PTR_WIDTH));
             ^~~~~~~~~~~~~~~~
/media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L1/include/common/xf_utility.hpp:366:13: 警告: unused variable ‘ddr_write_cnt’ [-Wunused-variable]
         int ddr_write_cnt = 0;
             ^~~~~~~~~~~~~
-e ----
Compiling extra object /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/obj_ultra96v2_min2/xcl2.o...
mkdir -p /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/obj_ultra96v2_min2
aarch64-linux-gnu-g++ -o /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/obj_ultra96v2_min2/xcl2.o -c /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/ext/xcl2/xcl2.cpp -D XDEVICE=ultra96v2_min2 -DVIVADO_HLS_SIM -D__SDSVHLS__ -DHLS_NO_XIL_FPO_LIB -I. -I/media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L1/include -I/media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/ext/xcl2  -g --sysroot=/media/masaaki/Ubuntu_Disk/tools/Xilinx/PetaLinux/PetaL_Proj/2019.2/ultra96v2_min2/images/linux/ultra96v2_min2_pkg/pfm/sysroots/aarch64-xilinx-linux -D__ZYNQ -std=c++14 -fPIC -I/media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect -I/opt/xilinx/xrt/include -Wall -Wno-unknown-pragmas -Wno-unused-label -pthread  -idirafter /media/masaaki/Ubuntu_Disk/tools/Xilinx/Vivado/2019.2/include -I /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/ext/xcl2
-e ----
Compiling host colordetect.exe...
mkdir -p /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/bin_ultra96v2_min2
aarch64-linux-gnu-g++ -o /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/bin_ultra96v2_min2/colordetect.exe /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/obj_ultra96v2_min2/xf_colordetect_tb.o /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/obj_ultra96v2_min2/xf_colordetect_accel.o /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/obj_ultra96v2_min2/xcl2.o -D XDEVICE=ultra96v2_min2 -DVIVADO_HLS_SIM -D__SDSVHLS__ -DHLS_NO_XIL_FPO_LIB -I. -I/media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L1/include -I/media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/ext/xcl2  -g --sysroot=/media/masaaki/Ubuntu_Disk/tools/Xilinx/PetaLinux/PetaL_Proj/2019.2/ultra96v2_min2/images/linux/ultra96v2_min2_pkg/pfm/sysroots/aarch64-xilinx-linux -D__ZYNQ -std=c++14 -fPIC -I/media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect -I/opt/xilinx/xrt/include -Wall -Wno-unknown-pragmas -Wno-unused-label -pthread  -idirafter /media/masaaki/Ubuntu_Disk/tools/Xilinx/Vivado/2019.2/include -L/media/masaaki/Ubuntu_Disk/tools/Xilinx/PetaLinux/PetaL_Proj/2019.2/ultra96v2_min2/images/linux/ultra96v2_min2_pkg/pfm/sysroots/aarch64-xilinx-linux/usr/lib -Wl,-rpath-link=/media/masaaki/Ubuntu_Disk/tools/Xilinx/PetaLinux/PetaL_Proj/2019.2/ultra96v2_min2/images/linux/ultra96v2_min2_pkg/pfm/sysroots/aarch64-xilinx-linux/usr/lib/ -L/media/masaaki/Ubuntu_Disk/tools/Xilinx/PetaLinux/PetaL_Proj/2019.2/ultra96v2_min2/images/linux/ultra96v2_min2_pkg/pfm/sysroots/aarch64-xilinx-linux/opt/xilinx/xrt/lib -lopencv_imgcodecs -lopencv_core -lopencv_imgproc -lopencv_highgui -lopencv_calib3d -lopencv_features2d -lopencv_flann -pthread -L/opt/xilinx/xrt/lib -lxilinxopencl 
-e ----
Compiling kernel color_detect...
mkdir -p /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/xo_ultra96v2_min2_hw
v++ -o /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/xo_ultra96v2_min2_hw/color_detect.xo --kernel color_detect --compile /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/xf_colordetect_accel.cpp \
 -I. -I/media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L1/include -D__SDSVHLS__ -DHLS_NO_XIL_FPO_LIB --clock.defaultFreqHz 300000000 -I/media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect --target hw --platform /media/masaaki/Ubuntu_Disk/tools/Xilinx/Vitis/2019.2/platforms/ultra96v2_min2/ultra96v2_min2.xpfm --temp_dir /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw --save-temps --debug --kernel_frequency 300 --report_level 2 --xp vivado_prop:run.impl_1.strategy=Performance_Explore 
WARNING: [v++ 60-1600] The option 'xp' was used directly on the command line, where its usage is deprecated. To ensure input line works for supported operating systems or shells, v++ supports specification for some options in a configuration file. As an alternative, please use options 'advanced.*', 'vivado.*' in a configuration file. Use one or more configuration files along with section headers to define key-value pairs for the advanced properties or parameters. Specify a configuration file using '--config'.
INFO: [v++ 82-185] Check out the auto-generated 'sample_compile.ini' configuration file. The file shows how to migrate from deprecated command line --xp switches to configuration file directives.
Option Map File Used: '/media/masaaki/Ubuntu_Disk/tools/Xilinx/Vitis/2019.2/data/vitis/vpp/optMap.xml'

****** v++ v2019.2 (64-bit)
  **** SW Build 2700185 on Thu Oct 24 18:45:48 MDT 2019
    ** Copyright 1986-2019 Xilinx, Inc. All Rights Reserved.

INFO: [v++ 60-1306] Additional information associated with this v++ compile can be found at:
 Reports: /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/reports/color_detect
 Log files: /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/logs/color_detect
Running Dispatch Server on port:33953
INFO: [v++ 60-1548] Creating build summary session with primary output /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/xo_ultra96v2_min2_hw/color_detect.xo.compile_summary, at Sun Mar 29 22:00:15 2020
INFO: [v++ 60-1316] Initiating connection to rulecheck server, at Sun Mar 29 22:00:15 2020
Running Rule Check Server on port:41639
INFO: [v++ 60-1315] Creating rulecheck session with output '/media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/reports/color_detect/v++_compile_color_detect_guidance.html', at Sun Mar 29 22:00:16 2020
INFO: [v++ 60-895]   Target platform: /media/masaaki/Ubuntu_Disk/tools/Xilinx/Vitis/2019.2/platforms/ultra96v2_min2/ultra96v2_min2.xpfm
INFO: [v++ 60-1578]   This platform contains Xilinx Shell Archive '/media/masaaki/Ubuntu_Disk/tools/Xilinx/Vitis/2019.2/platforms/ultra96v2_min2/hw/ultra96v2_min2.xsa'
INFO: [v++ 60-585] Compiling for hardware target
INFO: [v++ 60-423]   Target device: ultra96v2_min2
INFO: [v++ 60-242] Creating kernel: 'color_detect'
INFO: [v++ 60-1616] Creating a HLS clock using kernel_frequency option: 300 MHz

===>The following messages were generated while  performing high-level synthesis for kernel: color_detect Log file: /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/color_detect/color_detect/vivado_hls.log :
INFO: [v++ 204-61] Option 'relax_ii_for_timing' is enabled, will increase II to preserve clock frequency constraints.
INFO: [v++ 204-61] Pipelining loop 'Loop 1'.
INFO: [v++ 204-61] Pipelining result : Target II = 1, Final II = 1, Depth = 3.
INFO: [v++ 204-61] Pipelining loop 'L1'.
INFO: [v++ 204-61] Pipelining result : Target II = 1, Final II = 1, Depth = 4.
INFO: [v++ 204-61] Pipelining function 'read'.
INFO: [v++ 204-61] Pipelining result : Target II = 1, Final II = 1, Depth = 1.
INFO: [v++ 204-61] Pipelining function 'write'.
INFO: [v++ 204-61] Pipelining result : Target II = 1, Final II = 1, Depth = 1.
INFO: [v++ 204-61] Pipelining loop 'Loop 1'.
INFO: [v++ 204-61] Pipelining result : Target II = 1, Final II = 1, Depth = 16.
INFO: [v++ 204-61] Pipelining loop 'Loop 1'.
WARNING: [v++ 204-69] Unable to schedule bus request on port 'low_thresh' (/media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L1/include/imgproc/xf_colorthresholding.hpp:144) due to limited memory ports. Please consider using a memory core with more ports or partitioning the array.
INFO: [v++ 204-61] Pipelining result : Target II = 1, Final II = 3, Depth = 11.
INFO: [v++ 204-61] Pipelining loop 'Loop 1'.
INFO: [v++ 204-61] Pipelining result : Target II = 1, Final II = 1, Depth = 3.
INFO: [v++ 204-61] Pipelining function 'xfExtractPixels<1, 1, 0>'.
INFO: [v++ 204-61] Pipelining result : Target II = 1, Final II = 1, Depth = 1.
INFO: [v++ 204-61] Pipelining loop 'Loop 1'.
INFO: [v++ 204-61] Pipelining result : Target II = 1, Final II = 1, Depth = 1.
INFO: [v++ 204-61] Pipelining loop 'Loop 2'.
INFO: [v++ 204-61] Pipelining result : Target II = 1, Final II = 1, Depth = 3.
INFO: [v++ 204-61] Pipelining loop 'Col_Loop'.
INFO: [v++ 204-61] Pipelining result : Target II = 1, Final II = 1, Depth = 11.
INFO: [v++ 204-61] Pipelining loop 'Loop 1'.
INFO: [v++ 204-61] Pipelining result : Target II = 1, Final II = 1, Depth = 1.
INFO: [v++ 204-61] Pipelining loop 'Loop 2'.
INFO: [v++ 204-61] Pipelining result : Target II = 1, Final II = 1, Depth = 3.
INFO: [v++ 204-61] Pipelining loop 'Col_Loop'.
INFO: [v++ 204-61] Pipelining result : Target II = 1, Final II = 1, Depth = 11.
INFO: [v++ 204-61] Pipelining loop 'L1'.
INFO: [v++ 204-61] Pipelining result : Target II = 1, Final II = 1, Depth = 3.
INFO: [v++ 204-61] Pipelining loop 'Loop 1'.
INFO: [v++ 204-61] Pipelining result : Target II = 1, Final II = 1, Depth = 3.
INFO: [v++ 200-789] **** Estimated Fmax: 300.03 MHz
INFO: [v++ 60-594] Finished kernel compilation
INFO: [v++ 60-244] Generating system estimate report...
INFO: [v++ 60-1092] Generated system estimate report: /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/reports/color_detect/system_estimate_color_detect.xtxt
Add Instance Array2xfMat_32_9_2160_3840_1_1 Array2xfMat_32_9_2160_3840_1_1_U0 808
Add Instance Array2xfMat_32_9_2160_3840_1_s grp_Array2xfMat_32_9_2160_3840_1_s_fu_142 142
Add Instance hlsStrm2xfMat_32_9_2160_3840_1_8294400_s hlsStrm2xfMat_32_9_2160_3840_1_8294400_U0 136
Add Instance Array2hlsStrm_32_2160_3840_1_3_8_6220800_s Array2hlsStrm_32_2160_3840_1_3_8_6220800_U0 145
Add Instance xfMat2Array_8_0_2160_3840_1_s xfMat2Array_8_0_2160_3840_1_U0 820
Add Instance xfMat2Array_8_0_2160_3840_1_1 grp_xfMat2Array_8_0_2160_3840_1_1_fu_96 96
Add Instance xfMat2hlsStrm_8_0_2160_3840_1_8294400_62 xfMat2hlsStrm_8_0_2160_3840_1_8294400_62_U0 156
Add Instance hlsStrm2Array_8_2160_3840_1_1_8_8294400_s hlsStrm2Array_8_2160_3840_1_1_8_8294400_U0 172
Add Instance colorthresholding_9_0_3_2160_3840_1_s colorthresholding_9_0_3_2160_3840_1_U0 830
Add Instance colorthresholding_9_0_3_2160_3840_1_Loop_1_proc colorthresholding_9_0_3_2160_3840_1_Loop_1_proc_U0 202
Add Instance xFInRange_9_0_2160_3840_15_0_1_9_1_3_s xFInRange_9_0_2160_3840_15_0_1_9_1_3_U0 212
Add Instance colorthresholding_9_0_3_2160_3840_1_entry14 colorthresholding_9_0_3_2160_3840_1_entry14_U0 240
Add Instance colorthresholding_9_0_3_2160_3840_1_entry253 colorthresholding_9_0_3_2160_3840_1_entry253_U0 250
Add Instance colorthresholding_Block_colorthresholding_9_0_3_2160_3840_1_exit_proc colorthresholding_Block_colorthresholding_9_0_3_2160_3840_1_exit_proc_U0 260
Add Instance bgr2hsv_9_2160_3840_1_s bgr2hsv_9_2160_3840_1_U0 844
Add Instance bgr2hsv_9_2160_3840_1_Loop_1_proc bgr2hsv_9_2160_3840_1_Loop_1_proc_U0 106
Add Instance write_r call_ln160_write_r_fu_246 246
Add Instance read_r in_pix_V_read_r_fu_253 253
Add Instance bgr2hsv_9_2160_3840_1_Block_codeRepl8_proc233 bgr2hsv_9_2160_3840_1_Block_codeRepl8_proc233_U0 122
Add Instance erode_0_0_2160_3840_0_3_3_1_1_176 erode_0_0_2160_3840_0_3_3_1_1_176_U0 858
Add Instance xferode_2160_3840_1_0_1_0_3841_3_3_s grp_xferode_2160_3840_1_0_1_0_3841_3_3_s_fu_80 80
Add Instance xfExtractPixels_1_1_0_s src_buf_temp_copy_extract_0_V_xfExtractPixels_1_1_0_s_fu_448 448
Add Instance xfExtractPixels_1_1_0_s src_buf_temp_copy_extract_0_V_1_xfExtractPixels_1_1_0_s_fu_453 453
Add Instance xfExtractPixels_1_1_0_s src_buf_temp_copy_extract_0_V_2_xfExtractPixels_1_1_0_s_fu_458 458
Add Instance dilate_0_0_2160_3840_0_3_3_1_1_177 dilate_0_0_2160_3840_0_3_3_1_1_177_U0 866
Add Instance xfdilate_2160_3840_1_0_1_0_3841_3_3_s grp_xfdilate_2160_3840_1_0_1_0_3841_3_3_s_fu_80 80
Add Instance xfExtractPixels_1_1_0_s src_buf_temp_copy_extract_0_V_xfExtractPixels_1_1_0_s_fu_448 448
Add Instance xfExtractPixels_1_1_0_s src_buf_temp_copy_extract_0_V_3_xfExtractPixels_1_1_0_s_fu_453 453
Add Instance xfExtractPixels_1_1_0_s src_buf_temp_copy_extract_0_V_4_xfExtractPixels_1_1_0_s_fu_458 458
Add Instance dilate_0_0_2160_3840_0_3_3_1_1_s dilate_0_0_2160_3840_0_3_3_1_1_U0 874
Add Instance xfdilate_2160_3840_1_0_1_0_3841_3_3_s grp_xfdilate_2160_3840_1_0_1_0_3841_3_3_s_fu_80 80
Add Instance xfExtractPixels_1_1_0_s src_buf_temp_copy_extract_0_V_xfExtractPixels_1_1_0_s_fu_448 448
Add Instance xfExtractPixels_1_1_0_s src_buf_temp_copy_extract_0_V_3_xfExtractPixels_1_1_0_s_fu_453 453
Add Instance xfExtractPixels_1_1_0_s src_buf_temp_copy_extract_0_V_4_xfExtractPixels_1_1_0_s_fu_458 458
Add Instance erode_0_0_2160_3840_0_3_3_1_1_s erode_0_0_2160_3840_0_3_3_1_1_U0 882
Add Instance xferode_2160_3840_1_0_1_0_3841_3_3_s grp_xferode_2160_3840_1_0_1_0_3841_3_3_s_fu_80 80
Add Instance xfExtractPixels_1_1_0_s src_buf_temp_copy_extract_0_V_xfExtractPixels_1_1_0_s_fu_448 448
Add Instance xfExtractPixels_1_1_0_s src_buf_temp_copy_extract_0_V_1_xfExtractPixels_1_1_0_s_fu_453 453
Add Instance xfExtractPixels_1_1_0_s src_buf_temp_copy_extract_0_V_2_xfExtractPixels_1_1_0_s_fu_458 458
Add Instance Block_Mat_exit717_proc83 Block_Mat_exit717_proc83_U0 890
INFO: [v++ 60-586] Created /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/xo_ultra96v2_min2_hw/color_detect.xo
INFO: [v++ 60-791] Total elapsed time: 0h 1m 8s
-e ----
Compiling xclbin...
mkdir -p /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/xclbin_ultra96v2_min2_hw
v++ -o /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/xclbin_ultra96v2_min2_hw/krnl_colordetect.xclbin --link /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/xo_ultra96v2_min2_hw/color_detect.xo \
 -I. -I/media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L1/include -D__SDSVHLS__ -DHLS_NO_XIL_FPO_LIB --clock.defaultFreqHz 300000000 -I/media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect --target hw --platform /media/masaaki/Ubuntu_Disk/tools/Xilinx/Vitis/2019.2/platforms/ultra96v2_min2/ultra96v2_min2.xpfm --temp_dir /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw --save-temps --debug --kernel_frequency 300 --report_level 2 --optimize 2 --jobs 8 --xp "vivado_param:project.writeIntermediateCheckpoints=1" \
 --xp vivado_prop:run.impl_1.strategy=Performance_Explore  \
 
WARNING: [v++ 60-1600] The option 'xp' was used directly on the command line, where its usage is deprecated. To ensure input line works for supported operating systems or shells, v++ supports specification for some options in a configuration file. As an alternative, please use options 'advanced.*', 'vivado.*' in a configuration file. Use one or more configuration files along with section headers to define key-value pairs for the advanced properties or parameters. Specify a configuration file using '--config'.
INFO: [v++ 82-185] Check out the auto-generated 'sample_link.ini' configuration file. The file shows how to migrate from deprecated command line --xp switches to configuration file directives.
Option Map File Used: '/media/masaaki/Ubuntu_Disk/tools/Xilinx/Vitis/2019.2/data/vitis/vpp/optMap.xml'

****** v++ v2019.2 (64-bit)
  **** SW Build 2700185 on Thu Oct 24 18:45:48 MDT 2019
    ** Copyright 1986-2019 Xilinx, Inc. All Rights Reserved.

INFO: [v++ 60-1306] Additional information associated with this v++ link can be found at:
 Reports: /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/reports/link
 Log files: /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/logs/link
Running Dispatch Server on port:35961
INFO: [v++ 60-1548] Creating build summary session with primary output /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/xclbin_ultra96v2_min2_hw/krnl_colordetect.xclbin.link_summary, at Sun Mar 29 22:01:26 2020
INFO: [v++ 60-1316] Initiating connection to rulecheck server, at Sun Mar 29 22:01:26 2020
Running Rule Check Server on port:35127
INFO: [v++ 60-1315] Creating rulecheck session with output '/media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/reports/link/v++_link_krnl_colordetect_guidance.html', at Sun Mar 29 22:01:27 2020
INFO: [v++ 60-895]   Target platform: /media/masaaki/Ubuntu_Disk/tools/Xilinx/Vitis/2019.2/platforms/ultra96v2_min2/ultra96v2_min2.xpfm
INFO: [v++ 60-1578]   This platform contains Xilinx Shell Archive '/media/masaaki/Ubuntu_Disk/tools/Xilinx/Vitis/2019.2/platforms/ultra96v2_min2/hw/ultra96v2_min2.xsa'
INFO: [v++ 60-629] Linking for hardware target
INFO: [v++ 60-423]   Target device: ultra96v2_min2
INFO: [v++ 60-1332] Run 'run_link' status: Not started
INFO: [v++ 60-1443] [22:01:27] Run run_link: Step system_link: Started
INFO: [v++ 60-1453] Command Line: system_link --xo /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/xo_ultra96v2_min2_hw/color_detect.xo -keep --config /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/int/syslinkConfig.ini --xpfm /media/masaaki/Ubuntu_Disk/tools/Xilinx/Vitis/2019.2/platforms/ultra96v2_min2/ultra96v2_min2.xpfm --target hw --output_dir /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/int --temp_dir /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/sys_link
INFO: [v++ 60-1454] Run Directory: /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/run_link
INFO: [SYSTEM_LINK 82-76] Reading emulation BD and HPFM information
INFO: [SYSTEM_LINK 60-1316] Initiating connection to rulecheck server, at Sun Mar 29 22:01:28 2020
INFO: [SYSTEM_LINK 82-70] Extracting xo v3 file /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/xo_ultra96v2_min2_hw/color_detect.xo
INFO: [KernelCheck 83-118] 'color_detect' kernel.xml and component.xml caseness discrepency is being corrected, S_AXI_CONTROL is being replaced by s_axi_control
INFO: [KernelCheck 83-118] 'img_in' kernel.xml and component.xml caseness discrepency is being corrected, S_AXI_CONTROL is being replaced by s_axi_control
INFO: [KernelCheck 83-118] 'low_thresh' kernel.xml and component.xml caseness discrepency is being corrected, S_AXI_CONTROL is being replaced by s_axi_control
INFO: [KernelCheck 83-118] 'high_thresh' kernel.xml and component.xml caseness discrepency is being corrected, S_AXI_CONTROL is being replaced by s_axi_control
INFO: [KernelCheck 83-118] 'process_shape' kernel.xml and component.xml caseness discrepency is being corrected, S_AXI_CONTROL is being replaced by s_axi_control
INFO: [KernelCheck 83-118] 'img_out' kernel.xml and component.xml caseness discrepency is being corrected, S_AXI_CONTROL is being replaced by s_axi_control
INFO: [KernelCheck 83-118] 'rows' kernel.xml and component.xml caseness discrepency is being corrected, S_AXI_CONTROL is being replaced by s_axi_control
INFO: [KernelCheck 83-118] 'cols' kernel.xml and component.xml caseness discrepency is being corrected, S_AXI_CONTROL is being replaced by s_axi_control
INFO: [SYSTEM_LINK 82-53] Creating IP database /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/sys_link/_sysl/.cdb/xd_ip_db.xml
INFO: [SYSTEM_LINK 82-38] [22:01:28] build_xd_ip_db started: /media/masaaki/Ubuntu_Disk/tools/Xilinx/Vitis/2019.2/bin/build_xd_ip_db -ip_search 0  -sds-pf /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/sys_link/ultra96v2_min2.hpfm -clkid 0 -ip /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/sys_link/iprepo/xilinx_com_hls_color_detect_1_0,color_detect -o /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/sys_link/_sysl/.cdb/xd_ip_db.xml
INFO: [SYSTEM_LINK 82-37] [22:01:32] build_xd_ip_db finished successfully
Time (s): cpu = 00:00:03 ; elapsed = 00:00:03 . Memory (MB): peak = 296.441 ; gain = 0.000 ; free physical = 11778 ; free virtual = 39256
INFO: [SYSTEM_LINK 82-51] Create system connectivity graph
INFO: [SYSTEM_LINK 82-102] Applying explicit connections to the system connectivity graph: /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/sys_link/cfgraph/cfgen_cfgraph.xml
INFO: [SYSTEM_LINK 82-38] [22:01:32] cfgen started: /media/masaaki/Ubuntu_Disk/tools/Xilinx/Vitis/2019.2/bin/cfgen  -clock.defaultFreqHz 300000000 -dmclkid 0 -r /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/sys_link/_sysl/.cdb/xd_ip_db.xml -o /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/sys_link/cfgraph/cfgen_cfgraph.xml
INFO: [CFGEN 83-0] Kernel Specs: 
INFO: [CFGEN 83-0]   kernel: color_detect, num: 1  {color_detect_1}
INFO: [CFGEN 83-2226] Inferring mapping for argument color_detect_1.img_in to HP
INFO: [CFGEN 83-2226] Inferring mapping for argument color_detect_1.low_thresh to HP
INFO: [CFGEN 83-2226] Inferring mapping for argument color_detect_1.high_thresh to HP
INFO: [CFGEN 83-2226] Inferring mapping for argument color_detect_1.process_shape to HP
INFO: [CFGEN 83-2226] Inferring mapping for argument color_detect_1.img_out to HP
INFO: [SYSTEM_LINK 82-37] [22:01:32] cfgen finished successfully
Time (s): cpu = 00:00:00.27 ; elapsed = 00:00:00.34 . Memory (MB): peak = 296.441 ; gain = 0.000 ; free physical = 11779 ; free virtual = 39258
INFO: [SYSTEM_LINK 82-52] Create top-level block diagram
INFO: [SYSTEM_LINK 82-38] [22:01:32] cf2bd started: /media/masaaki/Ubuntu_Disk/tools/Xilinx/Vitis/2019.2/bin/cf2bd  --linux --trace_buffer 1024 --input_file /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/sys_link/cfgraph/cfgen_cfgraph.xml --ip_db /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/sys_link/_sysl/.cdb/xd_ip_db.xml --cf_name dr --working_dir /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/sys_link/_sysl/.xsd --temp_dir /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/sys_link --output_dir /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/int
INFO: [CF2BD 82-31] Launching cf2xd: cf2xd -linux -trace-buffer 1024 -i /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/sys_link/cfgraph/cfgen_cfgraph.xml -r /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/sys_link/_sysl/.cdb/xd_ip_db.xml -o dr.xml
INFO: [CF2BD 82-28] cf2xd finished successfully
INFO: [CF2BD 82-31] Launching cf_xsd: cf_xsd -disable-address-gen -dn dr -dp /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/sys_link/_sysl/.xsd
                                                                                
rlwrap: warning: your $TERM is 'xterm-256color' but rlwrap couldn't find it in the terminfo database. Expect some problems.: Inappropriate ioctl for device
INFO: [CF2BD 82-28] cf_xsd finished successfully
INFO: [SYSTEM_LINK 82-37] [22:01:34] cf2bd finished successfully
Time (s): cpu = 00:00:02 ; elapsed = 00:00:02 . Memory (MB): peak = 296.441 ; gain = 0.000 ; free physical = 11776 ; free virtual = 39258
INFO: [v++ 60-1441] [22:01:34] Run run_link: Step system_link: Completed
Time (s): cpu = 00:00:06 ; elapsed = 00:00:06 . Memory (MB): peak = 679.691 ; gain = 0.000 ; free physical = 11794 ; free virtual = 39277
INFO: [v++ 60-1443] [22:01:34] Run run_link: Step cf2sw: Started
INFO: [v++ 60-1453] Command Line: cf2sw -sdsl /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/int/sdsl.dat -rtd /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/int/cf2sw.rtd -xclbin /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/int/xclbin_orig.xml -o /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/int/xclbin_orig.1.xml
INFO: [v++ 60-1454] Run Directory: /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/run_link
INFO: [v++ 60-1441] [22:01:34] Run run_link: Step cf2sw: Completed
Time (s): cpu = 00:00:00.52 ; elapsed = 00:00:00.57 . Memory (MB): peak = 679.691 ; gain = 0.000 ; free physical = 11793 ; free virtual = 39276
INFO: [v++ 60-1443] [22:01:34] Run run_link: Step rtd2_system_diagram: Started
INFO: [v++ 60-1453] Command Line: rtd2SystemDiagram --rtdJsonFileName /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/int/cf2sw.rtd --diagramJsonFileName /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/int/systemDiagramModel.json --platformFilePath /media/masaaki/Ubuntu_Disk/tools/Xilinx/Vitis/2019.2/platforms/ultra96v2_min2/ultra96v2_min2.xpfm --generatedByName v++ --generatedByVersion 2019.2 --generatedByChangeList 2700185 --generatedByTimeStamp Thu Oct 24 18:45:48 MDT 2019 --generatedByOptions /media/masaaki/Ubuntu_Disk/tools/Xilinx/Vitis/2019.2/bin/unwrapped/lnx64.o/v++ -o /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/xclbin_ultra96v2_min2_hw/krnl_colordetect.xclbin --link /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/xo_ultra96v2_min2_hw/color_detect.xo -I. -I/media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L1/include -D__SDSVHLS__ -DHLS_NO_XIL_FPO_LIB --clock.defaultFreqHz 300000000 -I/media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect --target hw --platform /media/masaaki/Ubuntu_Disk/tools/Xilinx/Vitis/2019.2/platforms/ultra96v2_min2/ultra96v2_min2.xpfm --temp_dir /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw --save-temps --debug --kernel_frequency 300 --report_level 2 --optimize 2 --jobs 8 --xp vivado_param:project.writeIntermediateCheckpoints=1 --xp vivado_prop:run.impl_1.strategy=Performance_Explore  --generatedByXclbinName krnl_colordetect --kernelInfoDataFileName /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/int/kernel_info.dat
INFO: [v++ 60-1454] Run Directory: /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/run_link
WARNING: [v++ 82-164] Unable to populate user region instance path.  The platform file does not contain a hardwarePlatform.devices..core.instPath entry.
INFO: [v++ 60-839] Read in kernel information from file '/media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/int/kernel_info.dat'.
WARNING: [v++ 82-157] Unable to populate kernel available resources BRAM entry.
WARNING: [v++ 82-158] Unable to populate kernel available resources DSP entry.
WARNING: [v++ 82-163] Unable to populate user region available resources.  The platform file deos not contain a hardwarePlatform.devices..core.availableResources entry
INFO: [v++ 60-1441] [22:01:36] Run run_link: Step rtd2_system_diagram: Completed
Time (s): cpu = 00:00:02 ; elapsed = 00:00:02 . Memory (MB): peak = 679.691 ; gain = 0.000 ; free physical = 11794 ; free virtual = 39277
INFO: [v++ 60-1443] [22:01:36] Run run_link: Step vpl: Started
INFO: [v++ 60-1453] Command Line: vpl -t hw -f /media/masaaki/Ubuntu_Disk/tools/Xilinx/Vitis/2019.2/platforms/ultra96v2_min2/ultra96v2_min2.xpfm -g -j 8 --kernel_frequency 300 -s --output_dir /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/int --log_dir /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/logs/link --report_dir /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/reports/link --config /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/int/vplConfig.ini -k /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/int/kernel_info.dat --webtalk_flag Vitis --temp_dir /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link --no-info --tlog_dir /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/.tlog/v++_link_krnl_colordetect --iprepo /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/int/xo/ip_repo/xilinx_com_hls_color_detect_1_0 --messageDb /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/run_link/vpl.pb /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/int/dr.bd.tcl
INFO: [v++ 60-1454] Run Directory: /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/run_link

****** vpl v2019.2 (64-bit)
  **** SW Build 2700185 on Thu Oct 24 18:45:48 MDT 2019
    ** Copyright 1986-2019 Xilinx, Inc. All Rights Reserved.

INFO: [VPL 60-839] Read in kernel information from file '/media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/int/kernel_info.dat'.
INFO: [VPL 60-423]   Target device: ultra96v2_min2
INFO: [VPL 60-1032] Extracting hardware platform to /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/vivado/vpl/.local/hw_platform
[22:01:48] Run vpl: Step create_project: Started
Creating Vivado project.
[22:01:56] Run vpl: Step create_project: Completed
[22:01:56] Run vpl: Step create_bd: Started
[22:02:06] Run vpl: Step create_bd: Completed
[22:02:06] Run vpl: Step update_bd: Started
[22:02:07] Run vpl: Step update_bd: Completed
[22:02:07] Run vpl: Step generate_target: Started
[22:02:41] Run vpl: Step generate_target: Completed
[22:02:41] Run vpl: Step config_hw_runs: Started
[22:02:44] Run vpl: Step config_hw_runs: Completed
[22:02:44] Run vpl: Step synth: Started
[22:03:46] Block-level synthesis in progress, 0 of 19 jobs complete, 8 jobs running.
[22:04:16] Block-level synthesis in progress, 0 of 19 jobs complete, 8 jobs running.
[22:04:47] Block-level synthesis in progress, 0 of 19 jobs complete, 8 jobs running.
[22:05:17] Block-level synthesis in progress, 0 of 19 jobs complete, 8 jobs running.
[22:05:47] Block-level synthesis in progress, 0 of 19 jobs complete, 8 jobs running.
[22:06:18] Block-level synthesis in progress, 0 of 19 jobs complete, 8 jobs running.
[22:06:48] Block-level synthesis in progress, 0 of 19 jobs complete, 8 jobs running.
[22:07:19] Block-level synthesis in progress, 1 of 19 jobs complete, 7 jobs running.
[22:07:49] Block-level synthesis in progress, 2 of 19 jobs complete, 6 jobs running.
[22:08:19] Block-level synthesis in progress, 5 of 19 jobs complete, 5 jobs running.
[22:08:50] Block-level synthesis in progress, 9 of 19 jobs complete, 2 jobs running.
[22:09:20] Block-level synthesis in progress, 11 of 19 jobs complete, 4 jobs running.
[22:09:50] Block-level synthesis in progress, 11 of 19 jobs complete, 4 jobs running.
[22:10:21] Block-level synthesis in progress, 15 of 19 jobs complete, 4 jobs running.
[22:10:51] Block-level synthesis in progress, 15 of 19 jobs complete, 4 jobs running.
[22:11:21] Block-level synthesis in progress, 17 of 19 jobs complete, 2 jobs running.
[22:11:51] Block-level synthesis in progress, 17 of 19 jobs complete, 2 jobs running.
[22:12:21] Block-level synthesis in progress, 18 of 19 jobs complete, 1 job running.
[22:12:52] Top-level synthesis in progress.
[22:13:22] Top-level synthesis in progress.
[22:13:52] Top-level synthesis in progress.
[22:14:22] Top-level synthesis in progress.
[22:14:27] Run vpl: Step synth: Completed
[22:14:27] Run vpl: Step impl: Started
[22:16:28] Finished 2nd of 6 tasks (FPGA linking synthesized kernels to platform). Elapsed time: 00h 14m 50s 

[22:16:28] Starting logic optimization..
[22:16:58] Phase 1 Retarget
[22:16:58] Phase 2 Constant propagation
[22:16:58] Phase 3 Sweep
[22:16:58] Phase 4 BUFG optimization
[22:16:58] Phase 5 Shift Register Optimization
[22:16:58] Phase 6 Post Processing Netlist
[22:17:28] Finished 3rd of 6 tasks (FPGA logic optimization). Elapsed time: 00h 01m 00s 

[22:17:28] Starting logic placement..
[22:17:58] Phase 1 Placer Initialization
[22:17:58] Phase 1.1 Placer Initialization Netlist Sorting
[22:17:58] Phase 1.2 IO Placement/ Clock Placement/ Build Placer Device
[22:17:58] Phase 1.3 Build Placer Netlist Model
[22:17:58] Phase 1.4 Constrain Clocks/Macros
[22:17:58] Phase 2 Global Placement
[22:17:58] Phase 2.1 Floorplanning
[22:17:58] Phase 2.2 Global Placement Core
[22:18:29] Phase 2.2.1 Physical Synthesis In Placer
[22:18:29] Phase 3 Detail Placement
[22:18:29] Phase 3.1 Commit Multi Column Macros
[22:18:29] Phase 3.2 Commit Most Macros & LUTRAMs
[22:18:29] Phase 3.3 Area Swap Optimization
[22:18:29] Phase 3.4 Pipeline Register Optimization
[22:18:29] Phase 3.5 IO Cut Optimizer
[22:18:29] Phase 3.6 Fast Optimization
[22:18:29] Phase 3.7 Small Shape DP
[22:18:29] Phase 3.7.1 Small Shape Clustering
[22:18:59] Phase 3.7.2 Flow Legalize Slice Clusters
[22:18:59] Phase 3.7.3 Slice Area Swap
[22:18:59] Phase 3.7.4 Commit Slice Clusters
[22:18:59] Phase 3.8 Re-assign LUT pins
[22:18:59] Phase 3.9 Pipeline Register Optimization
[22:18:59] Phase 4 Post Placement Optimization and Clean-Up
[22:18:59] Phase 4.1 Post Commit Optimization
[22:18:59] Phase 4.1.1 Post Placement Optimization
[22:18:59] Phase 4.1.1.1 BUFG Insertion
[22:18:59] Phase 4.2 Post Placement Cleanup
[22:18:59] Phase 4.3 Placer Reporting
[22:18:59] Phase 4.4 Final Placement Cleanup
[22:19:29] Finished 4th of 6 tasks (FPGA logic placement). Elapsed time: 00h 02m 00s 

[22:19:29] Starting logic routing..
[22:19:29] Phase 1 Build RT Design
[22:19:59] Phase 2 Router Initialization
[22:19:59] Phase 2.1 Create Timer
[22:19:59] Phase 2.2 Fix Topology Constraints
[22:19:59] Phase 2.3 Pre Route Cleanup
[22:19:59] Phase 2.4 Global Clock Net Routing
[22:19:59] Phase 2.5 Update Timing
[22:19:59] Phase 2.6 Update Timing for Bus Skew
[22:19:59] Phase 2.6.1 Update Timing
[22:20:30] Phase 3 Initial Routing
[22:20:30] Phase 4 Rip-up And Reroute
[22:20:30] Phase 4.1 Global Iteration 0
[22:22:00] Phase 4.2 Global Iteration 1
[22:22:00] Phase 5 Delay and Skew Optimization
[22:22:00] Phase 5.1 Delay CleanUp
[22:22:00] Phase 5.1.1 Update Timing
[22:22:00] Phase 5.2 Clock Skew Optimization
[22:22:00] Phase 6 Post Hold Fix
[22:22:00] Phase 6.1 Hold Fix Iter
[22:22:00] Phase 6.1.1 Update Timing
[22:22:00] Phase 7 Route finalize
[22:22:00] Phase 8 Verifying routed nets
[22:22:00] Phase 9 Depositing Routes
[22:22:00] Phase 10 Route finalize
[22:22:00] Phase 11 Post Router Timing
[22:22:00] Finished 5th of 6 tasks (FPGA routing). Elapsed time: 00h 02m 31s 

[22:22:00] Starting bitstream generation..
[22:23:01] Creating bitmap...
[22:23:01] Writing bitstream ./ultra96v2_min2_wrapper.bit...
[22:23:01] Finished 6th of 6 tasks (FPGA bitstream generation). Elapsed time: 00h 01m 00s 
[22:23:07] Run vpl: Step impl: Completed
[22:23:07] Run vpl: FINISHED. Run Status: impl Complete!
INFO: [v++ 60-1441] [22:23:07] Run run_link: Step vpl: Completed
Time (s): cpu = 00:00:08 ; elapsed = 00:21:31 . Memory (MB): peak = 679.691 ; gain = 0.000 ; free physical = 14934 ; free virtual = 40171
INFO: [v++ 60-1443] [22:23:07] Run run_link: Step rtdgen: Started
INFO: [v++ 60-1453] Command Line: rtdgen
INFO: [v++ 60-1454] Run Directory: /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/run_link
INFO: [v++ 60-1453] Command Line: cf2sw -a /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/int/address_map.xml -sdsl /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/int/sdsl.dat -xclbin /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/int/xclbin_orig.xml -rtd /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/int/krnl_colordetect.rtd -o /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/int/krnl_colordetect.xml
INFO: [v++ 60-1618] Launching 
INFO: [v++ 60-1441] [22:23:09] Run run_link: Step rtdgen: Completed
Time (s): cpu = 00:00:02 ; elapsed = 00:00:02 . Memory (MB): peak = 679.691 ; gain = 0.000 ; free physical = 14948 ; free virtual = 40186
INFO: [v++ 60-1443] [22:23:09] Run run_link: Step xclbinutil: Started
INFO: [v++ 60-1453] Command Line: xclbinutil --add-section BITSTREAM:RAW:/media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/int/system.bit --force --key-value SYS:mode:flat --add-section :JSON:/media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/int/krnl_colordetect.rtd --add-section CLOCK_FREQ_TOPOLOGY:JSON:/media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/int/krnl_colordetect_xml.rtd --add-section BUILD_METADATA:JSON:/media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/int/krnl_colordetect_build.rtd --add-section EMBEDDED_METADATA:RAW:/media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/int/krnl_colordetect.xml --add-section SYSTEM_METADATA:RAW:/media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/int/systemDiagramModelSlrBaseAddress.json --key-value SYS:PlatformVBNV:vendor_Ultra96V2_ultra96v2_min2_1_0 --output /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/int/krnl_colordetect.xclbin
INFO: [v++ 60-1454] Run Directory: /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/run_link
XRT Build Version: 2.3.1301
       Build Date: 2019-10-24 20:05:16
          Hash ID: 192e706aea53163a04c574f9b3fe9ed76b6ca471
Creating a default 'in-memory' xclbin image.

Section: 'BITSTREAM'(0) was successfully added.
Size   : 5568794 bytes
Format : RAW
File   : '/media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/int/system.bit'

Section: 'MEM_TOPOLOGY'(6) was successfully added.
Format : JSON
File   : 'mem_topology'

Section: 'IP_LAYOUT'(8) was successfully added.
Format : JSON
File   : 'ip_layout'

Section: 'CONNECTIVITY'(7) was successfully added.
Format : JSON
File   : 'connectivity'
WARNING: Skipping CLOCK_FREQ_TOPOLOGY section for count size is zero.
WARNING: Section 'CLOCK_FREQ_TOPOLOGY' content is empty.  No data in the given JSON file.

Section: 'CLOCK_FREQ_TOPOLOGY'(11) was empty.  No action taken.
Format : JSON
File   : '/media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/int/krnl_colordetect_xml.rtd'

Section: 'BUILD_METADATA'(14) was successfully added.
Size   : 3853 bytes
Format : JSON
File   : '/media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/int/krnl_colordetect_build.rtd'

Section: 'EMBEDDED_METADATA'(2) was successfully added.
Size   : 16590 bytes
Format : RAW
File   : '/media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/int/krnl_colordetect.xml'

Section: 'SYSTEM_METADATA'(22) was successfully added.
Size   : 11880 bytes
Format : RAW
File   : '/media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/int/systemDiagramModelSlrBaseAddress.json'
Successfully wrote (5608798 bytes) to the output file: /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/int/krnl_colordetect.xclbin
Leaving xclbinutil.
INFO: [v++ 60-1441] [22:23:09] Run run_link: Step xclbinutil: Completed
Time (s): cpu = 00:00:00 ; elapsed = 00:00:00.27 . Memory (MB): peak = 679.691 ; gain = 0.000 ; free physical = 14940 ; free virtual = 40186
INFO: [v++ 60-1443] [22:23:09] Run run_link: Step xclbinutilinfo: Started
INFO: [v++ 60-1453] Command Line: xclbinutil --quiet --info /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/int/krnl_colordetect.xclbin.info --input /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/int/krnl_colordetect.xclbin
INFO: [v++ 60-1454] Run Directory: /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/link/run_link
INFO: [v++ 60-1441] [22:23:10] Run run_link: Step xclbinutilinfo: Completed
Time (s): cpu = 00:00:00.03 ; elapsed = 00:00:00.05 . Memory (MB): peak = 679.691 ; gain = 0.000 ; free physical = 14940 ; free virtual = 40186
INFO: [v++ 60-244] Generating system estimate report...
INFO: [v++ 60-1092] Generated system estimate report: /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/reports/link/system_estimate_krnl_colordetect.xtxt
INFO: [v++ 60-907] Packaging to directory: '/media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/xclbin_ultra96v2_min2_hw/sd_card'
INFO: [v++ 60-586] Created /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/xclbin_ultra96v2_min2_hw/krnl_colordetect.xclbin
INFO: [v++ 60-1307] Run completed. Additional information can be found in:
 Guidance: /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/reports/link/v++_link_krnl_colordetect_guidance.html
 Timing Report: /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/reports/link/imp/ultra96v2_min2_wrapper_timing_summary_routed.rpt
 Vivado Log: /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/logs/link/vivado.log
 Steps Log File: /media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build/_x_ultra96v2_min2_hw/logs/link/link.steps.log

INFO: [v++ 60-791] Total elapsed time: 0h 21m 46s
masaaki@masaaki-H110M4-M01:/media/masaaki/Ubuntu_Disk/Vitis_Libraries/vision/L3/examples/colordetect/build$ 


現在のVitis_Libraries/vision/L3/examples/colordetect/build ディレクトリの様子を示す。コマンド起動する前は Makefile だけだった。
Vitis_Vision_45_200330.png 

次に、sd_card ディレクトリを make する。
make run TARGET=hw BOARD=Zynq ARCH=aarch64
Vitis_Vision_46_200330.png

するとやはりエラーだった。
エラーを解消するには、下の Makefile のハイライトされた部分を削除すれば良い。Makefile の一部を引用する。
Vitis_Vision_47_200330.png

この部分を削除して、もう一度 make run TARGET=hw BOARD=Zynq ARCH=aarch64 を実行したところ、今度はエラーが発生しなかった。
Vitis_Vision_48_200330.png

Vitis_Libraries/vision/L3/examples/colordetect/build ディレクトリの内容を示す。
Vitis_Vision_50_200330.png

sd_card ディレクトリを表示してみよう。 Vitis_Libraries/vision/L3/examples/colordetect/build/sd_card ディレクトリの様子を示す。
Vitis_Vision_49_200330.png

xclbin_ultra96v2_min2_hw ディレクトリの下には、 krnl_colordetect.xclbin が入っている。

BOOT.BIN の在り処は、 Vitis_Libraries/vision/L3/examples/colordetect/build/xclbin_ultra96v2_min2_hw/sd_card だった。
Vitis_Vision_51_200330.png
  1. 2020年03月30日 04:44 |
  2. Vitis_Vision
  3. | トラックバック:0
  4. | コメント:0

コメント

コメントの投稿


管理者にだけ表示を許可する

トラックバック URL
https://marsee101.blog.fc2.com/tb.php/4837-3cb54692
この記事にトラックバックする(FC2ブログユーザー)