Skip to content

Commit d9eb594

Browse files
PMP updated schema (#193)
* PMP updated schema * Add pmp-writable entry
1 parent 7273a5e commit d9eb594

File tree

1 file changed

+31
-10
lines changed

1 file changed

+31
-10
lines changed

riscv_config/schemas/schema_isa.yaml

Lines changed: 31 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -123,23 +123,44 @@ hart_schema:
123123
check_with: isa_xlen
124124

125125
###
126-
#pmp_granularity
126+
#PMPs Configurations
127127
#---------------
128128
#
129-
# - **Description**: Granularity of pmps
130-
# - **Default**: 0
129+
# - **Description**: Granularity of pmps and count of implemented pmp csrs.
130+
# - **Default implemented**: False
131+
# - **Default pmp-grain**: 0
132+
# - **Default pmp-count**: 16
131133
# - **Constraints**: None
132134
# - **Examples**:
133135
#
134136
# .. code-block:: yaml
135-
#
136-
# pmp_granularity : 2
137-
# pmp_granularity : 4
137+
# PMP:
138+
# implemented: true
139+
# pmp-grain : 0
140+
# pmp-count : 16
138141

139-
pmp_granularity:
140-
type: integer
141-
min: 0
142-
default: 0
142+
PMP:
143+
type: dict
144+
schema:
145+
implemented:
146+
type: integer
147+
default: False
148+
pmp-grain:
149+
type: integer
150+
max: [4096]
151+
default: 0
152+
pmp-count:
153+
type: integer
154+
max: [64]
155+
default: 16
156+
pmp-writable:
157+
type: integer
158+
max: [64]
159+
default: 7
160+
default:
161+
implemented: False
162+
pmp-grain: 0
163+
pmp-count: 16
143164

144165
###
145166
#physical_addr_sz

0 commit comments

Comments
 (0)