From 55df80c9fb8d88bacee7d633ff12fb9fffbe0add Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivar=20H=C3=A4rnqvist?= <ivaha717@student.liu.se> Date: Fri, 17 Apr 2020 17:59:20 +0200 Subject: [PATCH] Refactor constructor so that Input signals and Output signals are connected to ports before traversal is started, that way edge cases of empty SFG's are easily handled --- b_asic/signal_flow_graph.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/b_asic/signal_flow_graph.py b/b_asic/signal_flow_graph.py index 33954668..92abf322 100644 --- a/b_asic/signal_flow_graph.py +++ b/b_asic/signal_flow_graph.py @@ -403,4 +403,4 @@ class SFG(AbstractOperation): if src.operation.depends(src.index, i): if self._source_depends(port.signals[0].source, input_operation, visited): return True - return False \ No newline at end of file + return False -- GitLab