From 1af7b7b8def635b0780c25cfc261ed0eab4df892 Mon Sep 17 00:00:00 2001 From: Hugo Winbladh <hugwi268@student.liu.se> Date: Mon, 17 Jul 2023 12:40:25 +0200 Subject: [PATCH] add suffixes to component names when unfolding sfg --- b_asic/signal_flow_graph.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/b_asic/signal_flow_graph.py b/b_asic/signal_flow_graph.py index b9716c3f..17e8ee3c 100644 --- a/b_asic/signal_flow_graph.py +++ b/b_asic/signal_flow_graph.py @@ -1728,11 +1728,13 @@ class SFG(AbstractOperation): sfgs = [new_sfg() for _ in range(factor)] # Copy the SFG factor times - # Add suffixes to all graphIDs in the SFGs in order to keep them separated + # Add suffixes to all graphIDs and names in the SFGs 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 != '': + operation.name = operation.name + suffix input_name_to_idx = {} # save the input port indices for future reference new_inputs = [] -- GitLab