diff --git a/b_asic/signal_flow_graph.py b/b_asic/signal_flow_graph.py index 59e93fa6db256ea5c89574b3237afe024bbd79f0..49f1372cbaafad543645f3c3c7d68da14bce5fa1 100644 --- a/b_asic/signal_flow_graph.py +++ b/b_asic/signal_flow_graph.py @@ -747,9 +747,18 @@ class SFG(AbstractOperation): return self._precedence_list def show_precedence_graph(self) -> None: + """ + Display the output of :func:`precedence_graph` in the system viewer. + """ self.precedence_graph().view() def precedence_graph(self) -> Digraph: + """ + Return the SFG in prededence form in Graphviz format. + + This can be rendered in enriched shells. + + """ p_list = self.get_precedence_list() pg = Digraph() pg.attr(rankdir="LR") @@ -1378,6 +1387,14 @@ class SFG(AbstractOperation): return Schedule(self, scheduling_algorithm="ASAP").schedule_time + def iteration_period_bound(self) -> int: + """ + Return the iteration period bound of the SFG. + + If -1, the SFG does not have any loops and therefore no iteration period bound. + """ + raise NotImplementedError() + def edit(self) -> None: """Edit SFG in GUI.""" from b_asic.GUI.main_window import start_editor