Skip to content

Commit 594ea97

Browse files
committed
[dv] Plan test for DM accesses in debug mode
Signed-off-by: Andreas Kurth <adk@lowrisc.org>
1 parent 2678654 commit 594ea97

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

dv/uvm/core_ibex/riscv_dv_extension/testlist.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,20 @@
278278
compare_final_value_only: 1
279279
verbose: 1
280280

281+
# TODO(#2233): Implement the following test (also note the priorities in the issue).
282+
#- test: riscv_debug_mode_pmp_test
283+
# description: >
284+
# When debug mode is enabled, any access to the Debug Module address space should be allowed.
285+
# This holds regardless of PMP settings. Thus, this test performs a series of random accesses
286+
# (reads, writes, and instruction fetch) in debug mode with a random PMP configuration, and it
287+
# checks that all accesses to the Debug Module address space get allowed and that all accesses
288+
# outside the Debug Module address space get allowed if and only if the PMP configuration permits
289+
# them.
290+
# When debug mode is not enabled, accesses to the Debug Module address space are governed by the
291+
# PMP configuration. Verifying PMP is the focus of other tests. This test verifies a simple case:
292+
# when debug mode is disabled and the PMP does not allow accesses to the Debug Module address
293+
# space, a random access to that address space fails.
294+
281295
- test: riscv_dret_test
282296
description: >
283297
Dret instructions will be inserted into generated code, ibex should treat these

0 commit comments

Comments
 (0)