Skip to content

[dv] Add testplans for core_ibex, RISC-V and CHERIoT - #2599

Draft
henrikpedersen-oss wants to merge 5 commits into
lowRISC:masterfrom
henrikpedersen-oss:upstream-cheriot-testplan
Draft

henrikpedersen-oss wants to merge 5 commits into
lowRISC:masterfrom
henrikpedersen-oss:upstream-cheriot-testplan

Conversation

@henrikpedersen-oss

Copy link
Copy Markdown
Contributor

Builds on #2596, which adds +cheriot_enable and cheriot_cap_basic; its commits come first here, and only the last two commits are new.

doc/03_reference/testplan.rst describes 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 covergroups uarch_cg, pmp_region_cg and pmp_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 the cheriot_enable_i pin, 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_basic exists 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).

henrikpedersen-oss and others added 5 commits November 25, 2026 15:01
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>
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

Successfully merging this pull request may close these issues.

1 participant