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

Logging the value of registers at a certain point during the simulation possible? #1792

Open
AshvinVaidyanathan opened this issue Aug 29, 2024 · 1 comment

Comments

@AshvinVaidyanathan
Copy link

I am running assembly code on spike and using the --commit-log to generate my log files for post-simulation synthesis. However, since I am using pk, there is also a lot of code that is run before and after my test code. Is it possible to log the value of all 32 registers and PC at a certain point in the code where my test code finishes executing?

@jerryz123
Copy link
Collaborator

If you are willing to do this interactively, you can use untiln in interactive mode to stop the simulation when it reaches a certain pc, then regs to dump the regs.

I believe this can be scripted too, a text file of interactive commands can be piped to Spike when it is run in interactive mode.

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