@@ -22,39 +22,39 @@ fields:
2222 base: 64 # upper half doesn't exist in RV32
2323 <%- end -%>
2424 description: |
25- *PMP configuration for entry <%= pmpcfg_num*4 + i %>*
25+ *PMP configuration for entry <%= pmpcfg_num*4 + i %>*
2626
27- The bits are as follows:
27+ The bits are as follows:
2828
29- [separator="!",%autowidth]
30- !===
31- ! Name ! Location ! Description
29+ [separator="!",%autowidth]
30+ !===
31+ ! Name ! Location ! Description
3232
33- h! L ! <%= ((i+1)*8)-1 %> ! Locks the entry from further modification. Additionally, when set, PMP checks also apply to M-mode for the entry.
34- h! - ! <%= ((i+1)*8)-2 %>:<%= ((i+1)*8)-3 %> ! _Reserved_ Writes shall be ignored.
35- h! A ! <%= ((i+1)*8)-4 %>:<%= ((i+1)*8)-5 %>
36- a! Address matching mode. One of:
33+ h! L ! <%= ((i+1)*8)-1 %> ! Locks the entry from further modification. Additionally, when set, PMP checks also apply to M-mode for the entry.
34+ h! - ! <%= ((i+1)*8)-2 %>:<%= ((i+1)*8)-3 %> ! _Reserved_ Writes shall be ignored.
35+ h! A ! <%= ((i+1)*8)-4 %>:<%= ((i+1)*8)-5 %>
36+ a! Address matching mode. One of:
3737
38- [when="PMP_GRANULARITY < 2"]
39- * *OFF* (0) - Null region (disabled)
40- * *TOR* (1) - Top of range
41- * *NA4* (2) - Naturally aligned four-byte region
42- * *NAPOT* (3) - Natrually aligned power of two
38+ [when="PMP_GRANULARITY < 2"]
39+ * *OFF* (0) - Null region (disabled)
40+ * *TOR* (1) - Top of range
41+ * *NA4* (2) - Naturally aligned four-byte region
42+ * *NAPOT* (3) - Natrually aligned power of two
4343
44- [when="PMP_GRANULARITY >= 2"]
45- * *OFF* (0) - Null region (disabled)
46- * *TOR* (1) - Top of range
47- * *NAPOT* (3) - Natrually aligned power of two
44+ [when="PMP_GRANULARITY >= 2"]
45+ * *OFF* (0) - Null region (disabled)
46+ * *TOR* (1) - Top of range
47+ * *NAPOT* (3) - Natrually aligned power of two
4848
49- [when="PMP_GRANULARITY >= 2"]
50- Naturally aligned four-byte region, *NA4* (2), is not valid (not needed when the PMP granularity is larger than 4 bytes).
49+ [when="PMP_GRANULARITY >= 2"]
50+ Naturally aligned four-byte region, *NA4* (2), is not valid (not needed when the PMP granularity is larger than 4 bytes).
5151
52- h! X ! <%= ((i)*8)+2 %> ! When clear, instruction fetchs cause an `Access Fault` for the matching region and privilege mode.
53- h! W ! <%= ((i)*8)+1 %> ! When clear, stores and AMOs cause an `Access Fault` for the matching region and privilege mode.
54- h! R ! <%= ((i)*8)+0 %> ! When clear, loads cause an `Access Fault` for the matching region and privilege mode.
55- !===
52+ h! X ! <%= ((i)*8)+2 %> ! When clear, instruction fetchs cause an `Access Fault` for the matching region and privilege mode.
53+ h! W ! <%= ((i)*8)+1 %> ! When clear, stores and AMOs cause an `Access Fault` for the matching region and privilege mode.
54+ h! R ! <%= ((i)*8)+0 %> ! When clear, loads cause an `Access Fault` for the matching region and privilege mode.
55+ !===
5656
57- The combination of R = 0, W = 1 is reserved.
57+ The combination of R = 0, W = 1 is reserved.
5858 type(): |
5959 if (NUM_PMP_ENTRIES > <%= pmpcfg_num*4 + i %>) {
6060 return CsrFieldType::RWR;
0 commit comments