You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apologies for the naive question, but how do I run a cycle-accurate Verilator simulation of a simple C program, run it on the VexRisc processor RTL and calculate how many cycles it took to execute and also check functional correctness of the result?
I'm running Ubuntu 18.x. I'm able to build a "full" version of the core and run the IndividualTests. I also built the risc-v gnu toolchain.
I see the RUN_HEX option in a regression test makefile, but I'm a bit unsure how to use it with my own C/C++ example code.
Thanks for your attention.
The text was updated successfully, but these errors were encountered:
It is related to GCC RISC-V which changed their "march=xxxx" definition.
So either you need a old enough GCC version, either you need to update the makefile with -march=rv32im_zicsr if i remember well.
Apologies for the naive question, but how do I run a cycle-accurate Verilator simulation of a simple C program, run it on the VexRisc processor RTL and calculate how many cycles it took to execute and also check functional correctness of the result?
I'm running Ubuntu 18.x. I'm able to build a "full" version of the core and run the IndividualTests. I also built the risc-v gnu toolchain.
I see the RUN_HEX option in a regression test makefile, but I'm a bit unsure how to use it with my own C/C++ example code.
Thanks for your attention.
The text was updated successfully, but these errors were encountered: