当前位置: 首页 > news >正文

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 'src'
hls::stream<ap_uint<DW * NPPC>>& src,
^
src/xxx.h:13:17: error: type name requires a specifier or qualifier
ap_uint<16> src_cols,
^
src/xxx.h:11:38: error: use of undeclared identifier 'src'
hls::stream<ap_uint<DW * NPPC>>& src,
^
src/xxx.h:13:17: error: type name requires a specifier or qualifier
ap_uint<16> 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_rows
src/xxx.h:14:17: note: 'src_rows' declared here
ap_uint<16> src_rows,
^
src/xxx.h:55:41: error: use of undeclared identifier 'src_cols'; did you mean 'src_rows'?
for (ap_uint<16> c = 0; c < src_cols; c += NPPC) {
^~~~~~~~
src_rows
src/xxx.h:14:17: note: 'src_rows' declared here
ap_uint<16> src_rows,
^
src/xxx.h:57:28: error: use of undeclared identifier 'src'
ap_uint<DW * NPPC> wide = src.read();
^
src/xxx.h:74:41: error: use of undeclared identifier 'src_cols'; did you mean 'src_rows'?
for (ap_uint<16> c = 0; c < src_cols; c += NPPC) {
^~~~~~~~
src_rows
src/xxx.h:14:17: note: 'src_rows' declared here
ap_uint<16> src_rows,
^
src/xxx.h:76:28: error: use of undeclared identifier 'src'
ap_uint<DW * 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_rows
src/xxx.h:14:17: note: 'src_rows' declared here
ap_uint<16> 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_rows
src/xxx.h:14:17: note: 'src_rows' declared here
ap_uint<16> 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_rows
src/xxx.h:14:17: note: 'src_rows' declared here
ap_uint<16> 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_rows
src/xxx.h:14:17: note: 'src_rows' declared here
ap_uint<16> src_rows,
^
src/xxx.h:129:13: error: use of undeclared identifier 'dst'
dst.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 provided
void core(
^
15 errors generated.
Failed during preprocessing.
while executing
"source D:/xxx/prj/solution1/csynth.tcl"
invoked from within
"hls::main D:/xxx/prj/solution1/csynth.tcl"
("uplevel" body line 1)
invoked from within
"uplevel 1 hls::main {*}$args"
(procedure "hls_proc" line 5)
invoked from within
"hls_proc $argv"
Finished C synthesis.

二、报错原因

hls::stream<ap_uint<DW * NPPC>>& src, //
hls::stream<ap_uint<DW * NPPC>>& dst, //

上述两行代码是综合报错的罪魁祸首,这个代码综合会报错,但是C仿真不会报错

需要修改为:

hls::stream<ap_uint<DW * NPPC> >& src, //
hls::stream<ap_uint<DW * NPPC> >& dst, //

以上,问题解决!

http://www.jsqmd.com/news/792166/

相关文章:

  • 32_AI短片实战第五弹:飞跃峡谷——高潮镜头的“放手”哲学与首帧脑补策略(附提示词)
  • DeepSeek V4 横向对比真实表现
  • 终极指南:如何用NPYViewer快速查看和可视化NumPy数组数据
  • YOLO11进阶技巧:数据增强策略 | 舍弃传统Mosaic,引入Copy-Paste与MixUp混合数据增强,有效缓解过拟合
  • R7000P梅林固件进阶玩法:解锁软件中心、挂载U盘与插件安装全攻略
  • 告别数据丢失焦虑:用Python手把手实现Reed-Solomon码(附完整代码)
  • 避开Verilog状态机设计里的那些‘坑’:从HDLbits的Fsm hdlc题看帧同步错误处理
  • 2026年4月优质的vi设计团队推荐,山野风餐饮设计/连锁餐饮品牌设计/连锁餐厅品牌设计,vi设计团队选哪家 - 品牌推荐师
  • 2026最权威的六大AI写作平台解析与推荐
  • LinkSwift:九大网盘直链解析工具使用指南
  • HDLbits进阶实战:FSM与移位寄存器在复杂时序电路中的四种设计范式
  • 三步永久保存微信聊天记录的完整指南:告别数据丢失的烦恼
  • 2026届最火的六大降AI率网站实测分析
  • 终极Notero使用指南:如何快速实现Zotero与Notion文献同步
  • 避开这3个坑,你的PMSM滑模观测器仿真结果才能和论文里一样准
  • APIO2026 打铁记
  • 2026年4月市面上比较好的喷墨机供应厂家推荐,水墨数码机/数码机/数码打印机/扫描机/打样机/直出机,喷墨机企业推荐 - 品牌推荐师
  • OpenClaw.NET 外部 CLI 连接器 (External CLI Connectors) 详细技术总结
  • 智能车信标FM信号不稳?用9018和UPC1677搭建射频功放的避坑指南
  • S7-1200 PLC RS232自由口PTP通信实战:从硬件组态到数据收发
  • 三菱Q系列PLC CC-Link远程IO站配置与诊断实战
  • 2026年南京有实力的鹅卵石工厂推荐,黑灰色砾石/儿童乐园石英砂/景观砾石/鹅卵石滤料,鹅卵石批发厂家哪家好 - 品牌推荐师
  • CSS 阴影高级技巧完全指南
  • 20260510 之所思 - 人生如梦
  • 时序仿真实战:基于D触发器延迟的二倍频电路设计与验证
  • 使用Taotoken后,在持续集成流水线中调用大模型的稳定性体验
  • 机器学习之逻辑回归详解
  • ThinkPad风扇控制终极指南:TPFanCtrl2让你的笔记本更安静高效 [特殊字符]
  • Scroll Reverser终极指南:彻底解决macOS设备间滚动方向冲突的智能工具
  • Taotoken用量看板如何帮助团队精细化管控AI成本