efabless / caravel_user_project

https://caravel-user-project.readthedocs.io
Apache License 2.0
180 stars 330 forks source link

Update Makefile to pip caravel-cocotb #307

Closed M0stafaRady closed 1 year ago

M0stafaRady commented 1 year ago

new version of caravel-cocotb script. It should fix https://github.com/efabless/caravel_user_project/issues/303.

Please delete the branch after merge.

marwaneltoukhy commented 1 year ago

I get this error

caravel_cocotb -tl user_proj_tests/user_proj_tests.yaml
Run tag: run_21_Sep_10_38_56_85 
Start running test:  RTL-counter_la 
     -.--ns INFO     gpi                                ..mbed/gpi_embed.cpp:76   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
/home/marwan/user_project/verilog/dv/cocotb/sim/run_21_Sep_10_38_56_85/RTL-compilation/sim.vvp: Unable to open input file.
Error: Fail to compile the verilog code for more info refer to /home/marwan/user_project/verilog/dv/cocotb/sim/run_21_Sep_10_38_56_85/RTL-compilation/compilation.log
Start running test:  RTL-counter_wb 
     -.--ns INFO     gpi                                ..mbed/gpi_embed.cpp:76   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
/home/marwan/user_project/verilog/dv/cocotb/sim/run_21_Sep_10_38_56_85/RTL-compilation/sim.vvp: Unable to open input file.
Error: Fail to compile the verilog code for more info refer to /home/marwan/user_project/verilog/dv/cocotb/sim/run_21_Sep_10_38_56_85/RTL-compilation/compilation.log
Start running test:  RTL-counter_la_reset 
     -.--ns INFO     gpi                                ..mbed/gpi_embed.cpp:76   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
/home/marwan/user_project/verilog/dv/cocotb/sim/run_21_Sep_10_38_56_85/RTL-compilation/sim.vvp: Unable to open input file.
Error: Fail to compile the verilog code for more info refer to /home/marwan/user_project/verilog/dv/cocotb/sim/run_21_Sep_10_38_56_85/RTL-compilation/compilation.log
Start running test:  RTL-counter_la_clk 
     -.--ns INFO     gpi                                ..mbed/gpi_embed.cpp:76   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
/home/marwan/user_project/verilog/dv/cocotb/sim/run_21_Sep_10_38_56_85/RTL-compilation/sim.vvp: Unable to open input file.
Error: Fail to compile the verilog code for more info refer to /home/marwan/user_project/verilog/dv/cocotb/sim/run_21_Sep_10_38_56_85/RTL-compilation/compilation.log

I attached the compilation log, it has errors in the include. compilation.log

M0stafaRady commented 1 year ago

I'm aware of this error. This pull request should solve it: https://github.com/efabless/caravel/pull/488