ひでみのアイデア帳

くだらないことなんだけど、忘れないために・・・

SDxの詳しいログ

「Debug/_sds/reports/sds.logにログを出力したよ♪」とでているので、見てみました。

(c) Copyright 2012-2016 Xilinx, Inc. All Rights Reserved.
#-----------------------------------------------------------
# Tool version  : sds++ 2016.3 SW Build 1721985 on Nov 29 2016 18:43:52
# Start time    : Sat Jan 14 01:51:32 JST 2017
# Command line  : sds++ -o Sample01.elf ./src/top.o -dmclkid 1 -sds-sys-config linux -sds-proc a9_0 -sds-pf zybo
# Log file      : /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/reports/sds.log
# Journal file  : /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/reports/sds.jou
# Report file   : /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/reports/sds.rpt
#-----------------------------------------------------------

Libraries: 
Library Paths {}
INFO: [SDSoC 0-0] Analyzing object files
arm-poky-linux-gnueabi-objcopy -O binary --set-section-flags .xdinfo=alloc --only-section=.xdinfo /home/hidemi/workspace/SDSoC/Sample01/Debug/src/top.o /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/.data/xdinfo.xml
arm-poky-linux-gnueabi-objcopy -O binary --set-section-flags .xddata=alloc --only-section=.xddata /home/hidemi/workspace/SDSoC/Sample01/Debug/src/top.o /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/.data/RgbToHsv.xml
arm-poky-linux-gnueabi-objcopy -O binary --set-section-flags .xdpp=alloc --only-section=.xdpp /home/hidemi/workspace/SDSoC/Sample01/Debug/src/top.o /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/.pp/top.ii
arm-poky-linux-gnueabi-objcopy -O binary --set-section-flags .xdfcnmap=alloc --only-section=.xdfcnmap /home/hidemi/workspace/SDSoC/Sample01/Debug/src/top.o /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/.cdb/RgbToHsv.fcnmap.xml
arm-poky-linux-gnueabi-objcopy -O binary --set-section-flags .xdhlscore=alloc --only-section=.xdhlscore /home/hidemi/workspace/SDSoC/Sample01/Debug/src/top.o /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/iprepo/repo/xilinx_com_hls_RgbToHsv_1_0/xilinx_com_hls_RgbToHsv_1_0.zip
unzip -u -o /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/iprepo/repo/xilinx_com_hls_RgbToHsv_1_0/xilinx_com_hls_RgbToHsv_1_0.zip -d /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/iprepo/repo/xilinx_com_hls_RgbToHsv_1_0
Archive:  /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/iprepo/repo/xilinx_com_hls_RgbToHsv_1_0/xilinx_com_hls_RgbToHsv_1_0.zip
  inflating: /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/iprepo/repo/xilinx_com_hls_RgbToHsv_1_0/component.xml  
  inflating: /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/iprepo/repo/xilinx_com_hls_RgbToHsv_1_0/constraints/RgbToHsv_ooc.xdc  
  inflating: /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/iprepo/repo/xilinx_com_hls_RgbToHsv_1_0/hdl/verilog/RgbToHsv.v  
  inflating: /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/iprepo/repo/xilinx_com_hls_RgbToHsv_1_0/hdl/verilog/RgbToHsv_udiv_32nbkb.v  
  inflating: /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/iprepo/repo/xilinx_com_hls_RgbToHsv_1_0/hdl/verilog/RgbToHsv_udiv_18scud.v  
  inflating: /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/iprepo/repo/xilinx_com_hls_RgbToHsv_1_0/hdl/verilog/RgbToHsv_am_submudEe.v  
  inflating: /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/iprepo/repo/xilinx_com_hls_RgbToHsv_1_0/hdl/vhdl/RgbToHsv_am_submudEe.vhd  
  inflating: /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/iprepo/repo/xilinx_com_hls_RgbToHsv_1_0/hdl/vhdl/RgbToHsv.vhd  
  inflating: /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/iprepo/repo/xilinx_com_hls_RgbToHsv_1_0/hdl/vhdl/RgbToHsv_udiv_32nbkb.vhd  
  inflating: /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/iprepo/repo/xilinx_com_hls_RgbToHsv_1_0/hdl/vhdl/RgbToHsv_udiv_18scud.vhd  
  inflating: /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/iprepo/repo/xilinx_com_hls_RgbToHsv_1_0/doc/ReleaseNotes.txt  
  inflating: /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/iprepo/repo/xilinx_com_hls_RgbToHsv_1_0/misc/logo.png  
  inflating: /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/iprepo/repo/xilinx_com_hls_RgbToHsv_1_0/xgui/RgbToHsv_v1_0.tcl  
