-
Notifications
You must be signed in to change notification settings - Fork 723
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
to get VCD file #1084
Comments
I've been running |
hi @sifferman, I tried the command you supply, and it seems to be useful. However, it showed error after running for a while. cd work-ver && make -j -f Variane_testharness.mk Do you know what's wrong with it? Besieds, I found this problem has been proposed by #1021, but I'm not sure of the detailed steps to set $VERILATOR_ROOT variable as mentioned in the issue. Do you have any advice? |
It's definitely an issue with Follow these steps:
|
@sifferman ,it can work well, thank you very much! After that, I ran I am not sure which version of Verilator is being used now - the one under /home/aislab42190/verilator_tool/ or the one under /cva6/tmp/? If I delete the cva6 directory and git clone a new one, can I still use the Verilator under /home/aislab42190/verilator_tool/? Or do I have to install it again? |
I believe now, you want to run |
@sifferman, after I executed Thanks again for your help! |
Make install just moves all the files you built to your |
@sifferman, it can now successfully produce a VCD file, but the waveform looks strange. When I opened hello.vcd with GtkWave, almost all of the signals are either always high or always low, except for the "clk" signal. I'm not sure if the large size of the VCD file is causing the problem or if there are other reasons. |
Try zooming out |
@sifferman, I tried zooming out to the maximum, but it remained the same. I also noticed that the simulation time stopped at 359999ps, while I ran the simulation for at least 1800000ms according to the terminal. |
You are looking at signals that do not change. Try looking at some other internal signals. Wall clock time is not simulation time. Wall clock time is how long your host spent simulating the design. You can see the number of cycles simulated in the screenshot: 'completed after 2579624 cycles'. As you managed to get a VCD file, can we close this issue? |
@Moschn, OK! |
Hello @hhhsiang As you opened the issue, you are the assigned person to close the issue when you think it is over (I think it is!). |
Related to #1569 |
Is there an existing CVA6 bug for this?
Bug Description
I want to generate a VCD file to view the waveform using GTKwave to see each signal. To do this, I had executed
make verilate DEBUG=1
in advance, and I tried using the following commands under the 'cva6' folder to get a VCD file:work-ver/Variane_testharness $RISCV/riscv64-unknown-elf/bin/pk hello.elf
work-ver/Variane_testharness --v $RISCV/riscv64-unknown-elf/bin/pk hello.elf
However, both commands only displayed 'Hello CVA6!' and didn't generate a VCD file.
I also tried the following commands from #282:
work-ver/Variane_testharness -v dump.vcd $RISCV/riscv64-unknown-elf/bin/pk hello.elf
work-ver/Variane_testharness -v $RISCV/riscv64-unknown-elf/bin/pk hello.elf
The former resulted in an 'invalid option' error, while the latter didn't work. When I ran this command:
work-ver/Variane_testharness --v dump.vcd $RISCV/riscv64-unknown-elf/bin/pk hello.elf
It displayed the message:
This emulator compiled with JTAG Remote Bitbang client. To enable, use +jtag_rbb_enable=1.
Listening on port 39617
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.
What command should I use to generate the VCD file or should I use another tool to view the waveform? I'm new to this world, so any help would be greatly appreciated. Thank you!"
The text was updated successfully, but these errors were encountered: