Trouble running verilator executable on self-generated code

350 views
Skip to first unread message

Benjamin Ou

unread,
Jul 6, 2021, 5:59:26 PM7/6/21
to Chipyard
Following the instructions under Section 2.1.4, I'm able to successfully generate the default simulator-chipyard-RocketConfig executable, and the followup "make run-asm-tests" and "make run-bmark-tests" commends work fine.

I've also made a simple Hello World with the riscv64-unknown-elf-gcc compiler, and verified it works with spike - running "spike pk riscv-hello" produces:

>bbl loader
>Hello world!

However, if I try to run " ./simulator-chipyard-RocketConfig riscv_hello", I get this:

>This emulator compiled with JTAG Remote Bitbang client. To enable, use +jtag_rbb_enable=1.
>Listening on port 43133
>[UART] UART0 is here (stdin/stdout).
>warning: tohost and fromhost symbols not in ELF; can't communicate with target

On which it hangs forever. And if I try " ./simulator-chipyard-RocketConfig pk riscv_hello", I get:

>This emulator compiled with JTAG Remote Bitbang client. To enable, use +jtag_rbb_enable=1.
>Listening on port 35301
>[UART] UART0 is here (stdin/stdout).

Which is similar to what happens if I run the example binary at $RISCV/riscv64-unknown-elf/share/riscv-tests/isa/rv64ui-p-simple through the simulator executable, but instead of completing and exiting silently, the process hangs forever at the "[UART]" line.

Alon Amid

unread,
Jul 13, 2021, 9:18:07 PM7/13/21
to chip...@googlegroups.com

How are you compiling you hello world program? Seems like you are trying to run a baremetal program.

Have you followed this page of the documentation? https://chipyard.readthedocs.io/en/latest/Software/Baremetal.html

 

Alon

--
You received this message because you are subscribed to the Google Groups "Chipyard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chipyard+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/chipyard/25c1ec85-2b3f-4b5d-9ab7-4f16940fe352n%40googlegroups.com.

Benjamin Ou

unread,
Aug 10, 2021, 5:06:14 PM8/10/21
to Chipyard
That worked perfectly. Thanks!
Reply all
Reply to author
Forward
0 new messages