arm-poky-linux-gnueabi-objcopy -O binary --set-section-flags .xdif=alloc --only-section=.xdif /home/hidemi/workspace/SDSoC/Sample01/Debug/src/top.o /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/.cdb/RgbToHsv_if.xml
build_xd_ip_db  -sds-pf /opt/Xilinx/SDx/2016.3/platforms/zybo/hw/zybo.hpfm  -ip /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/iprepo/repo/xilinx_com_hls_RgbToHsv_1_0  -o /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/.cdb/xd_ip_db.xml  
INFO: Using user-defined path for XILINX_XD environment variable /opt/Xilinx/SDx/2016.3
processing accelerators: /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/iprepo/repo/xilinx_com_hls_RgbToHsv_1_0
ip_dir: /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/iprepo/repo/xilinx_com_hls_RgbToHsv_1_0
xsltproc --stringparam xpath "spirit:component/spirit:name/text()" /opt/Xilinx/SDx/2016.3/scripts/xdcc/xpathValueOf.xsl /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/iprepo/repo/xilinx_com_hls_RgbToHsv_1_0/component.xml
ip_name: RgbToHsv
INFO: [SDSoC 0-0] Generating data motion network
llvm-link -o /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/.llvm/sds_all.o /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/.llvm/./src/top.s
XidanePass  --platform zybo  --dmclkid 1  --repo /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/.cdb/xd_ip_db.xml  --dmdb /opt/Xilinx/SDx/2016.3/data/DM.db   -os linux -processor cortex-a9  
INFO: [SDSoC 0-0] Analyzing hardware accelerators...
INFO: [SDSoC 0-0] Analyzing callers to hardware accelerators...
INFO: [SDSoC 0-0] Scheduling data transfer graph for partition 0
INFO: [SDSoC 0-0] Creating data motion network hardware for partition 0
INFO: [SDSoC 0-0] Creating software stub functions for partition 0
INFO: [SDSoC 0-0] Generating data motion network report for partition 0
INFO: [SDSoC 0-0] Rewriting caller code
xsltproc  -o /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/p0/ipi/apsys_acc_info.xml  --stringparam P_XD_IP_REPOS /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/.cdb/xd_ip_db.xml  /opt/Xilinx/SDx/2016.3/scripts/xsd/genAdapterPackagedIpInfo.xsl
      /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/.llvm/apsys_0.xml
