Skip to content

How are non-deterministic inputs handled #23

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

Open
Timmmm opened this issue Jan 26, 2023 · 2 comments
Open

How are non-deterministic inputs handled #23

Timmmm opened this issue Jan 26, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@Timmmm
Copy link

Timmmm commented Jan 26, 2023

How does TestRig handle non-deterministic values, or at least values that will naturally differ from implementation to implementation, e.g:

  • Time (mtime)
  • Interrupts
  • CSRs (mvendorid etc)

If you inject some instructions that do any of those it will give different results for different CPU implementations, and I can't see any mechanism to avoid that.

@PeterRugg
Copy link
Collaborator

Oops, not sure why I didn't see this until now! For the record, this is a gap in TestRIG's functionality: either you ensure your implementations line up, or you avoid testing that feature. We have discussed some other ways to work around it, but there are no immediate plans to implement anything.

@Timmmm Timmmm closed this as completed Apr 15, 2024
@marnovandermaas marnovandermaas added the enhancement New feature or request label Apr 16, 2024
@marnovandermaas
Copy link
Member

I'm reopening this issue and labelling it as enhancement for a future release.

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

No branches or pull requests

3 participants