Skip to content

Commit

Permalink
doc: pmp granularity equals to 8-byte (#2572)
Browse files Browse the repository at this point in the history
  • Loading branch information
ASintzoff authored Nov 4, 2024
1 parent aeb0b64 commit 7aad781
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions docs/riscv-isa/src/machine.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4343,13 +4343,11 @@ back to NAPOT.
endif::[]

ifdef::archi-CVA6[]
[{ohg-config}] Although the PMP mechanism supports regions as small as four bytes,
platforms may specify coarser PMP regions. In general, the PMP grain is
latexmath:[$2^{G+2}$] bytes and must be the same across all PMP regions.
When latexmath:[$G \geq 1$] and
latexmath:[${\tt pmpcfg}_i$].A[1] is clear, i.e. the mode is OFF or TOR,
then bits latexmath:[${\tt pmpaddr}_i$][G-1:0] read as all zeros. Bits
latexmath:[${\tt pmpaddr}_i$][G-1:0] do not affect the TOR address-matching
[{ohg-config}] The PMP grain is 8 bytes (latexmath:[$2^{G+2}$] with G = 1)
and must be the same across all PMP regions.
As latexmath:[${\tt pmpcfg}_i$].A[1] is always clear, i.e. the mode is OFF or TOR,
then bit latexmath:[${\tt pmpaddr}_i$][0] read as zero. Bit
latexmath:[${\tt pmpaddr}_i$][0] does not affect the TOR address-matching
logic.
endif::[]

Expand Down

0 comments on commit 7aad781

Please sign in to comment.