Skip to content

Commit

Permalink
checker: pmp: warl: trim ox while converting hex to bin
Browse files Browse the repository at this point in the history
  • Loading branch information
iamkarthikbk committed Sep 21, 2023
1 parent 6909b9a commit 168228b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion riscv_config/checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -1521,7 +1521,7 @@ def check_pmp(spec, logging = False):
elif entry[0][1] == 'in':
warl_values.extend(entry[0][2])
for warl_value in warl_values:
writeval = (bin(int(warl_value, base=16))[2:].zfill(32))[::-1]
writeval = (bin(int(warl_value[2:], base=16))[2:].zfill(32))[::-1]
try:
pmp_legal = False if (writeval[xlen-Grain] != '0') else True
except IndexError as err:
Expand Down

0 comments on commit 168228b

Please sign in to comment.