riscv-software-src / riscof

BSD 3-Clause "New" or "Revised" License
63 stars 40 forks source link

Support for Translator and Macros #110

Closed MuhammadHammad001 closed 2 weeks ago

MuhammadHammad001 commented 4 months ago

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 commented 3 months ago

@jamesbeyond

jamesbeyond commented 3 months ago

@MuhammadHammad001

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