Vivado HLS 错误记录
问题描述:
VIvado 2018.2 使用 HLS 生成 IP 时报错:
ERROR: [IMPL 213-28] Failed to generate IP.
command 'ap_source' returned error code
while executing
"source /home/xxx/matrixmul.prj/solution1/export.tcl"
invoked from within
"hls::main /xxx/matrixmul.prj/solution1/export.tcl"
("uplevel" body line 1)
invoked from within
"uplevel 1 hls::main {*}$args"
(procedure "hls_proc" line 5)
invoked from within
"hls_proc $argv"
解决方案:
官方Bug,Xilinx官网:解决方案(含补丁下载链接)
Windows
下载补丁:补丁链接
将下载的补丁解压到Xilinx的安装目录下,例如我这里是E:/Xilinx/
在当前路径下运行:python .\y2k22_patch\patch.py
输出如下结果即完成:
[2022-01-07] INFO: This script (version: 1.2) patches Xilinx Tools for HLS Y2k22 bug for the following release:
2014.*, 2015.*, 2016.*, 2017.*, 2018.*, 2019.*, 2020.* and 2021.*
[2022-01-07] UPDATE: /tools/xilinx/Vivado/2021.1/common/scripts
[2022-01-07] COPY: /tools/xilinx/y2k22_patch/automg_patch_20220104.tcl to
/tools/xilinx/Vivado/2021.1/common/scripts/automg_patch_20220104.tcl
[2022-01-07] UPDATE: /tools/xilinx/Vitis_HLS/2021.1/common/scripts
[2022-01-07] COPY: /tools/xilinx/y2k22_patch/automg_patch_20220104.tcl to
/tools/xilinx/Vitis_HLS/2021.1/common/scripts/automg_patch_20220104.tcl
eg:不同的Vitis/Vivado版本操作可能略有差异,详见y2k22_patch中的readme文件
Linux
- 下载 " y2k22_patch-1.2.zip "
- 解压至 /opt/Xilinx 或者 /tools/Xilinx 目录下
- 运行
python y2k22_patch/patch.py
,不同 Vivado 版本操作不同,请参考 readme - 成功后输出如下:
[2022-01-07] INFO: This script (version: 1.2) patches Xilinx Tools for HLS Y2k22 bug for the following release:
2014.*, 2015.*, 2016.*, 2017.*, 2018.*, 2019.*, 2020.* and 2021.*
[2022-01-07] UPDATE: /tools/xilinx/Vivado/2021.1/common/scripts
[2022-01-07] COPY: /tools/xilinx/y2k22_patch/automg_patch_20220104.tcl to
/tools/xilinx/Vivado/2021.1/common/scripts/automg_patch_20220104.tcl
[2022-01-07] UPDATE: /tools/xilinx/Vitis_HLS/2021.1/common/scripts
[2022-01-07] COPY: /tools/xilinx/y2k22_patch/automg_patch_20220104.tcl to
/tools/xilinx/Vitis_HLS/2021.1/common/scripts/automg_patch_20220104.tcl