Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Add support for CSR combination coverpoints' test generation #55

Merged
merged 14 commits into from
Apr 9, 2023

Conversation

techiepriyansh
Copy link
Contributor

This PR adds basic support for generating tests for the csr_comb coverpoints.

It currently supports coverpoints of the type csr_reg & mask == val, where:

  • mask and val are allowed to be any valid python expressions.
  • csr_reg is allowed to be operated by a bit shift operator, i.e., (csr_reg >> shift) & mask == val is allowed where shift is a valid python expression.
  • functions old("csr_name") and write("csr_name") are allowed to be used in the place of csr_reg to access the old value and write value of a CSR respectively.
  • combination of multiple conditions with and and or is allowed.

Partially addresses #28.

@pawks pawks merged commit 6c38f9a into riscv-software-src:master Apr 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants