vivado [XSIM 43-3409]Failed to compile generated C file [XSIM 43-3225] Cannot find design unit

vivado 报错
[XSIM 43-3409]Failed to compile generated C file
[XSIM 43-3225] Cannot find design unit

进一步

xelab  -top tb -snapshot tb -v 2

top 顶层名字 -snapshot 仿真项目命名(可随意)-v verbose level 0-2 默认0

error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
ERROR: [XSIM 43-3409] Failed to compile generated C file xsim.dir/adder_tb_snapshot/obj/xsim_1.c.

提示缺少libncurses.so.5
arch 有个.6

$sudo ln -s /usr/lib/libncurses.so  /usr/lib/libncurses.so.5

提示too short

$sudo cp /usr/lib/libncurses.so  /usr/lib/libncurses.so.5

也不行,看来只认5

$ find /opt/Xilinx -iname "libncurses.so*"
/opt/Xilinx/Vivado_HLS/2017.2/lnx64/tools/gdb_v7_2/libncurses.so.5

临时解决。

 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/Xilinx/Vivado_HLS/2017.2/lnx64/tools/gdb_v7_2

arch 的aur里有个ncurses5-compat-libs包编译安装下。
ubuntu debian 有个libncurses5安装下。

另附其它解决方法, 供参考。

1,Create a custom project file and run simulation from the command line.

2,Check the hierarchy update mode in the Sources window.
Ensure it is set to "Automatic Update and Compile Order".

3,Check the testbench file properties and ensure the Used In property includes Simulation.
Try removing and re-adding the source to see if it makes any difference.

你可能感兴趣的:(linux,运维,服务器)