使用vivado2018.2版本调用modelsim仿真,其中工程的仿真为系统级仿真,PL侧包含整个系统工程的所有逻辑代码以及对PS侧的system配置(bd)。在配置好仿真环境以后,通过vivado调用modelsim时,出现了以下报错:
# ** Error: ../../../../ZC702.srcs/sources_1/bd/system/ipshared/03a9/hdl/axi_protocol_checker_v2_0_vl_rfs.sv(5554): (vlog-13006) Could not find the package (sc_util_v1_0_3_pkg). Design read will continue, but expect a cascade of errors after this failure. Furthermore if you experience a vopt-7 error immediately before this error then please check the package names or the library search paths on the command line.
# -- Skipping module axi_protocol_checker_v2_0_3_top
# End time: 09:53:31 on Jul 28,2021, Elapsed time: 0:00:00
# Errors: 1, Warnings: 1
# child process exited abnormally
# Error in macro ./BASEBAND_tb_compile.do line 103
…………
# ** Error: ../../../../ZC702.srcs/sources_1/bd/system/ipshared/03a9/hdl/axi_protocol_checker_v2_0_vl_rfs.sv(5554): (vlog-13006) Could not find the package (sc_util_v1_0_3_pkg). Design read will continue, but expect a cascade of errors after this failure. Furthermore if you experience a vopt-7 error immediately before this error then please check the package names or the library search paths on the command line.
# -- Skipping module axi_protocol_checker_v2_0_3_top
# End time: 09:53:31 on Jul 28,2021, Elapsed time: 0:00:00
# Errors: 1, Warnings: 1
报错显示在axi_protocol_checker_v2_0_vl_rfs.sv中没有找到sc_util_v1_0_3_pkg这个package,这个问题可能和vivado版本有关(vivado2018.2在这个问题上可能有bug),在升级版本后得到了解决。通过将整个工程升级到2018.3版本后,没有了以上报错,可以顺利调用modelsim仿真。
注:在使用vivado调用modelsim时,可以随时查看Tcl Console窗口中的信息,根据提示的信息做针对性的修改。