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

VerilatorTB problem #36

Open
togetherwhenyouwant opened this issue Mar 20, 2022 · 1 comment
Open

VerilatorTB problem #36

togetherwhenyouwant opened this issue Mar 20, 2022 · 1 comment

Comments

@togetherwhenyouwant
Copy link

togetherwhenyouwant commented Mar 20, 2022

when i run this command:
make -f $RV_ROOT/tools/Makefile target=default_mt

only get:
VerilatorTB: Start of sim

----------------------------------------
Hello World from SweRV EH2 hart0 @WDC !!
----------------------------------------
TEST_PASSED

Finished hart0 : minstret = 524, mcycle = 1492
Finished hart1 : minstret = 1227, mcycle = 1424
See "exec.log" for execution trace with register updates..

- /home/lyj/Cores-SweRV-EH2-master/testbench/tb_top.sv:337: Verilog $finish

VerilatorTB: End of sim

but not get:

VerilatorTB: Start of sim

----------------------------------------
Hello World from SweRV EH2 hart0 @WDC !!
----------------------------------------
----------------------------------------
Hello World from SweRV EH2 hart1 @WDC !!
----------------------------------------
TEST_PASSED

Finished hart0 : minstret = 1158, mcycle = 2895
Finished hart1 : minstret = 1733, mcycle = 2822
See "exec.log" for execution trace with register updates..

the system run out when exec to this line:
4f88082c7edfa039359002404923c64

@agrobman
Copy link

Just ran it:

./obj_dir/Vtb_top 

VerilatorTB: Start of sim

----------------------------------------
Hello World from SweRV EH2 hart0 @WDC !!
----------------------------------------
----------------------------------------
Hello World from SweRV EH2 hart1 @WDC !!
----------------------------------------
TEST_PASSED

Finished hart0 : minstret = 1164, mcycle = 2913
Finished hart1 : minstret = 1735, mcycle = 2845
See "exec.log" for execution trace with register updates..

You probably have no RISCV tools installed and the make runs simulation with precompiled hex files.

try following commands:

rm *.hex
make -f $RV_ROOT/tools/Makefile target=default_mt verilator TEST=hello_world_mt GCC_PREFIX=kuku

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