Spike failed to execute test examples

295 views
Skip to first unread message

Damien Towning

unread,
Jul 21, 2022, 7:36:04 PM7/21/22
to Chipyard
I have successfully compiled the examples under Chipyard/tests and have also successfully compiled the hello.c given in the baremetal documentation given here : https://chipyard.readthedocs.io/en/latest/Software/Baremetal.html.

However I must be missing an environment variable or something because when I give the compiled test examples to spike I get the following.

Run accum..
*** FAILED *** (tohost = 2)
Run big-blkdev..
*** FAILED *** (tohost = 5)
Run blkdev..
*** FAILED *** (tohost = 5)
Run charcount..
*** FAILED *** (tohost = 2)
Run fft..
*** FAILED *** (tohost = 7)
Run nic-loopback..
Trial 0
*** FAILED *** (tohost = 7)
Run nvdla..
*** FAILED *** (tohost = 7)
Run pingd..
*** FAILED *** (tohost = 5)
Run..
*** FAILED *** (tohost = 7)
Run spiflashread..
Testing SPI flash command 0x13...
*** FAILED *** (tohost = 7)
Run spiflashwrite..
Testing SPI flash command 0x13...
*** FAILED *** (tohost = 7)
Run streaming..
Starting writing 15 inputs
*** FAILED *** (tohost = 7)
Run streaming-passthrough..
Starting writing
*** FAILED *** (tohost = 7)

Do I need to start some sort of server or set other environment variables in env.sh before starting spike? Everything compiles fine. No errors.

Jerry Zhao

unread,
Jul 21, 2022, 11:21:11 PM7/21/22
to chip...@googlegroups.com
Most of those tests test some peripheral device which spike does not model, hence the various errors. 

-Jerry

--
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/6903306b-3b77-45ed-b18c-26807093018en%40googlegroups.com.

Damien Towning

unread,
Jul 22, 2022, 7:00:48 PM7/22/22
to Chipyard
Ah thank you. That makes sense.

Couple more questions before I go hit the docs. 

- Can I at some point going down the spike path get my work out as Verilog?
- Can I define either a basic UART or some sort of GPIO for Spike and bind that to the host as a dev ? 

Thanks ! 

Damien Towning

unread,
Jul 25, 2022, 10:51:01 PM7/25/22
to Chipyard
After several days of tinkering with Spike I now want to ask what is the correct way to execute those test examples? I cannot seem to find it documented anywhere. 

Jerry Zhao

unread,
Jul 26, 2022, 9:06:16 PM7/26/22
to chip...@googlegroups.com
You have to build the corresponding SoC that supports whatever peripheral/accelerator that test is targeting, and run the binary on the RTL simulator of that SoC.
RocketConfigs.scala lists a bunch of SoCs, some of those probably correspond to the C tests.

-Jerry

Reply all
Reply to author
Forward
0 new messages