Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants