-
Notifications
You must be signed in to change notification settings - Fork 687
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
Fix for MISA CSR spec for CV32A6 #1049
Conversation
LGTM. @ASintzoff Can you tell me if PR is OK to you ? |
I'm wondering if RO wording is the appropriate one. BTW, was the file generated by Register Manager? Does it mean the generation is only for the first version? |
Good points @ASintzoff!
The access mode behaviours in the Privileged Specification define what software does, not hardware.
The Privilege Spec says the hardware may raise an illegal exception, but I do not believe CVA6 does this. If I am right, then for the MISA an RO CSR is a legal way to implement a WARL CSR. See #1053.
We have a choice. We can either manually update the RST files (see #1049), or we can update the source input to Register Manager and regenerate the RST. |
I agree that writing to Nevertheless, do we need to distinguish the following behaviours:
Manually updating the RST file is fine for me. |
Yes, very good point! It will help verification to specify whether exception is generated (or not). But in that case, all registers are concerned by this modification, not only MISA CSR. The CSR spec is to be aligned on RISC-V specification and need to contain an explanation about the RO and WARL meanings. |
@MikeOpenHWGroup As the current agreed stragtegy is to modify the IP-XACT version to generate the specification (rst file), this PR should be updated. @yanicasa what do you suggest as methodology to modify the IP-XACT file ? |
@frikhaAziz This PR would like to modify the CSR specification. As this need to be done in IP-XACT, could you propose an PR to fix the spec. |
Closing as #1330 does indeed supersede this PR. |
This PR addresses issue #1048.
Note: I am not sure whether to merge this into
master
orcv32a6_v5.0.0
. My suggestion is the master branch since this PR updates the CV32E6 User Manual only and the master branch is used to by ReadTheDocs to publish CVA6 documentation.