hls_tb

imread()
Mat cv::imread ( const String & filename,
int flags = IMREAD_COLOR
)
Python:
retval = cv.imread( filename[, flags] )

filename Name of file to be loaded.
flags Flag that can take values of cv::ImreadModes

enum cv::ImreadModes {
cv::IMREAD_UNCHANGED = -1,
cv::IMREAD_GRAYSCALE = 0,
cv::IMREAD_COLOR = 1,
cv::IMREAD_ANYDEPTH = 2,
cv::IMREAD_ANYCOLOR = 4,
cv::IMREAD_LOAD_GDAL = 8,
cv::IMREAD_REDUCED_GRAYSCALE_2 = 16,
cv::IMREAD_REDUCED_COLOR_2 = 17,
cv::IMREAD_REDUCED_GRAYSCALE_4 = 32,
cv::IMREAD_REDUCED_COLOR_4 = 33,
cv::IMREAD_REDUCED_GRAYSCALE_8 = 64,
cv::IMREAD_REDUCED_COLOR_8 = 65,
cv::IMREAD_IGNORE_ORIENTATION = 128
}

int main(int argc,char **argv)

int main(int argc,char** argv)
int main(int argc,char* argv[])
int main(int argc, char* argv[], char* env[] )
  • argc 命令行输入参数的个数 (以空白符为分隔)
  • argv 存储了所有命令行参数 ,以NULL 结束
  • env 环境变量,以NULL 结束
    函数的两个形参,第一个int argc,是记录你输入在命令行上的字符串个数;
    第二个argv[]是个指针数组,存放输入在命令行上的命令(字符串)。

argc:(argument count)int型的argc,用来统计程序运行时发送给main函数的命令行参数的个数,在VS中默认值为1。
argv:(argument vector)char*型的argv[ ],字符串数组,用来存放指向字符串参数的指针数组,每一个元素指向一个参数。

  • argv[0]:指向程序运行的全路径名
  • argv[1]:指向在DOS命令行中执行程序名后的第一个字符串
  • argv[2]:指向执行程序名后的第二个字符串
  • argv[3]:指向执行程序名后的第三个字符串
  • argv[argv]:为NULL

https://blog.youkuaiyun.com/qq_42651833/article/details/89183456

