hls::stream<ap_uint<DW * NPPC>> src,报错原因分析
一、综合报错ERROR: [HLS 200-70] Compilation errors found: In file included from src/xxx.cpp:1:In file included from src/xxx.cpp:1:In file included from src/xxx.h:9:src/xxx.h:11:38: error: use of undeclared identifier srchls::streamap_uintDW * NPPC src,^src/xxx.h:13:17: error: type name requires a specifier or qualifierap_uint16 src_cols,^src/xxx.h:11:38: error: use of undeclared identifier srchls::streamap_uintDW * NPPC src,^src/xxx.h:13:17: error: type name requires a specifier or qualifierap_uint16 src_cols,^src/xxx.h:28:31: error: use of undeclared identifier src_cols; did you mean src_rows?scale_t scale_x scale_t(src_cols) / dst_cols;^~~~~~~~src_rowssrc/xxx.h:14:17: note: src_rows declared hereap_uint16 src_rows,^src/xxx.h:55:41: error: use of undeclared identifier src_cols; did you mean src_rows?for (ap_uint16 c 0; c src_cols; c NPPC) {^~~~~~~~src_rowssrc/xxx.h:14:17: note: src_rows declared hereap_uint16 src_rows,^src/xxx.h:57:28: error: use of undeclared identifier srcap_uintDW * NPPC wide src.read();^src/xxx.h:74:41: error: use of undeclared identifier src_cols; did you mean src_rows?for (ap_uint16 c 0; c src_cols; c NPPC) {^~~~~~~~src_rowssrc/xxx.h:14:17: note: src_rows declared hereap_uint16 src_rows,^src/xxx.h:76:28: error: use of undeclared identifier srcap_uintDW * NPPC wide src.read();^src/xxx.h:102:29: error: use of undeclared identifier src_cols; did you mean src_rows?if (src_x src_cols - 1) src_x src_cols - 1;^~~~~~~~src_rowssrc/xxx.h:14:17: note: src_rows declared hereap_uint16 src_rows,^src/xxx.h:102:51: error: use of undeclared identifier src_cols; did you mean src_rows?if (src_x src_cols - 1) src_x src_cols - 1;^~~~~~~~src_rowssrc/xxx.h:14:17: note: src_rows declared hereap_uint16 src_rows,^src/xxx.h:107:27: error: use of undeclared identifier src_cols; did you mean src_rows?if (x1 src_cols) x1 src_cols - 1;^~~~~~~~src_rowssrc/xxx.h:14:17: note: src_rows declared hereap_uint16 src_rows,^src/xxx.h:107:42: error: use of undeclared identifier src_cols; did you mean src_rows?if (x1 src_cols) x1 src_cols - 1;^~~~~~~~src_rowssrc/xxx.h:14:17: note: src_rows declared hereap_uint16 src_rows,^src/xxx.h:129:13: error: use of undeclared identifier dstdst.write(out_word);^In file included from src/xxx.cpp:1:src/xxx.cpp:68:2: error: no matching function for call to yyyy^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~src/xxx.h:10:6: note: candidate function template not viable: requires 3 arguments, but 6 were providedvoid core(^15 errors generated.Failed during preprocessing.while executingsource D:/xxx/prj/solution1/csynth.tclinvoked from withinhls::main D:/xxx/prj/solution1/csynth.tcl(uplevel body line 1)invoked from withinuplevel 1 hls::main {*}$args(procedure hls_proc line 5)invoked from withinhls_proc $argvFinished C synthesis.二、报错原因hls::streamap_uintDW * NPPC src, //hls::streamap_uintDW * NPPC dst, //上述两行代码是综合报错的罪魁祸首这个代码综合会报错但是C仿真不会报错需要修改为hls::streamap_uintDW * NPPC src, //hls::streamap_uintDW * NPPC dst, //以上问题解决