riscof icon indicating copy to clipboard operation
riscof copied to clipboard

Support for Translator and Macros

Open MuhammadHammad001 opened this issue 10 months ago • 2 comments

This pull request is linked to the feature enhancement PR#80 created in RISC-V ISAC related to Support for coverage of Privileged Architecture

In this pull request, I have added:

  1. The Translator feature support that has been created in collaboration with @allenjbaum.
  2. The Macros feature that can be used to improve the coverpoint writing process. Hence, the user may use the riscof command for the coverage to use his/her macros in the test label like:
    RVTEST_CASE(1,"//check ISA:=regex(.*32.*); check ISA:=regex(.*I.*Zicsr.*); def rvtest_mtrap_routine=True; def rvtest_strap_routine=True; def TEST_CASE_1=True; mac self",PMP_TOR_priority_r)

And add the header_file for the macros in the CLI for riscof as:

riscof coverage --config=config.ini --cgf-file=dataset.cgf --cgf-file=testing_coverpoint.cgf --suite=Testing_dir --env=env -h /home/header_file.yaml

Note: The documentation will be added within a day or two for the translator and the features as well for macros.

@neelgala @pawks Please assign someone the reviewer for this PR as well.

@UmerShahidengr

MuhammadHammad001 avatar Apr 12 '24 18:04 MuhammadHammad001

@jamesbeyond

MuhammadHammad001 avatar Apr 29 '24 07:04 MuhammadHammad001

@MuhammadHammad001

Thank for reminding, l'll take some time to review it, meanwhile I requested other reviewer to have a look as well.

jamesbeyond avatar Apr 29 '24 16:04 jamesbeyond