Skip to content

Commit

Permalink
[riscv-config] Update PMP definitions in cv32q65x spec (#2401)
Browse files Browse the repository at this point in the history
  • Loading branch information
zchamski authored Jul 25, 2024
1 parent b438a8b commit 96b0508
Show file tree
Hide file tree
Showing 3 changed files with 1,307 additions and 273 deletions.
10 changes: 4 additions & 6 deletions config/gen_from_riscv_config/scripts/libs/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,11 +454,7 @@ def returnAsString(self):
field.name.upper(),
field.fieldreset,
field.fieldaccess,
(
Render.bitmask(field.andMask, field.orMask)
if field.andMask and field.orMask
else field.bitlegal
),
field.bitlegal,
]
_line.append(field.fieldDesc)
reg_table.append(_line)
Expand Down Expand Up @@ -1015,9 +1011,11 @@ def returnRegister(
if matches:
expr_type = str(matches.group(2))
if expr_type == "bitmask":
# legal_value is left at default, cf. Render.bitmask().
andMask = str(matches.group(4))
orMask = str(matches.group(5))
legal_value = Render.bitmask(
andMask, orMask
)
elif expr_type == "in":
if matches.group(3).find(",") >= 0:
# list ==> set of values
Expand Down
Loading

0 comments on commit 96b0508

Please sign in to comment.