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

a suggestion for rv32c and rv64c #15

Open
qian160 opened this issue Jan 23, 2024 · 0 comments
Open

a suggestion for rv32c and rv64c #15

qian160 opened this issue Jan 23, 2024 · 0 comments

Comments

@qian160
Copy link

qian160 commented Jan 23, 2024

Hello, I love your doc, it's so convenient.
However, I got some confusions while reading the RV32C, RV64C Instructions part.
In the current doc, all the compressed instruction are being put together, making me think that they are compatible.
But when I start to design my decoding logic, I found that some instructions have the same fields, such as these two:(op=01, funct3=001)
image
And then I went to read the manual(Chapter 12) and found that RV32 and RV64 seemed to have some small differences in decoding.
In the above case, c.jal is an RV32C-only instruction, and since I'm desiging an RV64, I guess that I should interpret the pattern as c.addiw in my program.
So I'm suggesting that It'd be nicer if this doc could sort out the difference between rv32c and rv64c
Thank you for reading my long issue :)

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

1 participant