openhwgroup / core-v-verif

Functional verification project for the CORE-V family of RISC-V cores.

Home Page:https://docs.openhwgroup.org/projects/core-v-verif/en/latest/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VPTOOL does not load features

yesilzeytin opened this issue · comments

VPTOOL does not load features

Type

  • Functionally incorrect behavior

Steps to Reproduce

  1. URL to branch that exhibits the issue: https://github.com/openhwgroup/core-v-verif
  2. Command line: sh vptool-example/runme.sh
  3. Logfile and/or wave-dump info:
    tvnviewer_rpGz6MDWdi
    tvnviewer_LBvsQBQjaz

Additional context

When tried to follow the VPTOOL example as a starting point, the tool opens but does not load any features as mentioned in the README. When they are tried to be added manually through .pck files, they do not load anyway.

An interesting observation that I had is when we follow all the steps in the README (https://github.com/openhwgroup/core-v-verif/blob/67791932df6128671344015584109d7a177d9a9a/tools/vptool/README.md), I observe the warning "Locked Ip file has not been loaded", and see one locked_ip.pick being loaded anyway. This warning is not observed when the locked_ip.pick in vptool/vptool-example/example-database/vptool is copied to the vptool/vptool-example/example-database/ in folder hierarchy and two locked IP files are being loaded. This may or may not be related to the issue, but wanted to share screenshots regarding both just in case.

Hi @zchamski, I am not sure if you are the right person to assign this to. Please feel free to re-assign if not.

Hi @yesilzeytin, can you please share the commit info of the VPTOOL you are using?

Also, is your DVplan still in the Pickle format, or was it already migrated to Yaml? The Pickle format for storing features was phased out quite some time ago (Feb 2023), replaced by Yaml, and by default VPTOOL will only read DVplans stored in Yaml files.

Hi @zchamski, I'm not sure what exactly you meant with commit info, but the latest commits into my branch are in the link below since I tried to run VPTOOL with a newly cloned repository just yesterday to make sure that everything is up-to-date: https://github.com/openhwgroup/core-v-verif/commits/master

Actually, my DVplan is in Pickle format. That may be the issue, then. However, I couldn't see any example YAML files in the repository, nor details on how a YAML format should be in terms of a README or so on. Is the current README for VPTOOL outdated, then? Or am I missing out on something? If so, are there any resources that I can use to examine the YAML format, such as a guideline or an example YAML that you know of and can provide?

Hi @yesilzeytin, the recommended approach in your case is to migrate the DVplan from Pickle to Yaml using VPTOOL itself. There's a "magic" VPTOOL option -p which tells VPTOOL to read in Pickle files instead of the Yaml ones. When you subsequently save the files, they will be saved in Yaml format.

This is intentionally a one-way migration path towards Yaml. There is no formalized specification of the Yaml file structure (yet). However, care was taken to preserve the Yaml file structure in the load/save cycle so that any differences between file versions are solely linked to new/changed content.

Hi @zchamski, Thanks a lot for the fast responses. I spent some time examining the environment as much as I could to make sure that I wasn't missing something simple, but unfortunately, I still couldn't fix the issue. In order to clearly identify the problem (on my part or the VPTOOL part), I wanted to provide the process I used step-by-step to provide replicability.

Nothing loads. Also, when we tried to load it manually through the VPTOOL interface and manually select Pickle files, they still did not load.

In the interface, we can only add Features, and we cannot also modify the content on the right-hand side or add any Subfeatures. When we add Features that are totally empty and save them as YAML files, naturally, they only include Features, and therefore we still cannot see, add, or modify Subfeatures/Verification Items/Item Descriptions and see their YAML formats.

We tried the same steps on two different Ubuntu machines, and they both acted the same for reference.

Hi all,

I also have the same issue and cannot successfully load the example database.

Hi @abdullahyildiz and @yesilzeytin, I will try to get this fixed tomorrow. If unsuccessful, I will come back to you Monday 22 January (I will be offline during the coming week.)

Hi @zchamski, sorry to bother you but did you have any opportunity to examine the issue?

Hi @yesilzeytin, I've been squeezed time-wise, I can get back to working on VPTOOL starting next week (Mon 19 Feb) at the earliest.

Hi @zchamski, thanks for the heads up. Good luck in your work/tasks.