使用Vivado HLS 18.3生成IP时报这个错误:
ad lexical cast: source type value could not be interpreted as target while executing "rdi::set_property core_revision 2506251703 {component component_1}" invoked from within "set_property core_revision $Revision $core" (file "run_ippack.tcl" line 805) INFO: [Common 17-206] Exiting Vivado at Wed Jun 25 17:03:58 2025... ERROR: [IMPL 213-28] Failed to generate IP. command 'ap_source' returned error code
最终的解决方案参考:
2022年Vivado HLS导出IP报错 - JebediahKerman - 博客园
产生此错误的原因是当未指定IP核版本号的revision时,HLS自动将当前日期和时间作为revision,而在2022年,这个数字溢出了int的表示范围。解决方法:在Export RTL对话框中选择Configuration,将version从1.0修改为1.0.0或其他,即指定一个revision,从而避免使用HLS默认的revision。