INFO: [SDSoC 0-0] Creating block diagram (BD), address map, port information and device registration for partition 0 (this may take a few minutes)
system_linker -cf-input /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/.llvm/apsys_0.xml -cf-output-dir _sds/p0 -ip-db /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/.cdb/xd_ip_db.xml -ip-repo /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/iprepo/repo -sds-pf /opt/Xilinx/SDx/2016.3/platforms/zybo:linux  -sds-sys-config linux -sds-proc a9_0 -software-only   -target-os linux -sdsoc 
system_linker started at Sat Jan 14 01:51:34 JST 2017
INFO: [SDSoC 0-0] Copying address map
INFO: [SDSoC 0-0] Creating port and device registration data
system_linker completed at Sat Jan 14 01:53:27 JST 2017
INFO: [SDSoC 0-0] Rewrite caller functions
arm-poky-linux-gnueabi-objcopy -O binary --set-section-flags .xdinfo=alloc --only-section=.xdinfo /home/hidemi/workspace/SDSoC/Sample01/Debug/src/top.o /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/.data/xdinfo.xml
caller_rewrite  -rewrite /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/.llvm/caller0.cfrewrite  -o /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/swstubs/top.cpp  /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/swstubs/unix_top.cpp  --  -c  -I/home/hidemi/workspace/SDSoC/Sample01/src -I/home/hidemi/workspace/SDSoC/Sample01/src -Wall -O0 -g -fmessage-length=0 -MMD -MP -D __SDSCC__  -target arm-poky-linux-gnueabi -mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -O0 -g -w    -I /opt/Xilinx/SDx/2016.3/aarch32-linux/include  -I /opt/Xilinx/SDx/2016.3/Vivado_HLS/include   -I/opt/poky/2.2-zybo/sysroots/x86_64-pokysdk-linux/usr/bin/../../../cortexa9hf-neon-poky-linux-gnueabi/usr/include/c++/6.2.1 -I/opt/poky/2.2-zybo/sysroots/x86_64-pokysdk-linux/usr/bin/../../../cortexa9hf-neon-poky-linux-gnueabi/usr/include/c++/6.2.1/arm-poky-linux-gnueabi -I/opt/poky/2.2-zybo/sysroots/x86_64-pokysdk-linux/usr/bin/../../../cortexa9hf-neon-poky-linux-gnueabi/usr/include/c++/6.2.1/backward -I/opt/poky/2.2-zybo/sysroots/x86_64-pokysdk-linux/usr/bin/../lib/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/6.2.1/include -I/opt/poky/2.2-zybo/sysroots/x86_64-pokysdk-linux/usr/bin/../lib/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/6.2.1/include-fixed -I/opt/poky/2.2-zybo/sysroots/x86_64-pokysdk-linux/usr/bin/../../../cortexa9hf-neon-poky-linux-gnueabi/usr/include -I/opt/poky/2.2-zybo/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/libc/usr/include
INFO: [SDSoC 0-0] Compile caller rewrite file /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/swstubs/top.cpp
arm-poky-linux-gnueabi-g++  -c /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/swstubs/top.cpp  -I/home/hidemi/workspace/SDSoC/Sample01/src -I/home/hidemi/workspace/SDSoC/Sample01/src -Wall -O0 -g -fmessage-length=0 -MMD -MP -D __SDSCC__   -march=armv7-a -marm -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a9 --sysroot=/opt/poky/2.2-zybo/sysroots/cortexa9hf-neon-poky-linux-gnueabi    -I /opt/Xilinx/SDx/2016.3/aarch32-linux/include  -I /opt/Xilinx/SDx/2016.3/Vivado_HLS/include  -o /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/swstubs/top.o
INFO: [SDSoC 0-0] Prepare hardware access API functions
INFO: [SDSoC 0-0] Create accelerator stub functions
stub_gen  -func RgbToHsv  -stub /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/.llvm/RgbToHsv.cfrewrite  -o /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/swstubs/top.cpp  /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/swstubs/unix_top.cpp  --  -c  -I/home/hidemi/workspace/SDSoC/Sample01/src -I/home/hidemi/workspace/SDSoC/Sample01/src -Wall -O0 -g -fmessage-length=0 -MMD -MP -D __SDSCC__  -target arm-poky-linux-gnueabi -mcpu=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard -O0 -g -w    -I /opt/Xilinx/SDx/2016.3/aarch32-linux/include  -I /opt/Xilinx/SDx/2016.3/Vivado_HLS/include   -I/opt/poky/2.2-zybo/sysroots/x86_64-pokysdk-linux/usr/bin/../../../cortexa9hf-neon-poky-linux-gnueabi/usr/include/c++/6.2.1 -I/opt/poky/2.2-zybo/sysroots/x86_64-pokysdk-linux/usr/bin/../../../cortexa9hf-neon-poky-linux-gnueabi/usr/include/c++/6.2.1/arm-poky-linux-gnueabi -I/opt/poky/2.2-zybo/sysroots/x86_64-pokysdk-linux/usr/bin/../../../cortexa9hf-neon-poky-linux-gnueabi/usr/include/c++/6.2.1/backward -I/opt/poky/2.2-zybo/sysroots/x86_64-pokysdk-linux/usr/bin/../lib/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/6.2.1/include -I/opt/poky/2.2-zybo/sysroots/x86_64-pokysdk-linux/usr/bin/../lib/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/6.2.1/include-fixed -I/opt/poky/2.2-zybo/sysroots/x86_64-pokysdk-linux/usr/bin/../../../cortexa9hf-neon-poky-linux-gnueabi/usr/include -I/opt/poky/2.2-zybo/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/libc/usr/include
INFO: [SDSoC 0-0] Compile hardware access API functions
arm-poky-linux-gnueabi-gcc    -march=armv7-a -marm -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a9 --sysroot=/opt/poky/2.2-zybo/sysroots/cortexa9hf-neon-poky-linux-gnueabi    -I /opt/Xilinx/SDx/2016.3/aarch32-linux/include  -I /opt/Xilinx/SDx/2016.3/Vivado_HLS/include -c  /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/swstubs/portinfo.c
arm-poky-linux-gnueabi-g++   -march=armv7-a -marm -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a9 --sysroot=/opt/poky/2.2-zybo/sysroots/cortexa9hf-neon-poky-linux-gnueabi    -I /opt/Xilinx/SDx/2016.3/aarch32-linux/include  -I /opt/Xilinx/SDx/2016.3/Vivado_HLS/include -c  /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/swstubs/cf_stub.c
arm-poky-linux-gnueabi-ar crs /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/swstubs/libxlnk_stub.a /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/swstubs/portinfo.o /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/swstubs/cf_stub.o
INFO: [SDSoC 0-0] Compile accelerator stub functions
arm-poky-linux-gnueabi-g++ -c top.cpp -I/home/hidemi/workspace/SDSoC/Sample01/src -I/home/hidemi/workspace/SDSoC/Sample01/src -Wall -O0 -g -fmessage-length=0 -MMD -MP -D __SDSCC__   -march=armv7-a -marm -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a9 --sysroot=/opt/poky/2.2-zybo/sysroots/cortexa9hf-neon-poky-linux-gnueabi    -I /opt/Xilinx/SDx/2016.3/aarch32-linux/include  -I /opt/Xilinx/SDx/2016.3/Vivado_HLS/include -o top.o
arm-poky-linux-gnueabi-ar crs /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/swstubs/libSample01.a /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/swstubs/portinfo.o /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/swstubs/cf_stub.o /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/swstubs/top.o
INFO: [SDSoC 0-0] Link application ELF file
arm-poky-linux-gnueabi-g++  --sysroot=/opt/poky/2.2-zybo/sysroots/cortexa9hf-neon-poky-linux-gnueabi   /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/swstubs/top.o      -L /opt/Xilinx/SDx/2016.3/aarch32-linux/lib -L/home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/swstubs -Wl,--start-group  -Wl,--end-group -Wl,--start-group    -lpthread -lsds_lib -lxlnk_stub  -Wl,--end-group -o /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/swstubs/Sample01.elf
arm-poky-linux-gnueabi-objcopy -R .xdinfo -R .xddata -R .xdasm -R .xdfcnmap -R .xdhlscore -R .xdif -R .xdparams -R .xdcore -R .xdsdata -R .xdpp /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/swstubs/Sample01.elf
INFO: [SDSoC 0-0] Enable generation of hardware programming files
INFO: [SDSoC 0-0] Enable generation of boot files
INFO: [SDSoC 0-0] Calling system_linker for partition 0
system_linker -cf-input /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/.llvm/apsys_0.xml -cf-output-dir _sds/p0 -ip-db /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/.cdb/xd_ip_db.xml -ip-repo /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/iprepo/repo -sds-pf /opt/Xilinx/SDx/2016.3/platforms/zybo:linux  -sds-sys-config linux -sds-proc a9_0 -bitstream -bit-name Sample01.elf.bit -boot-files   -target-os linux -mdev-no-swgen -mdev-no-xsd -sdsoc -sd-output-dir _sds/p0/sd_card -bit-binary -elf /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/swstubs/Sample01.elf
system_linker started at Sat Jan 14 01:53:28 JST 2017
INFO: [SDSoC 0-0] Generating bitstream for platform zybo.
      This may take some time to complete
