Verilator Error

59 views
Skip to first unread message

Zuhair Ansari

unread,
Aug 2, 2024, 7:41:42 PM8/2/24
to OpenPiton Discussion
Hello,
I am trying to run  this line of code to test verilator,

sims -sys=manycore -x_tiles=1 -y_tiles=1 -vlt_build

But I keep receiving this error,
sims: make -j -C /home/legand/openpiton/build/manycore/rel-0.1/obj_dir -f Vcmp_top.mk Vcmp_top
make: Entering directory '/home/legand/openpiton/build/manycore/rel-0.1/obj_dir'
Vcmp_top.mk:65: /usr/local//include/verilated.mk: No such file or directory
make: *** No rule to make target '/usr/local//include/verilated.mk'.  Stop.
make: Leaving directory '/home/legand/openpiton/build/manycore/rel-0.1/obj_dir'
sims: Caught a SIGDIE. failed building model at /home/legand/openpiton/piton/tools/src/sims/sims,2.0 line 1582.

I would really appreciate any kind of assistance, thank you.
The sims.log file is attached.

sims.log

Jonathan Balkind

unread,
Aug 5, 2024, 12:58:34 PM8/5/24
to OpenPiton Discussion
I'm not immediately sure what's causing this error but when I've seen similar ones I usually try to delete my build/manycore/rel-0.1/obj_dir/ directory. Maybe try that and see if it helps? Sometimes if you change verilator version for example this kind of thing can come up.

Thanks,
Jon

--
You received this message because you are subscribed to the Google Groups "OpenPiton Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openpiton+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/openpiton/a7b9a7c1-672d-4519-ab39-cfb860586e23n%40googlegroups.com.

Zuhair Ansari

unread,
Aug 5, 2024, 2:59:23 PM8/5/24
to OpenPiton Discussion
I tried deleting it, but it still wasn't working, so I solved this issue by essentially giving the script the file it was looking for, which the verilated.mk file, by manually moving it to the required folder.
So essentially all the required libraries were stored in /usr/local/share/verilator/include and the script was searching in/usr/local/include, therefore I just moved the files.
I did try and change the script which did work but because I am quite new to linux I don't really know how to run the already existing build file and so whenever I ran the line:


sims -sys=manycore -x_tiles=1 -y_tiles=1 -vlt_build

it would just create a new a build file which would undo any changes I made which is why I opted with my solution.

PS: I made changes to the Vcmp_top.mk file located in  build/manycore/rel-0.1/obj_dir for anyone wondering

SIncerely,
Zuhair Ansari

Guillem López Paradís

unread,
Sep 10, 2024, 2:17:26 PM9/10/24
to OpenPiton Discussion
Hi Zuhair,
I think this error could be related to a bad Verilator installation or wrong configuration of the Verilator variables (pointing to different/wrong paths). Double check how to install it, my default is building it from sources explained in 1. Run-in-Place from VERILATOR_ROOT  at https://verilator.org/guide/latest/install.html
Regards,
Guillem
Reply all
Reply to author
Forward
0 new messages