Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing to generate wavefrom #197

Open
StyleDiablo opened this issue Dec 21, 2022 · 8 comments
Open

Failing to generate wavefrom #197

StyleDiablo opened this issue Dec 21, 2022 · 8 comments

Comments

@StyleDiablo
Copy link

The problem i am experiencing is that everytime I compile the hardware with the command trace=1 to generate waveform traces the program compiles but after that when I run the simulation with a random binary loaded the program crashes with the message make: *** [Makefile:208: simv] Segmentation fault (core dumped) . If I dont use the trace=1 the program runs fine. I also have a problem generating the vector trace. I am not sure what exact command am i supposed to use. The insrtuctions say to compile a program like this make bin/${program}.ideal but I cant figure out what the "{program}" is supposed to be. Is it a binary like rv64uv-ara-vxor or something else?
Can anyone please help with these problems?
Thank you.

@mp-17
Copy link
Collaborator

mp-17 commented Feb 13, 2023

Hello @StyleDiablo, also other users reported a similar problem. What we saw is that the version of Verilator can be determinant. Which version are you using now, the default one of the repo? Have you already tried to compile the latest verilator version? I will try as well and let you know!

Best,
Matteo

@A-Eren
Copy link

A-Eren commented Aug 17, 2023

Have same problem with Verilator 4.214 2021-10-17 rev v4.214

@mp-17
Copy link
Collaborator

mp-17 commented Aug 18, 2023

I will soon bump Verilator to version 5, this should solve the problem.

If you want to go ahead and try, here's the commit (you will need help2man to install it):
384dbb3

@mp-17
Copy link
Collaborator

mp-17 commented Sep 12, 2023

We merged the commit with Verilator 5 in main.
Any luck with it?

@quswarabid
Copy link

Encountering the similar problem on latest ARA:main

Got advised to change the optimization flag and it fixes the problem but now the simulation is taking forever to finish (Related Issue #260)

@quswarabid
Copy link

quswarabid commented Dec 8, 2023

I found this update of no good use. I bumped the verilator version back to v4.214 and it worked out for me.

@llhe110
Copy link

llhe110 commented Dec 18, 2023

Dear @StyleDiablo,
I also encountered this problem, how do you deal with it now?

llhe@llhe-virtual-machine:~/rscratch/workspace/ara/ara/hardware$ app=hello_world make simv trace=1
Makefile:84: "Specified QuestaSim version (questa-2021.2) not found in PATH /home/llhe/rscratch/cadtools/QuestaSim2021.2.1Linux/install/questasim/RUVM_2021.2:/home/llhe/rscratch/cadtools/QuestaSim2021.2.1Linux/install/questasim/linux_x86_64:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/llhe/rscratch/cadtools/interlijIDEA/idea-IC-232.10227.8/bin"
build/verilator/Vara_tb_verilator -t -l ram,/home/llhe/rscratch/workspace/ara/ara/apps/bin/hello_world,elf
Program header number 0 in `/home/llhe/rscratch/workspace/ara/ara/apps/bin/hello_world' low is 80000000
Program header number 0 in `/home/llhe/rscratch/workspace/ara/ara/apps/bin/hello_world' high is 80000fbd
Program header number 1 in `/home/llhe/rscratch/workspace/ara/ara/apps/bin/hello_world' high is 8000139f
Program header number 2 in `/home/llhe/rscratch/workspace/ara/ara/apps/bin/hello_world' high is 800013c7
Program header number 3 in `/home/llhe/rscratch/workspace/ara/ara/apps/bin/hello_world' is not of type PT_LOAD; ignoring.
Set `ram TOP.ara_tb_verilator.dut.i_ara_soc.i_dram 10 0x80000000 0x100000 write with offset: 0x0 write with size: 0x13c8
Simulation of Ara
=================

Tracing can be toggled by sending SIGUSR1 to this process:
$ kill -USR1 15d8
make: *** [Makefile:232: simv]

@quswarabid
Copy link

@llhe110 I bumped the verilator version back to v4.214 and it worked out for me. To do that, edit VERIL_VERSION in ara/Makefile. Then run make verilator in ara/ to build verilator, and make clean && make verilate trace=1 in ara/hardware again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants