diff --git a/util/mario/frontend.py b/util/mario/frontend.py index 3855c2d..a252f88 100644 --- a/util/mario/frontend.py +++ b/util/mario/frontend.py @@ -11,7 +11,7 @@ import math from mako.template import Template -NUM_PROT_BITS = 3 - 1 +NUM_PROT_BITS = 3 def render_register(content: dict): @@ -132,8 +132,8 @@ def render_reg_hjson(fe_ids: dict, tpl_file: str) -> str: 'params': params, 'registers': regs, 'dim_range': f'{10+num_dim_bits}:10', - 'src_prot_range': f'{10+num_dim_bits+NUM_PROT_BITS}:{10+num_dim_bits}', - 'dst_prot_range': f'{10+num_dim_bits+2*NUM_PROT_BITS}:{10+num_dim_bits+NUM_PROT_BITS}' + 'src_prot_range': f'{10+num_dim_bits+NUM_PROT_BITS}:{10+num_dim_bits+1}', + 'dst_prot_range': f'{10+num_dim_bits+2*NUM_PROT_BITS}:{10+num_dim_bits+NUM_PROT_BITS+1}' } # render