-
Notifications
You must be signed in to change notification settings - Fork 20
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
100% coverage of jal64I, jalr64I and subw64I #236
Conversation
Dear Daniyal I am unable to see jalr (jalr 64I) and subw command in the text. jal is UJ format - This command requires checking of bits from 12 to 31, whereas I see changes from 2 to 12. Kindly explain this. Please explain. |
Dear Professor, The changes for subw is done in covergen.py file because it was generating a pseudo instruction of "negw", when rs1 = x0, for which no sample was being generated in RV64I_Coverage.svh. Hence by adding the lines |
All of these commands should have separate PR. No ? |
Actually, we havent been instructed to make a separate PR for each instruction. However, I have made separate commits for Jump type and subw instructions. |
Jumps allow the target address to be a multiple of 2 rather than 4 because compressed instructions can be two bytes. However, in RV{32/64}I, there are no compressed instructions and no way to hit addresses that are not multiples of 4. I think the best solution is to add uncompressed jal and jalr rows to the Zca tests. These should have two coverpoints consisting of rd[1] = 1 and imm[1] = 1. jalr also needs to be able to test a case where rs1+imm is odd; the bit [0] should be ignored. We need to test both rs1[0] = 1, imm[0] = 1, and rs1[0] + imm[0] = 1. See the unprivileged spec about jalr. That way these features can be tested when compressed instructions are supported, and everything else is tested in the usual I tests. Can you work with the UET team on this? Perhaps create a proposed PR and review it with them? |
@Zain2050 can you please look into this, I think you have worked on jal instructions. There is a missing coverpoint which can be covered in Zca |
Moved this feedback on uncompressed branch/jump to Issue #258. |
No description provided.