Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kestrel Collaboration
Kestrel LiteX
migen
Commits
956d1257
Commit
956d1257
authored
12 years ago
by
Sebastien Bourdeauducq
Browse files
Options
Download
Email Patches
Plain Diff
examples/dataflow/structuring: infinite source
parent
4785ca52
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
examples/dataflow/structuring.py
examples/dataflow/structuring.py
+3
-1
No files found.
examples/dataflow/structuring.py
View file @
956d1257
from
itertools
import
count
import
networkx
as
nx
import
networkx
as
nx
import
matplotlib.pyplot
as
plt
import
matplotlib.pyplot
as
plt
...
@@ -11,7 +13,7 @@ from migen.flow import perftools
...
@@ -11,7 +13,7 @@ from migen.flow import perftools
pack_factor
=
5
pack_factor
=
5
def
source_gen
():
def
source_gen
():
for
i
in
range
(
18
0
):
for
i
in
count
(
0
):
yield
Token
(
"source"
,
{
"value"
:
i
})
yield
Token
(
"source"
,
{
"value"
:
i
})
def
sink_gen
():
def
sink_gen
():
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment