From: Sebastien Bourdeauducq Date: Fri, 8 Jun 2012 20:54:04 +0000 (+0200) Subject: examples/dataflow: only import nx when needed X-Git-Tag: 24jan2021_ls180~2099^2~929 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5964df62db1cb040574517c6864cc4a8a12db0ae;p=litex.git examples/dataflow: only import nx when needed --- diff --git a/examples/dataflow.py b/examples/dataflow.py index 5c3d5fc0..f6e78677 100644 --- a/examples/dataflow.py +++ b/examples/dataflow.py @@ -1,5 +1,4 @@ import sys -import networkx as nx from migen.fhdl import verilog from migen.flow.ala import * @@ -19,5 +18,6 @@ print(verilog.convert(frag)) if len(sys.argv) > 1 and sys.argv[1] == "draw": import matplotlib.pyplot as plt + import networkx as nx nx.draw(g) plt.show()