-
Notifications
You must be signed in to change notification settings - Fork 0
docs: add misa q bit #1
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Adds a new Q (quad precision float) extension control and exposes its CSR bit in misa.
- Introduces a
MUTABLE_MISA_Qparameter to enable or disable mutability of themisa.Qbit. - Registers the
Qfield inarch/csr/misa.yamlwith conditional read/write behavior based on the new parameter. - Implements field type, reset value, write legality, and constraint checks.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| arch/ext/Q.yaml | Defines MUTABLE_MISA_Q parameter under extension schema |
| arch/csr/misa.yaml | Adds Q CSR field with RW/RO logic, reset value, and legality checks |
Comments suppressed due to low confidence (1)
arch/csr/misa.yaml:172
- No tests were added or updated to verify the new
MUTABLE_MISA_Qbehavior and theQCSR field; consider adding unit tests covering both mutable and immutable scenarios.
Q:
AFOliveira
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There may be changes needed in F and D, but let's change only the comment I made and wait for upstream feedback
arch/csr/misa.yaml
Outdated
| [when,"MUTABLE_MISA_Q == true"] | ||
| -- | ||
| Indicates support for the `Q` (quad precision float) extension. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's switch this to " Writing 0 to this field will cause all quad-precision floating point instructions to raise an IllegalInstruction exception. "
AFOliveira
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe F and D will need updates but let's ask upstream folks opinion!
No description provided.