-
Notifications
You must be signed in to change notification settings - Fork 220
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
Reference word for test 'rv32e_unratified/C/cswsp-01' is address-dependent #206
Comments
This seems to be an error in the coverage definition for the |
Thanks for the reply. I am not familiar with 'coverpoint', and how it is defined, or when it is applied. For now, I am just comparing raw signature from RAM with '.reference_output' files. Maybe there is some scripts above, which I don't know and don't call, which would discard the mismatch I observe. If so, then I apologize for this irrelevant issue report. |
The issue is completely relevant. The test instance generated is wrong and hence the source files used for generating these tests will have to be changed. The tests and the coverage reports will have to be regenerated to fix this issue. |
@cgroux thanks for reporting this. What pawan was referring to is that we use coverpoints to generate tests using CTG. So effectively the coverpoints used to generate this particular tests were wrong. @bilalsakhawat-10xe This line needs to be I would suggest fixing the cgf in ctg, and then regenerating this test and all its collaterals as a separate PR. |
@neelgala sure will do ASAP. |
fixed in #210 |
I experienced exactly the same situation in the 'cswsp-01' test, but now at label 'inst_4:'
And corresponding disassembly, for my platform:
Signature doesn't match reference (8000220c) in my case because of different memory layout. STACK_TOP is at 0x4002FFFF in my system. And stored value physically can't be at higher address than STACK_TOP. |
It looks like, I accidentally uploaded the wrong cswsp-01.S file in #210. I'll fix it ASAP. Sorry for the inconvenience. |
Fix in #219 |
I've run this test and now it working good. |
PR merged.. thanks for reporting.. closing the issue. |
I've run all 'rv32e_unratified' tests, from folders 'C' and 'E'.
All reference values, except the one I mention, are independent of the absolute mapping of the memory.
However, in case of the 'cswsp-01' test, at label 'inst_3:', the code stores its current stack pointer (x2) into the signature area:
Here is the source code, from cswsp-01.S:
And the corresponding disassembly, for my platform:
As consequence, the signature for this particular test will only match the reference (0x800021e4) for a precise memory layout.
While this is not strictly-speaking a bug, it would be cleaner if all tests are performed in a way that do not depend on absolute memory adresses.
The text was updated successfully, but these errors were encountered: