From ec2d84afeededa9d26cf5af23352b0f4c574b0bf Mon Sep 17 00:00:00 2001 From: Michael Rogenmoser Date: Tue, 6 Aug 2024 16:28:57 +0200 Subject: [PATCH] Multistream register frontend: Fix number of protocol bits and location Co-authored-by: Georg Rutishauser --- util/mario/frontend.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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