From: Sebastien Bourdeauducq Date: Tue, 30 Apr 2013 13:49:51 +0000 (+0200) Subject: flow/network/DataFlowGraph: add add_pipeline X-Git-Tag: 24jan2021_ls180~2099^2~595 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4f13c5b74d4392db26b2572fd1312d0410bffcd4;p=litex.git flow/network/DataFlowGraph: add add_pipeline --- diff --git a/migen/flow/network.py b/migen/flow/network.py index 4082720a..1b61dccc 100644 --- a/migen/flow/network.py +++ b/migen/flow/network.py @@ -37,6 +37,10 @@ class DataFlowGraph(MultiDiGraph): self.add_edge(source_node, sink_node, source=source_ep, sink=sink_ep, source_subr=source_subr, sink_subr=sink_subr) + + def add_pipeline(self, *nodes): + for n1, n2 in zip(nodes, nodes[1:]): + self.add_connection(n1, n2) def del_connections(self, source_node, sink_node, data_requirements): edges_to_delete = []