-
Notifications
You must be signed in to change notification settings - Fork 206
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
base: dev
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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.
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. |
That is right. Adding such checks to the ACT will go beyond what architecture compatibility requires. |
Well, not really. We expect DUT to provide a number in terms of
instructions retired or cycles or mtime, guaranteed to be larger than the
timeout,
and we can check that no interrupt has occurred when we inject an interrupt
after that time. The test pass criteria is a function of that number that
is provided to the test,
but that condition is true for a lot of tests with implementation defined
parameters.
…On Mon, Jan 29, 2024 at 5:47 AM Ved Shanbhogue ***@***.***> wrote:
That is right. Adding such checks to the ACT will go beyond what
architecture compatibility requires.
—
Reply to this email directly, view it on GitHub
<#432 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHPXVJQSPAOXBPSDUCMD4QLYQ6R6HAVCNFSM6AAAAABCORU5V2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJUG4ZDSMJWHA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Description
Related Issues
Ratified/Unratified Extensions
List Extensions
Reference Model Used
Mandatory Checklist:
Optional Checklist: