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

Traces with verilate. Verilate the design is OK but Run the tests faild. #278

Closed
llhe110 opened this issue Dec 18, 2023 · 2 comments
Closed

Comments

@llhe110
Copy link

llhe110 commented Dec 18, 2023

Dear all,
When I run the following command, an error occurs.

cd hardware
make apply-patches
# Verilate the design
make verilate trace=1
# Run the tests
app=hello_world make simv trace=1

(1) 'make verilate trace=1' is OK
(2) 'app=hello_world make simv trace=1' failed.

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:/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:/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 552e
make: *** [Makefile:232: simv]

The solution I see so far is to change the optimization option to -O0.
There will definitely be no errors,But it runs very slowly.

Do you have any good solutions while maintaining the original optimization options -O3?

@quswarabid
Copy link

Addressed here!

@llhe110
Copy link
Author

llhe110 commented Dec 19, 2023

@quswarabid
Yes,It is work.

It should delete below option when use verilate v4.214.

-Wno-ENUMVALUE

@llhe110 llhe110 closed this as completed Dec 19, 2023
@llhe110 llhe110 changed the title Traces with verilate. The optimization options are O3, Verilate the design is OK but Run the tests faild Traces with verilate. Verilate the design is OK but Run the tests faild. Dec 19, 2023
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

2 participants