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

Test FP exception/status flag output #4

Open
ccelio opened this issue Feb 16, 2016 · 3 comments
Open

Test FP exception/status flag output #4

ccelio opened this issue Feb 16, 2016 · 3 comments

Comments

@ccelio
Copy link
Member

ccelio commented Feb 16, 2016

Torture does not currently test that FP instructions write the proper exception/status (fflag) bits.

One possible implementation would be to occasionally write out to the "signature" memory the current fflags and then reset the fflags before continuing (which is later compared against Spike's output).

@aswaterman
Copy link
Member

Adding a fragment that reads fflags into a register should suffice; bad values will make their way into the signature directly or indirectly. This will also test the hazard resolution logic more aggressively.

@ccelio
Copy link
Member Author

ccelio commented Feb 16, 2016

Great idea. Perhaps this can be a part of a CSR sequence family. It's a unit that's fairly under-tested, and we'll want to be able to set the probabilities fairly low since it will typical serialize the pipeline. I'd maybe add rdinstret and mscratch (or it is sscratch?) to it as well since they're both interesting and should be in pretty much all RISC-V implementations.

@colinschmidt
Copy link
Contributor

I like both of the suggestions in this thread!

Perhaps we would also have which CSRs to read/write as part of the config

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

No branches or pull requests

3 participants