mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
flow/network/DataFlowGraph: add add_pipeline
This commit is contained in:
parent
fb83794ef4
commit
4f13c5b74d
1 changed files with 4 additions and 0 deletions
|
@ -37,6 +37,10 @@ class DataFlowGraph(MultiDiGraph):
|
||||||
self.add_edge(source_node, sink_node,
|
self.add_edge(source_node, sink_node,
|
||||||
source=source_ep, sink=sink_ep,
|
source=source_ep, sink=sink_ep,
|
||||||
source_subr=source_subr, sink_subr=sink_subr)
|
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):
|
def del_connections(self, source_node, sink_node, data_requirements):
|
||||||
edges_to_delete = []
|
edges_to_delete = []
|
||||||
|
|
Loading…
Reference in a new issue