OpenCores
no use no use 1/1 no use no use
can't make vlt-tests
by aikudo on Mar 26, 2011
aikudo
Posts: 3
Joined: Sep 7, 2008
Last seen: Nov 30, 2011
Hi,
I followed the instruction from the web to build the toolchains and orpsoc.pdf. Each of the of make checks for each of the tools are okay. I could run regression test "make rtl-test" but I can not do make "vlt-tests".


linh@digital:~/or1k/orpsocv2/sim/run$ make vlt-tests
make[1]: Entering directory `/home/linh/or1k/orpsocv2/sim/run'
make[2]: Entering directory `/home/linh/or1k/orpsocv2/sw/lib'
make[2]: Nothing to be done for `processed-verilog-headers'.
make[2]: Leaving directory `/home/linh/or1k/orpsocv2/sw/lib'

Compiling main design

make[2]: Entering directory `/home/linh/or1k/orpsocv2/sim/vlt'
make[2]: *** No rule to make target `verilator_bin', needed by `Vorpsoc_top__ver.d'. Stop.
make[2]: Leaving directory `/home/linh/or1k/orpsocv2/sim/vlt'
make[1]: *** [/home/linh/or1k/orpsocv2/sim/run/../../sim/vlt/Vorpsoc_top__ALL.a] Error 2
make[1]: Leaving directory `/home/linh/or1k/orpsocv2/sim/run'


Why does it need to make verilator_bin? I already have it installed in /usr/local/bin/verilator_bin. Should there be a Makefile in sim/vlt directory? Thanks.
RE: can't make vlt-tests
by aikudo on Mar 26, 2011
aikudo
Posts: 3
Joined: Sep 7, 2008
Last seen: Nov 30, 2011
I made a manual symbolic link "ln -s /usr/local/bin/verilator_bin" which I guess is probably incorrect. Reran the "make vlt-tests" and get lots of missing files.


make[2]: Entering directory `/home/linh/or1k/orpsocv2/sim/vlt'
/usr/bin/perl /usr/local/share/verilator/bin/verilator_includer Vorpsoc_top.cpp Vorpsoc_top_orpsoc_top.cpp Vorpsoc_top_ram_wb__A20_D20_M800000_MB17.cpp Vorpsoc_top_or1200_top.cpp Vorpsoc_top_ram_wb_b3__pi3.cpp Vorpsoc_top_or1200_cpu.cpp Vorpsoc_top_or1200_except.cpp Vorpsoc_top_or1200_ctrl.cpp Vorpsoc_top_or1200_rf.cpp Vorpsoc_top_or1200_sprs.cpp Vorpsoc_top_or1200_dpram.cpp > Vorpsoc_top__ALLcls.cpp
g++ -I. -MMD -I/usr/local/share/verilator/include -I/usr/local/share/verilator/include/vltstd -DVL_PRINTF=printf -DVM_TRACE=1 -DVM_COVERAGE=0 -fprofile-use -Wcoverage-mismatch -O3 -I/home/linh/soft/systemc-2.2.0/include -c -o Vorpsoc_top__ALLcls.o Vorpsoc_top__ALLcls.cpp
In file included from Vorpsoc_top__ALLcls.cpp:12:
Vorpsoc_top_or1200_dpram.cpp: In function �int pthread_equal(pthread_t, pthread_t)�:
Vorpsoc_top_or1200_dpram.cpp:213: note: file /home/linh/or1k/orpsocv2/sim/vlt/Vorpsoc_top__ALLcls.gcda not found, execution counts estimated

RE: can't make vlt-tests
by aikudo on Mar 26, 2011
aikudo
Posts: 3
Joined: Sep 7, 2008
Last seen: Nov 30, 2011
Scratch that. Actually I forgot to set the path for "export VERILATOR_ROOT=/path/to/verilator_kit".

RE: can't make vlt-tests
by czzheng on Aug 22, 2011
czzheng
Posts: 13
Joined: Jul 28, 2011
Last seen: Aug 17, 2025
Scratch that. Actually I forgot to set the path for "export VERILATOR_ROOT=/path/to/verilator_kit".


HI,i installed verilator in /tools/openrisc/verilator, but i can only see bin and share directory, but no include directory. is that right? or i had done something wrong or miss something? when i use make prepare-vlt command in orpsoc project, it reported: ../include/verilated.mk: no such file or directory

i find that there is share/verilator/include directory, so i linked it to verilator root directoy, then re-run it. the error message above gone, but a new error come. No rule to make target verilator_bin: needed by Vorpsoc_top_ver.d

i have add verilator install directory to PATH, i have tried to set and unset VERILATOR_ROOT variable, the result are the same. what else i can do to move this forward?

thanks !
RE: can't make vlt-tests
by stekern on Aug 28, 2011
stekern
Posts: 84
Joined: Apr 28, 2009
Last seen: Nov 10, 2016
I experienced the same problem,
I got it solved by removing the verilator installed by my distribution (Ubuntu 11.04)
and installing the version from the git repo as described here:
http://opencores.org/or1k/ORPSoC#Cycle-accurate_simulator
no use no use 1/1 no use no use
© copyright 1999-2026 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.