... [02:18:25] Starting synth_design
... [02:18:30] Starting RTL Elaboration : Time (s): cpu = 00:00:35 ; elapsed = 00:00:36 . Memory (MB): peak = 1335.480 ; gain = 423.492 ; free physical = 1208 ; free virtual = 5567
... [02:18:50] Start Loading Part and Timing Information
... [02:18:50] Start Applying 'set_property' XDC Constraints
... [02:18:50] Start RTL Component Statistics 
... [02:18:50] Start RTL Hierarchical Component Statistics 
... [02:18:50] Start Part Resource Summary
... [02:18:50] Start Cross Boundary and Area Optimization
... [02:18:50] Start Timing Optimization
... [02:19:06] Start Applying XDC Timing Constraints
... [02:19:06] Start Technology Mapping
... [02:19:06] Start IO Insertion
... [02:19:06] Start Flattening Before IO Insertion
... [02:19:06] Start Final Netlist Cleanup
... [02:19:06] Start Renaming Generated Instances
... [02:19:06] Start Rebuilding User Hierarchy
... [02:19:06] Start Renaming Generated Ports
... [02:19:06] Start Handling Custom Attributes
... [02:19:06] Start Renaming Generated Nets
... [02:19:06] Start Writing Synthesis Report
... [02:19:53] Starting DRC Task
... [02:19:53] Starting Logic Optimization Task
... [02:20:03] Starting Connectivity Check Task
... [02:20:03] Starting Power Optimization Task
... [02:20:08] Starting PowerOpt Patch Enables Task
... [02:20:18] Starting Placer Task
... [02:20:53] Starting Routing Task
INFO: [SDSoC 0-0] Creating boot files
system_linker completed at Sat Jan 14 02:22:15 JST 2017
All user specified timing constraints are met.
sds++ log file saved as /home/hidemi/workspace/SDSoC/Sample01/Debug/_sds/reports/sds.log
sds++ completed at Sat Jan 14 02:22:15 JST 2017

ほらほら、arm-poky-gnueabi-XXXでコンパイルしてるでしょ。

これでyoctoで作成したツールチェーンをSDxに適用できたってわけだね。

それとは別に気になったのがSynthesisの開始時間だ。

2:18にSynthesisが開始になっている。

あれ?

Vivadoの工程に一番時間がかかっていると思ってたんだけど、そうではないってわけ?

実行プロレスを見てても確かにVivadoに約30分、費やしてたような。

実時間でいいから全部のログにタイムスタンプが欲しいよね。

でも、libsds_lib.aは5.2.1でコンパイルさてて気持ち悪いんだけどね。