Starting C synthesis ... Starting C simulation ... D:/vitis202302/Vitis_HLS/2023.2/bin/vitis_hls.bat G:/HLS_Test/axi_test/axi_test/axi_test/csim.tcl INFO: [HLS 200-10] Running 'D:/vitis202302/Vitis_HLS/2023.2/bin/unwrapped/win64.o/vitis_hls.exe' INFO: [HLS 200-10] For user 'HP' on host 'desktop-qjs3vb7' (Windows NT_amd64 version 6.2) on Fri Jul 18 15:20:31 +0800 2025 INFO: [HLS 200-10] In directory 'G:/HLS_Test/axi_test' INFO: [HLS 200-2053] The vitis_hls executable is being deprecated. Consider using vitis-run --mode hls --tcl Sourcing Tcl script 'G:/HLS_Test/axi_test/axi_test/axi_test/csim.tcl' INFO: [HLS 200-1510] Running: source G:/HLS_Test/axi_test/axi_test/axi_test/csim.tcl INFO: [HLS 200-1510] Running: open_project axi_test INFO: [HLS 200-10] Opening project 'G:/HLS_Test/axi_test/axi_test'. INFO: [HLS 200-1510] Running: add_files axi_interfaces.c INFO: [HLS 200-10] Adding design file 'axi_interfaces.c' to the project INFO: [HLS 200-1510] Running: add_files -tb axi_interfaces_test.c INFO: [HLS 200-10] Adding test bench file 'axi_interfaces_test.c' to the project INFO: [HLS 200-1510] Running: open_solution axi_test -flow_target vivado INFO: [HLS 200-10] Opening solution 'G:/HLS_Test/axi_test/axi_test/axi_test'. INFO: [SYN 201-201] Setting up clock 'default' with a period of 5ns. INFO: [HLS 200-1611] Setting target device to 'xcvu11p-flga2577-1-e' INFO: [HLS 200-1505] Using flow_target 'vivado' Resolution: For help on HLS 200-1505 see docs.xilinx.com/access/sources/dita/topic?Doc_Version=2023.2%20English&url=ug1448-hls-guidance&resourceid=200-1505.html INFO: [HLS 200-1510] Running: set_part xcvu11p-flga2577-1-e INFO: [HLS 200-1510] Running: create_clock -period 5 -name default INFO: [SYN 201-201] Setting up clock 'default' with a period of 5ns. INFO: [HLS 200-1510] Running: csim_design -quiet INFO: [SIM 211-2] *************** CSIM start *************** INFO: [SIM 211-4] CSIM will launch GCC as the compiler. INFO: [HLS 200-2036] Building debug C Simulation binaries Compiling(apcc) ../../../../axi_interfaces_test.c in debug mode INFO: [HLS 200-10] Running 'D:/vitis202302/Vitis_HLS/2023.2/bin/unwrapped/win64.o/apcc.exe' INFO: [HLS 200-10] For user 'HP' on host 'desktop-qjs3vb7' (Windows NT_amd64 version 6.2) on Fri Jul 18 15:20:34 +0800 2025 INFO: [HLS 200-10] In directory 'G:/HLS_Test/axi_test/axi_test/axi_test/csim/build' ../../../../axi_interfaces_test.c:42:10: warning: implicit declaration of function 'system' is invalid in C99 [-Wimplicit-function-declaration] retval = system("diff --brief -w result.dat result.golden.dat"); ^ 1 warning generated. ../../../../axi_interfaces_test.c:42:10: warning: implicit declaration of function 'system' is invalid in C99 [-Wimplicit-function-declaration] retval = system("diff --brief -w result.dat result.golden.dat"); ^ 1 warning generated. INFO: [APCC 202-3] Tmp directory is G:/HLS_Test/axi_test/axi_test/axi_test/csim/build/apcc_db_HP/231284131701203 INFO: [APCC 202-1] APCC is done. INFO: [HLS 200-112] Total CPU user time: 1 seconds. Total CPU system time: 0 seconds. Total elapsed time: 0.741 seconds; peak allocated memory: 8.262 MB. Compiling(apcc) ../../../../axi_interfaces.c in debug mode INFO: [HLS 200-10] Running 'D:/vitis202302/Vitis_HLS/2023.2/bin/unwrapped/win64.o/apcc.exe' INFO: [HLS 200-10] For user 'HP' on host 'desktop-qjs3vb7' (Windows NT_amd64 version 6.2) on Fri Jul 18 15:20:36 +0800 2025 INFO: [HLS 200-10] In directory 'G:/HLS_Test/axi_test/axi_test/axi_test/csim/build' INFO: [APCC 202-3] Tmp directory is G:/HLS_Test/axi_test/axi_test/axi_test/csim/build/apcc_db_HP/81684133866848 INFO: [APCC 202-1] APCC is done. INFO: [HLS 200-112] Total CPU user time: 1 seconds. Total CPU system time: 0 seconds. Total elapsed time: 0.722 seconds; peak allocated memory: 11.082 MB. Generating csim.exe diff: result.golden.dat: No such file or directory Test failed !!! @E Simulation failed: Function 'main' returns nonzero value '1'. ERROR: [SIM 211-100] 'csim_design' failed: nonzero return value. INFO: [SIM 211-3] *************** CSIM finish *************** INFO: [HLS 200-111] Finished Command csim_design CPU user time: 0 seconds. CPU system time: 0 seconds. Elapsed time: 5.089 seconds; current allocated memory: 0.633 MB. 4 while executing "source G:/HLS_Test/axi_test/axi_test/axi_test/csim.tcl" invoked from within "hls::main G:/HLS_Test/axi_test/axi_test/axi_test/csim.tcl" ("uplevel" body line 1) invoked from within "uplevel 1 hls::main {*}$newargs" (procedure "hls_proc" line 16) invoked from within "hls_proc [info nameofexecutable] $argv" INFO: [HLS 200-112] Total CPU user time: 2 seconds. Total CPU system time: 0 seconds. Total elapsed time: 7.19 seconds; peak allocated memory: 193.797 MB. Finished C simulation.
最新发布
07-19
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值