make fails on CV32E40X
Created by: aanujdu
I am trying to run make for the CV32E40X core (referred to as X core from hereon), however, the command fails with the following error.
make[2]: Leaving directory '/home/aanujdu/core_v_verif/cv32e40x/sim/core/cobj_dir'
cp cobj_dir/Vtb_top_verilator testbench_verilator
mkdir -p
mkdir: missing operand
Try 'mkdir --help' for more information.
/home/aanujdu/core_v_verif/mk/Common.mk:485: recipe for target '/hello-world/hello-world.elf' failed
make[1]: *** [/hello-world/hello-world.elf] Error 1
make[1]: Leaving directory '/home/aanujdu/core_v_verif/cv32e40x/sim/core'
Makefile:454: recipe for target 'sanity-veri-run' failed
make: *** [sanity-veri-run] Error 2
Steps to Reproduce
git clone https://github.com/openhwgroup/core-v-verif.git
cd cv32e40x/sim/core
make
The commit hash is 760ecd30 The codebase should be quite similar (or even the same) to the very recent master branch because I cloned it yesterday.
Additional context
I was able to get past the issue by adopting the simulation directory structure of the Makefile used for CV32E40P, but I am not sure why the originally written Makefile for the X core fails at the mkdir command. The variable VERI_LOG_DIR stays unresolved during Makefile execution which leads to this issue.
However, even after getting past this issue, the simulation hangs at the following message.
[tb_top_verilator] finished dumping memory
I can get past that too by specifying the maxcycles to simulate for in the testbench but I would like to know what is the right approach here.
I do not suspect any issues with my environment (packages, tools, etc.) because the simulation succeeds on the CV32E40P core.
Readme of X core.
I notice that the README for X core specifies making the following target for verilator simulation. hello-world-veri-run
But that target does not exist in the Makefile.