From: Sebastien Bourdeauducq Date: Wed, 20 Jun 2012 22:44:41 +0000 (+0200) Subject: examples/dataflow/structuring: infinite source X-Git-Tag: 24jan2021_ls180~2099^2~896 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=956d1257c2bf88f0e69d2f0c4f57375a7f887ce6;p=litex.git examples/dataflow/structuring: infinite source --- diff --git a/examples/dataflow/structuring.py b/examples/dataflow/structuring.py index 0525e233..88c87a39 100644 --- a/examples/dataflow/structuring.py +++ b/examples/dataflow/structuring.py @@ -1,3 +1,5 @@ +from itertools import count + import networkx as nx import matplotlib.pyplot as plt @@ -11,7 +13,7 @@ from migen.flow import perftools pack_factor = 5 def source_gen(): - for i in range(180): + for i in count(0): yield Token("source", {"value": i}) def sink_gen():