Skip to content

Commit

Permalink
Multistream register frontend: Fix number of protocol bits and location
Browse files Browse the repository at this point in the history
Co-authored-by: Georg Rutishauser <[email protected]>
  • Loading branch information
micprog and da-gazzi committed Aug 6, 2024
1 parent 3f729a0 commit 75ec61a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions util/mario/frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""Render a register"""
Expand Down Expand Up @@ -131,8 +131,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
Expand Down

0 comments on commit 75ec61a

Please sign in to comment.