ucb-bar / riscv-mini

Simple RISC-V 3-stage Pipeline in Chisel
Other
538 stars 110 forks source link

Running simulation with other programs? #3

Closed hauhsu closed 6 years ago

hauhsu commented 7 years ago

I saw that the provided tests run the existing hex files. How can I run my own programs on this platform? I tried to compile and transfer the vvadd program in riscv-tests to hex file, then replace the vvadd.riscv.hex in src/test/resources. But the test fails:

CoreTests.scala:61 assert(cycle < maxcycles.U)

Can you provide complete building steps? Thanks!

donggyukim commented 7 years ago

We should use a very old version of riscv-tools. Let me add the tool hash in the repo.