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 Zawrs extension tests #432

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open

Conversation

ved-rivos
Copy link
Contributor

@ved-rivos ved-rivos commented Jan 29, 2024

Description

Add Zawrs extension test.

Related Issues

NA

Ratified/Unratified Extensions

  • Ratified
  • Unratified

List Extensions

https://github.com/riscv/riscv-zawrs

Reference Model Used

  • SAIL
  • Spike
  • Other - < SPECIFY HERE >

Mandatory Checklist:

  • All tests are compliant with the test-format spec present in this repo ?
  • Ran the new tests on RISCOF with SAIL/Spike as reference model successfully ?
  • Ran the new tests on RISCOF in coverage mode
  • Link to Google-Drive folder containing the new coverage reports (See this for more info): < SPECIFY HERE >
  • Link to PR in RISCV-ISAC from which the reports were generated : < SPECIFY HERE >
  • Changelog entry created with a minor patch

Optional Checklist:

  • RISCV-V CTG PR link if tests were generated using it : < SPECIFY HERE >
  • Were the tests hand-written/modified ?
  • Have you run these on any hard DUT model ? Please specify name and provide link if possible in the description
  • If you have modified arch_test.h Please provide a detailed description of the changes in the Description section above.

Copy link
Collaborator

@allenjbaum allenjbaum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would add a bit more coverage to ensure this is doing the right thing, e.g. read the INSTRET CSR before and after and see that it incremented by the proper amount.
You could be tricky and, in the timeout cases, check mtime or cycles and see that they at least incremented (the timeout should be provided to the test in terms of cycles (probably) and the test should check that it incremented by more than one, for example.

@Silabs-ArjanB
Copy link

You could be tricky and, in the timeout cases, check mtime or cycles and see that they at least incremented (the timeout should be provided to the test in terms of cycles (probably) and the test should check that it incremented by more than one, for example.

The Zawrs specifies its wrs.sto referring to an implementation-define short timeout. You cannot assume that cycles is incrementing during that timeout (it might for example be clock gated as is allowed for WFI implementations) and also mtime might not increase.

@ved-rivos
Copy link
Contributor Author

That is right. Adding such checks to the ACT will go beyond what architecture compatibility requires.

@allenjbaum
Copy link
Collaborator

allenjbaum commented Mar 19, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants