Vitis_HLS 的 TCL脚本不能移除设计文件 ,没有 remove_files (how could we remove file in Vitis HLS tcl script?)

在Vitis HLS中可以在TCL脚本中增加设计文件 add_files
可参考这个官方链接 add_files in vitis-hls

如果有不同的设计(C代码)此时要怎么办?尤其是这些设计的顶层函数名相同,重复add_files增加设计文件会有冲突。

我们发现Vitis_hls 中 tcl 无法自动移除设计文件

invalid command name "remove_files"

不过我们可以通过tcl的文件复制操作实现次命令

file copy -force file1 file2

参考链接tcl file copy

翻译/English
I found we cannot use remove_files as add_files in Vitis HLS tcl scripts. So I use file copy to achieve such operation. I copy design file (usually the C/C++ files in HLS) file1 to target file file2. By this way, target file2 will be replaced (same as delate/remove and add a new one) by a new design file.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值