From 4a991c687cb51492e4eb6bc4501f507c5eb867ed Mon Sep 17 00:00:00 2001
From: Hugo Winbladh <hugwi268@student.liu.se>
Date: Mon, 17 Jul 2023 12:57:55 +0200
Subject: [PATCH] fix issues with using names as keys

---
 b_asic/signal_flow_graph.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/b_asic/signal_flow_graph.py b/b_asic/signal_flow_graph.py
index 17e8ee3c..7d4610ae 100644
--- a/b_asic/signal_flow_graph.py
+++ b/b_asic/signal_flow_graph.py
@@ -1728,12 +1728,12 @@ class SFG(AbstractOperation):
 
         sfgs = [new_sfg() for _ in range(factor)] # Copy the SFG factor times
 
-        # Add suffixes to all graphIDs and names in the SFGs in order to keep them separated
+        # Add suffixes to all graphIDs and names in order to keep them separated
         for i in range(factor):
             for operation in sfgs[i].operations:
                 suffix = f'_{i}'
                 operation.graph_id = operation.graph_id + suffix
-                if operation.name != '':
+                if operation.name[:7] not in ['', 'input_t', 'output_']:
                     operation.name = operation.name + suffix
 
         input_name_to_idx = {} # save the input port indices for future reference
-- 
GitLab