alexforencich / verilog-axi

Verilog AXI components for FPGA implementation
MIT License
1.49k stars 447 forks source link

tb simulation failed #45

Open nashsrg opened 1 year ago

nashsrg commented 1 year ago

I am getting following error during test bench execution

make -C axi_ram/. all
make[1]: Entering directory '/hdd2/verilog-axi/tb/axi_ram'
rm -f results.xml
make -f Makefile results.xml
make[2]: Entering directory '/hdd2/verilog-axi/tb/axi_ram'
rm -f results.xml
MODULE=test_axi_ram TESTCASE= TOPLEVEL=axi_ram TOPLEVEL_LANG=verilog \
         /usr/bin/vvp -M /home/apisal/.local/lib/python3.6/site-packages/cocotb/libs -m libcocotbvpi_icarus   sim_build/sim.vvp -fst
     -.--ns INFO     gpi                                ..mbed/gpi_embed.cpp:78   in set_program_name_in_venv        Did not detect Python virtual environment. Using system-wide Python interpreter
     -.--ns INFO     gpi                                ../gpi/GpiCommon.cpp:101  in gpi_print_registered_impl       VPI registered
     0.00ns INFO     cocotb                             Running on Icarus Verilog version 10.1 (stable)
     0.00ns INFO     cocotb                             Running tests with cocotb v1.7.2 from /home/apisal/.local/lib/python3.6/site-packages/cocotb
     0.00ns INFO     cocotb                             Seeding Python random module with 1677128929
     0.00ns CRITICAL cocotb.regression                  Failed to import module test_axi_ram: No module named 'cocotb._vendor.find_libpython'
     0.00ns INFO     cocotb.regression                  MODULE variable was "test_axi_ram"
     0.00ns INFO     cocotb.regression                  Traceback: 
     0.00ns INFO     cocotb.regression                  Traceback (most recent call last):
                                                          File "/home/apisal/.local/lib/python3.6/site-packages/cocotb/regression.py", line 189, in _discover_tests
                                                            module = _my_import(module_name)
                                                          File "/home/apisal/.local/lib/python3.6/site-packages/cocotb/regression.py", line 72, in _my_import
                                                            mod = __import__(name)
                                                          File "/home/apisal/.local/lib/python3.6/site-packages/_pytest/assertion/rewrite.py", line 171, in exec_module
                                                            exec(co, module.__dict__)
                                                          File "/hdd2/verilog-axi/tb/axi_ram/test_axi_ram.py", line 30, in <module>
                                                            import cocotb_test.simulator
                                                          File "/home/apisal/.local/lib/python3.6/site-packages/_pytest/assertion/rewrite.py", line 171, in exec_module
                                                            exec(co, module.__dict__)
                                                          File "/home/apisal/.local/lib/python3.6/site-packages/cocotb_test/simulator.py", line 13, in <module>
                                                            import cocotb._vendor.find_libpython as find_libpython
                                                        ModuleNotFoundError: No module named 'cocotb._vendor.find_libpython'

     0.00ns ERROR    gpi                                Passing event to upper layer failed
/home/apisal/.local/lib/python3.6/site-packages/cocotb/share/makefiles/simulators/Makefile.icarus:75: recipe for target 'results.xml' failed
make[2]: Leaving directory '/hdd2/verilog-axi/tb/axi_ram'
/home/apisal/.local/lib/python3.6/site-packages/cocotb/share/makefiles/Makefile.inc:39: recipe for target 'sim' failed
make[1]: Leaving directory '/hdd2/verilog-axi/tb/axi_ram'
Makefile:27: recipe for target 'axi_ram/.' failed
alexforencich commented 1 year ago

This was some sort of an issue with cocotb-test and cocotb. Please make sure you're using the latest versions of both of these packages.

alexforencich commented 1 year ago

specifically it looks like you're running in to this issue: https://github.com/themperek/cocotb-test/issues/207