Skip to content

Commit

Permalink
checker: pmp: warl: check only base and bound for range of legal values
Browse files Browse the repository at this point in the history
  • Loading branch information
iamkarthikbk committed Sep 21, 2023
1 parent 168228b commit 47d21d7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion riscv_config/checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -1519,7 +1519,11 @@ def check_pmp(spec, logging = False):
elif entry[0][1] == 'not in':
logger.warning(f'warl definition for {csrname} will not be checked as the search space is too large.')
elif entry[0][1] == 'in':
warl_values.extend(entry[0][2])
if ':' in entry[0][2]:
warl_values.append(entry[0][2].split(':')[0])
warl_values.append(entry[0][2].split(':')[1])
else:
warl_values.extend(entry[0][2])
for warl_value in warl_values:
writeval = (bin(int(warl_value[2:], base=16))[2:].zfill(32))[::-1]
try:
Expand Down

0 comments on commit 47d21d7

Please sign in to comment.