Skip to content

Commit

Permalink
Remove width check
Browse files Browse the repository at this point in the history
  • Loading branch information
piotro888 committed Nov 10, 2024
1 parent 8c0289f commit 437af45
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions coreblocks/priv/csr/csr_instances.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,7 @@ def _misa_value(self, gen_params):
# 7 - Hypervisor, 18 - Supervisor, 23 - Custom Extensions

xml_field_mapping = {32: XlenEncoding.W32, 64: XlenEncoding.W64, 128: XlenEncoding.W128}
if gen_params.isa.xlen in xml_field_mapping:
misa_value |= xml_field_mapping[gen_params.isa.xlen] << (gen_params.isa.xlen - 2)
misa_value |= xml_field_mapping[gen_params.isa.xlen] << (gen_params.isa.xlen - 2)

return misa_value

Expand Down

0 comments on commit 437af45

Please sign in to comment.