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
Stuck at the complie flow make riscv_tests_simv
#61
Comments
Hi @fantasysee, That is weird indeed, simulation usually takes no more than 2min. And, as you can see in the CI, we can simulate this From what you report, I think an exception happened. If the core reaches an illegal exception, it enters a spinlock phase, and does not leave it (we should probably fix this). Can you attach the Matheus |
Hi Matheus @suehtamacv, Thank you very much for your warm reply. I compile the binary following the
The links of Thanks again!!! Best Regards, |
Hi Chao, I just compared your binary with the one I have on my machine, and while there were a few differences in the addresses, they are not significant. I then tried to run a simulation of your binary with a freshly-compiled verilator model, and it worked without issues. I guess the problem is in your Verilator model, then. Are you sure you are using the version of Verilator version shipped with this repo? (I guess you should, based on your list of commands, but just checking). Did Verilator compile successfully? Did you get any warnings compiling Verilator, or the Verilator model of Ara? Which version of LLVM did you use to compile both of them? Matheus |
Thank you, Matheus. Based on your helpful advice and the fact that my binary file combined with your freshly-compiled Verilator model worked without issues, I guess there is something mismatched in my hardware toolchain. I double-checked the version of Verilator and the version of LLVM at first. The version of compiled Verilator is The LLVM version is However, an error is thrown following the command
At the same time, the called Questasim throws an error in its GUI, thereby failing to continue the compile flow.
Finally, I locate my issue on the version of QuestaSim and realize what the problem is. I feel very sorry for the occupation of your valuable time. I think it would be better if I declare the compile environment in advance before I seek help. I would then try to find a Ubuntu OS machine instead of a virtual machine like I sincerely appreciate your response. Best Regards, |
Hi, Matheus. I just succeeded to run the simulation of the RISC-V unit tests, while the simulation unexpectedly stops at the I checked And then I checked the process to build the unit tests for the vector instructions. The command I use to build the riscv_tests is
The LLVM version is What may be the problem to trigger the segmentation fault? === Your helpful advice and the CI help me a lot. Thank you very much!!! Regards, |
Hi, Matheus. I'm glad to tell you that I just succeeded to simulate all the unit tests. I checked the CI several times, and confirmed that unit tests of these instructions can be compiled. And I found that the LLVM compiled on It's a little bit strange to me. There must be something different when compiling I check the version of gcc to compile The solution is simple: upgrade the gcc to version I sincerely appreciate your help. Thank you very much!!! Best regards, |
Hi @fantasysee, That sounds like a very complex bug. So it boils down to the LLVM compiled with on Thanks for letting me know of this bug, |
Hi, @mp-17 @suehtamacv
When I try to
make riscv_tests_simv
according to the README file, my terminal has been stuck with no message update for a long while, about a few hours.And I checked the message in the
build/rv64uv-ara-vadd.trace
file for several times, which is listed as below. It remains the same for a long while as well.Note that, my QuestaSim version is
Mentor Graphics QuestaSim 10.6c
instead ofMentor Graphics QuestaSim 2020.1
. And I merely make a fake version soft link to2020.1
, with no modification in thehardware/Makefile
.Is this experimental phenomenon normal? If yes, could you please tell me how long this process approximately lasts? If no, would you please help me check if there is something wrong with my experimental environment?
Thanks in advance!!!
The text was updated successfully, but these errors were encountered: