-
Notifications
You must be signed in to change notification settings - Fork 737
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
csr #4294
Comments
Regarding what you want to do, I think you can refer to the implementation of some custom CSRs in XiangShan. For example, the
As for what you want to do, I don’t have much of an idea, because it seems like this could be accomplished directly with an instruction like |
I am using a455b9f714df264edb679c81c3d6c74625ea3d82 commit version of yanqihu. there is not
|
Sorry, we no longer maintain yanqihu. Please use the more stable kunminghu (master) instead. |
Before start
Describe the question
Hi
I want to write or read content of csrs (mie,mip, mstatus, ....) when an activation signal is '1'. I added these three IO ( enable, data_in , data-out) to CSRFileIO. module. Now how can I update content of CSRs by data-in when enable is '1'? How can I write something to CSRs?
also I want to update the content of GPRs (in integer part/alu) in a same manner. I cannot find where are GPRs defined in XiangShan and how can I update them?
thank for support
The text was updated successfully, but these errors were encountered: