0

尝试制作 endian_swapper 示例代码时,我收到以下错误消息。我正在使用 Ubuntu 19.10。

任何帮助表示赞赏。

谢谢。

make SIM=ghdl TOPLEVEL_LANG=vhdl
make results.xml
make[1]: Entering directory '/home/user/Tools/cocotb-master/examples/endian_swapper/tests'
cd ../cosim && make
make[2]: Entering directory '/home/user/Tools/cocotb-master/examples/endian_swapper/cosim'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/user/Tools/cocotb-master/examples/endian_swapper/cosim'
cd sim_build && \
 \
/usr/bin/ghdl -i    --work=work /home/user/Tools/cocotb-master/examples/endian_swapper/tests/../hdl/endian_swapper.vhdl && \
/usr/bin/ghdl -m    --work=work endian_swapper_vhdl
MODULE=test_endian_swapper,test_endian_swapper_hal \
        TESTCASE= TOPLEVEL=endian_swapper_vhdl TOPLEVEL_LANG=vhdl COCOTB_SIM=1 \
/usr/bin/ghdl -r   --workdir=sim_build --work=work endian_swapper_vhdl --vpi=/home/user/Tools/cocotb-master/cocotb/libs/libcocotbvpi_ghdl.so  
loading VPI module '/home/user/Tools/cocotb-master/cocotb/libs/libcocotbvpi_ghdl.so'
libcocotbutils.so: cannot open shared object file: No such file or directory
/usr/bin/ghdl-mcode:error: cannot load VPI module
make[1]: *** [/home/user/Tools/cocotb-master/cocotb/share/makefiles/simulators/Makefile.ghdl:69: results.xml] Error 1
make[1]: Leaving directory '/home/user/Tools/cocotb-master/examples/endian_swapper/tests'
make: *** [/home/user/Tools/cocotb-master/cocotb/share/makefiles/Makefile.sim:151: sim] Error 2

所有 *.so 文件似乎都存在

user@Computer:~/Tools/cocotb-master/cocotb/libs$ ls
libcocotb.so            libcocotbvhpi_ius.so   libcocotbvpi_icarus.vpl   libcocotbvpi_vcs.so        libgpi.so
libcocotbutils.so       libcocotbvpi_aldec.so  libcocotbvpi_ius.so       libcocotbvpi_verilator.so
libcocotbvhpi_aldec.so  libcocotbvpi_ghdl.so   libcocotbvpi_modelsim.so  libgpilog.so
4

1 回答 1

1

cocotb 中有一个错误,现在应该修复。请参阅https://github.com/cocotb/cocotb/pull/1606

于 2020-04-17T21:37:58.657 回答