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

Record cycle counter when payload began executing #198

Open
sqazi opened this issue Dec 29, 2024 · 2 comments
Open

Record cycle counter when payload began executing #198

sqazi opened this issue Dec 29, 2024 · 2 comments
Labels

Comments

@sqazi
Copy link
Contributor

sqazi commented Dec 29, 2024

It would be very useful to have a feature that records a cycle count value when a payload begins executing. An internal cycle count register should increment continuously and be snapshotted into an accessible register whenever a payload begins executing. The script can then use that value to make comparisons between multiple payload executions.

@wkkuna
Copy link
Contributor

wkkuna commented Dec 30, 2024

Hi,
Sure thing, I'll have a look at it.

@wkkuna
Copy link
Contributor

wkkuna commented Jan 2, 2025

Hi,

We've just released changes that include the Payload Executor CSR reporting the first and last cycle of the payload execution.
The register payload_executor_exec_start reports on the first system clock cycle (counting from the last power cycle) of the payload execution.
There's also payload_executor_exec_stop that snapshots the first cycle the payload has stopped being executed.

After rebuilding your design and running payload execution (e.g. via hw_rowhammer.py) you should see additional:

Payload execution started at: 33791782680
Payload execution finished at: 33922040349
Total execution time (system clock cycles): 130257669

in your logs.
Let us know if this works for you.

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

No branches or pull requests

3 participants