examples/dataflow/structuring: infinite source
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Wed, 20 Jun 2012 22:44:41 +0000 (00:44 +0200)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Wed, 20 Jun 2012 22:44:41 +0000 (00:44 +0200)
examples/dataflow/structuring.py

index 0525e2337f3a386f9fba7d8fb1d844671d1d0bc1..88c87a3947fae9d750df7e1dc060563ea0e8d26f 100644 (file)
@@ -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():