赞
踩
c synthesis 没问题,但 c simulation 和 cosimulation 提示编译出错:
WARNING: [COSIM 212-369] AXI_master port 'coef' has a depth of '0'. Insufficient depth may result in simulation mismatch or freeze. Build using "/home/godfly/Xilinx/Vitis_HLS/2020.2/tps/lnx64/gcc-6.2.0/bin/g++" Compiling fir.cpp_pre.cpp.tb.cpp Compiling apatb_fir_wrap.cpp Compiling fir_tb.cpp_pre.cpp.tb.cpp Compiling apatb_fir_wrap_ir.ll Generating cosim.tv.exe e-m:e-i64:64-i128:128-i256:256-i512:512-i1024:1024-i2048:2048-i4096:4096-n8:16:32:64-S128-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024/home/godfly/Xilinx/Vivado/2020.2/tps/lnx64/binutils-2.26/bin/ld: cannot find crt1.o: No such file or directory /home/godfly/Xilinx/Vivado/2020.2/tps/lnx64/binutils-2.26/bin/ld: cannot find crti.o: No such file or directory /home/godfly/Xilinx/Vivado/2020.2/tps/lnx64/binutils-2.26/bin/ld: cannot find -lpthread /home/godfly/Xilinx/Vivado/2020.2/tps/lnx64/binutils-2.26/bin/ld: cannot find -lm collect2: error: ld returned 1 exit status make: *** [Makefile.rules:393: cosim.tv.exe] Error 1 ERROR: [COSIM 212-317] C++ compile error. ERROR: [COSIM 212-321] EXE file generate failed. ERROR: [COSIM 212-331] Aborting co-simulation: C simulation failed, compilation errors. ERROR: [COSIM 212-5] *** C/RTL co-simulation file generation failed. *** ERROR: [COSIM 212-4] *** C/RTL co-simulation finished: FAIL ***
我的解决方案是 export LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:$LIBRARY_PATH
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。