自 2022 年 1 月 1 日起,Vivado HLS 和 Vitis HLS 使用的 export_ip 命令将无法导出 IP。
在后台使用 HLS 的 Vivado 和 Vitis 工具也会受到此问题的影响。HLS 工具以 YYMMDDHHMM 格式设置 ip_version,并且该值作为有符号整数(32 位)访问,这会导致溢出并生成以下错误(或类似内容)。Xilinx 建议所有客户应用此补丁以确保安全。
错误日志
ERROR: [v++ 213-28] Failed to generate IP.
ERROR: [v++ 60-300] Failed to build kernel(ip) krnl, see log for details: vitis_hls.log
...
source run_ippack.tcl -notrace
ERROR: '##########' is an invalid argument. Please specify an integer value.
while executing
"rdi::set_property core_revision ########## {component component_1}"
invoked from within
"set_property core_revision $Revision $core"
(file "run_ippack.tcl" line 1112)
...
ERROR: [IMPL 213-28] Failed to generate IP.
INFO: [HLS 200-111] Finished Command export_design
OR
source run_ippack.tcl -notrace
bad lexical cast: source type value could not be interpreted as target
while executing
"rdi::set_property core_revision ########## {component component_1}"
invoked from within
"set_property core_revision $Revision $core"
(file "run_ippack.tcl" line 1112)
...
ERROR: [IMPL 213-28] Failed to generate IP.
INFO: [HLS 200-111] Finished Command export_design
解决方法
- 默认 Windows 安装位置 C:\Xilinx
- 默认 Linux 安装位置:/opt/Xilinx或/tools/Xilinx
- 注意:在 Windows 上解压此补丁时,请确保目标文件夹不包含 Zip 文件名 ( y2k22_patch-1.2.zip )。例如,如果安装根目录是C:\Xilinx,请确保解压后y2k22_patch文件夹位于C:\Xilinx 下,即:C:\Xilinx\y2k22_patch