openhwgroup / cva6

The CORE-V CVA6 is an Application class 6-stage RISC-V CPU capable of booting Linux
https://docs.openhwgroup.org/projects/cva6-user-manual/
Other
2.29k stars 691 forks source link

work-ver/Variane_testharness Fail! #902

Closed FranDuqueAyachi closed 1 year ago

FranDuqueAyachi commented 2 years ago

I have already make the command: make verilate DEBUG=1 succesfully to support vcd files. But when I try to make any test from Variane_testharness as :

run a bare metal test to generate a VCD waveform: work-ver/Variane_testharness -v rv64ui-p-add.vcd $RISCV/riscv64-unknown-elf/share/riscv-tests/isa/rv64ui-p-add

it actually generate the rv64ui-p-add.vcd file but it is empty because I cant not open it on Questasim when I try to convert it from vcd to wlf file and also the terminal show me the next error:

Listening on port 38713 Variane_testharness: ../fesvr/elfloader.cc:23: std::map<std::__cxx11::basic_string, long unsigned int> load_elf(const char, memif_t, reg_t*): Assertion `fd != -1' failed.

I have my RISCV variable correctly pointing into the same directory I put on the command.

But when I execute using pk with the comand: work-ver/Variane_testharness $RISCV/riscv64-unknown-elf/bin/pk hello.elf everything works fine... Any help? thank you so much!

FranDuqueAyachi commented 2 years ago

I have already make the command: make verilate DEBUG=1 succesfully to support vcd files. But when I try to make any test from Variane_testharness as :

run a bare metal test to generate a VCD waveform: work-ver/Variane_testharness -v rv64ui-p-add.vcd $RISCV/riscv64-unknown-elf/share/riscv-tests/isa/rv64ui-p-add

it actually generate the rv64ui-p-add.vcd file but it is empty because I cant not open it on Questasim when I try to convert it from vcd to wlf file and also the terminal show me the next error:

Listening on port 38713 Variane_testharness: ../fesvr/elfloader.cc:23: std::map<std::__cxx11::basic_string, long unsigned int> load_elf(const char, memif_t, reg_t*): Assertion `fd != -1' failed.

I have my RISCV variable correctly pointing into the same directory I put on the command.

But when I execute using pk with the comand: work-ver/Variane_testharness $RISCV/riscv64-unknown-elf/bin/pk hello.elf everything works fine... Any help? thank you so much!

I have found that if I try it directly with the Makefile using the command: make run-asm-tests-verilator it actually works because the paths that it use isnt the same than: $RISCV/riscv64-unknown-elf/share/riscv-tests/isa/rv64ui-p-add instead of that path the command make run-asm-tests-verilator use the path: tmp/riscv-tests/build/isa//rv64ui-p-add

MikeOpenHWGroup commented 1 year ago

Hi @FranDuqueAyachi, I think your issue is resolved, so I am closing this issue. Feel free to open a new issue if need be.

Thanks!