cva6 icon indicating copy to clipboard operation
cva6 copied to clipboard

work-ver/Variane_testharness

Open LIUQyou opened this issue 3 years ago • 1 comments

hello,

I encounter a problem when running Variane_testharness, I used the Verilator 4.104 and riscv64-unknown-elf-gcc (GCC) 9.2.0.

I followed the instructions

echo '
#include <stdio.h>

int main(int argc, char const *argv[]) {
    printf("Hello CVA6!\\n");
    return 0;
}' > hello.c
riscv64-unknown-elf-gcc hello.c -o hello.elf

Then

sudo work-ver/Variane_testharness -v hello.vcd $RISCV/riscv64-unknown-elf/bin/pk hello.elf

But it gives no reaction. Then I checked the .vcd file. It shows like below: image it seems always running.

Could you give me some hints on this problem.

Thanks

LIUQyou avatar Jun 17 '21 12:06 LIUQyou

Running it without generating the VCD is long but it does complete:

> work-ver/Variane_testharness $RISCV/riscv64-unknown-elf/bin/pk mysoft/hello.elf
    This emulator compiled with JTAG Remote Bitbang client. To enable, use +jtag_rbb_enable=1.
    Listening on port 39917
    bbl loader
    Hello CVA6!\n/opt/riscv/riscv64-unknown-elf/bin/pk completed after 2633204 cycles
    CPU time used: 267321.67 ms
    Wall clock time passed: 267662.70 ms

so you need to simulate 2.6 million cycles !

sebastien-riou avatar Aug 17 '21 13:08 sebastien-riou

Thanks for your response @sebastien-riou!

Hi @LIUQyou, this issue has not been updated in 1.5 years so I assume your problem has been resolved and will close the issue. If that is not the case, feel free to re-open this issue or create a new one.

MikeOpenHWGroup avatar Feb 17 '23 16:02 MikeOpenHWGroup