Repository navigation
[dv] Add testplans for core_ibex, RISC-V and CHERIoT - #2599
Draft
henrikpedersen-oss wants to merge 5 commits into
Draft
henrikpedersen-oss wants to merge 5 commits into
henrikpedersen-oss wants to merge 5 commits into
Conversation
The testbench tied cheriot_enable_i off, so no test ran in CHERIoT mode. +cheriot_enable=1 now holds it On from reset, in CHERIoT builds only. cheriot_cap_basic derives a 16-byte capability from mtdc, checks its address, bounds and tag, and stores and loads through it. It checks itself, as the cosim does not model CHERIoT yet. Signed-off-by: Henrik M Pedersen <henrik.pedersen@lowrisc.org>
The merge with master kept master's tie-off of cheriot_enable_i next to the new connection, so the testbench no longer elaborated (xmelab CUVPOM). Drive cheriot_enable_i, cheriot_enable_shadow_i and cheriot_enable_cmp_i from the same plusarg, so the lockstep pair agrees. Signed-off-by: Henrik M Pedersen <henrik.pedersen@lowrisc.org> AI-assisted (Claude Code) — reviewed and approved by author Co-Authored-By: Claude <claude@anthropic.com>
The plan for the core_ibex bench in RISC-V mode: 25 testpoints over the riscv-dv tests, the directed tests, riscv-tests, the architectural tests and the generated ePMP tests, and the three covergroups. Tests not in the testlists yet are planned. Signed-off-by: Henrik M Pedersen <henrik.pedersen@lowrisc.org> AI-assisted (Claude Code) — reviewed and approved by author Co-Authored-By: Claude <claude@anthropic.com>
The plan for CHERIoT in the core_ibex bench: 13 testpoints, from running in CHERIoT mode (cheriot_cap_basic) to each instruction, traps, random operands, revocation and the cheriot_enable_i pin, and the CHERIoT covergroups. Tests not in the directed testlist yet are planned. Signed-off-by: Henrik M Pedersen <henrik.pedersen@lowrisc.org> AI-assisted (Claude Code) — reviewed and approved by author Co-Authored-By: Claude <claude@anthropic.com>
henrikpedersen-oss
force-pushed
the
upstream-cheriot-testplan
branch
from
November 27, 2026 16:21
c9831c0 to
3be9a30
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Builds on #2596, which adds
+cheriot_enableandcheriot_cap_basic; its commits come first here, and only the last two commits are new.doc/03_reference/testplan.rstdescribes the verification strategy and leaves the tests to the testlists. This PR adds the testplan itself, in dvsim format like the icache's, in two files:dv/uvm/core_ibex/core_ibex_testplan.hjson, RISC-V mode: 25 testpoints over the riscv-dv tests, the directed tests, riscv-tests, the architectural tests and the generated ePMP tests (744, described rather than listed), and the covergroupsuarch_cg,pmp_region_cgandpmp_top_cg.dv/uvm/core_ibex/core_ibex_cheriot_testplan.hjson, CHERIoT mode: 13 testpoints, from running in CHERIoT mode (cheriot_cap_basic) to each instruction, traps and errors, random operands, the stack high water mark, illegal instructions, revocation and thecheriot_enable_ipin, and 9 CHERIoT covergroups.Tests that are not in the testlists yet are listed as planned. In the RISC-V plan, 18 of the 25 testpoints have existing tests. In the CHERIoT plan only
cheriot_cap_basicexists so far; the other tests will come with the CHERIoT bench pieces they need (tag memory, CHERIoT cosim, debug module). Both files load with dvsim's testplan parser.This PR includes AI-assisted content generated with Claude Code. All changes have been reviewed and are the responsibility of the listed author(s).