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

Implement rdcycle, rdtime, and rdinstret #105

Closed
fpedd opened this issue Jan 31, 2022 · 2 comments
Closed

Implement rdcycle, rdtime, and rdinstret #105

fpedd opened this issue Jan 31, 2022 · 2 comments
Assignees

Comments

@fpedd
Copy link
Collaborator

fpedd commented Jan 31, 2022

Would be nice if ETISS supported these (OVPsim and Spike offer them). Currently reading them returns 0.

See RISC-V User-Level ISA V2.2, 2.8 Control and Status Register Instructions, Timers and Counters for more info. They can then in turn be used to, for example, run performance tests on TensorFlow Lite Micro.

@wysiwyng
Copy link
Contributor

@Samanti-Das and me will have a go at implementing this, stay tuned.

@wysiwyng
Copy link
Contributor

Implemeted in #115. rdtime currently returns microseconds since Unix epoch, rdcycle and rdinstret return instruction count since simulator start.

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

2 participants