cva6 icon indicating copy to clipboard operation
cva6 copied to clipboard

Not able to get waveform using verilator (vcd file, fst file)

Open dvusingh opened this issue 1 year ago • 8 comments

Is there an existing CVA6 bug for this?

  • [X] I have searched the existing bug issues

Bug Description

Hi,

I am trying to generate waveform in Verilator for the median(benchmark test) in CVA6 but waveform(vcd file) is not generating after the simulation is completed successfully.

I tried the below options for DV_TARGET=cv64a6_imafdc_sv39: export DV_SIMULATORS=veri-testharness,spike export TRACE_FAST=1 bash verif/regress/benchmark.sh

After the test script completes, the verif/sim/out_<DATE-OF-TODAY>/veri-testharness_sim directory is created which contains only median.csv, median.log and median.log.iss files only. There is no file with .vcd extension.

PS: I was not sure where to post questions... for this issue, so I posted here

dvusingh avatar Feb 15 '24 09:02 dvusingh

@zchamski will help in understanding the issue. As first question, I would be pleased to know whether you pulled the last commits, because Zbigniew has fixed it last week.

JeanRochCoulon avatar Feb 20 '24 12:02 JeanRochCoulon

I pulled the last commits done by Zbigniew. But still there is no vcd or fst file present in my veri-testharness_sim directory.

Thanks

dvusingh avatar Feb 21 '24 11:02 dvusingh

Hi @dvusingh, please make sure that you activate Verilator-based RTL simulations and that you enable the waveform generation by setting one of the environment variables that control waveform generation:

  • export DV_SIMULATORS="spike,veri-testharness" ; export TRACE_FAST=1 ; bash verif/regress/smoke-tests.sh should produce VCD files;
  • export DV_SIMULATORS="spike,veri-testharness" ; export TRACE_COMPACT=1 ; bash verif/regress/smoke-tests.sh should produce FST files.

Since TRACE_FAST and TRACE_COMPACT variables are mutually exclusive, you may need to unset one of them to use the other.

zchamski avatar Feb 21 '24 15:02 zchamski

Further discussion of waveform generation (VCS use, limitations etc.) is given in the toplevel README.md of the cva6 tree (section "Waveform generation").

zchamski avatar Feb 21 '24 15:02 zchamski

Hi @dvusingh, did you get a chance to test the instructions above? If so, did they work for you?

zchamski avatar Feb 26 '24 08:02 zchamski

Hi @zchamski, I tried export TRACE_FAST=1 option and ran the smoke_tests.sh script. But still, I am not able to get the .vcd file in my log directory.

Note: I have installed verilator-v5.018 for cva6 verification

dvusingh avatar Feb 26 '24 08:02 dvusingh

For information, the supported Verilator is 5.005 (and not 5.018). I suggest to test with the supported version.

JeanRochCoulon avatar Feb 26 '24 10:02 JeanRochCoulon

@JeanRochCoulon, did you mean 5.008? Odd minor versions of Verilator are development/unstable ones.

zchamski avatar Feb 27 '24 07:02 zchamski

Hi @zchamski and @JeanRochCoulon, I installed the verilator-5.005 and tried running smoke_test, but again vcd file is not generated.

I also tried with DV_SIMULATORS=vcs-uvm, for this also I am getting the logs without any errors but the there is no vpd file created in log directory.

Any suggestions or help would be greatly appreciated! Thanks

dvusingh avatar Mar 01 '24 06:03 dvusingh

Issue resolved.

Thanks

dvusingh avatar Mar 11 '24 06:03 dvusingh