-
Notifications
You must be signed in to change notification settings - Fork 621
[dv] V2S Coverage Implementation #1895
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.
Thanks @ctopal! This LGTM modulo one code typo and one question.
Thanks @andreaskurth for the swift review, sorry about the silly typos! |
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.
No worries, all good now 👍
The CPs are hit as follows (by the full test suite):
I'll prioritize checking why The other points to be checked are (1) |
For |
|
|
||
* ``cp_dummy_instr_type`` - Type of the injected dummy instruction. | ||
|
||
* ``cp_dummy_instr`` - Executing each instruction category while dummy instruction insertion feature is enabled. |
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.
We should add coverage for interrupt and debug requests whilst a dummy instruction is being executed (different points for IF, ID/EX and WB stages).
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.
I've just added two commits that should add this coverage
d9cc4ee
to
a9a5259
Compare
Latest commit adds random writes to custom CSRs, enables us to see more diverse instruction categories while enabling the security features. We might need to end up increasing the iteration numbers for these tests but with 20 seeds of |
I just tried
Details of failing tests
|
We shouldn't see failures after #1907 gets merged so let's wait for it first to see. Locally I've seen 92.5% pass rate with that rebased. |
With this PR rebased on top of #1907, I got:
Overall we should hit all bins of |
This commit adds coverpoints and crosses for security countermeasures implemented in the design. Signed-off-by: Canberk Topal <ctopal@lowrisc.org>
Signed-off-by: Andreas Kurth <adk@lowrisc.org>
… dummy instruction Signed-off-by: Andreas Kurth <adk@lowrisc.org>
This commit adds random custom CSR writes to debug_single_step_test and riscv_mem_error_test. Signed-off-by: Canberk Topal <ctopal@lowrisc.org>
rebased |
Errors in |
This commit adds coverpoints and crosses for security countermeasures implemented in the design.
Resolves #1762
Signed-off-by: Canberk Topal ctopal@lowrisc.org