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

Missing Opcode for cm.jt #308

Open
JAYANTH-IITM opened this issue Oct 29, 2024 · 6 comments
Open

Missing Opcode for cm.jt #308

JAYANTH-IITM opened this issue Oct 29, 2024 · 6 comments

Comments

@JAYANTH-IITM
Copy link

Opcode is missing for the cm.jt , which is part of zcmt

@JAYANTH-IITM
Copy link
Author

@aswaterman can you please help here

@aswaterman
Copy link
Member

The issue is that they overlap each other in the encoding space. If c_index is less than 32, then it is cm.jt, otherwise, it is cm.jalt.

@JAYANTH-IITM
Copy link
Author

yes but in rv_zcmt file only " cm.jalt c_index 1..0=2 15..13=5 12..10=0 is there .
cm.jt , the instr itself is not there.

@aswaterman
Copy link
Member

How do you propose to solve the problem? If you just add the instruction, you'll get an overlap error. If you define it as a pseudoinstruction, it will execute correctly, but the description is technically incorrect (since it is not a pseudoinstruction).

@IIITM-Jay
Copy link
Member

@aswaterman To differentiate cm.jt and cm.jalt without overlap, if there is any unused bit or an available spare bit , especially in positions that aren’t strictly defined by the existing cm.jalt encoding, then I think that could be used as a "flag" to differentiate cm.jt from cm.jalt.

But I don't think there is any such available bit to have the above solution to work out. Am I correct?

@aswaterman
Copy link
Member

@IIITM-Jay Correct, there is no such bit. The logic is that if c_index[7:5] != 0 then it's cm.jalt; otherwise it's cm.jt.

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

3 participants