example: flow conversion
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Thu, 22 Dec 2011 23:36:07 +0000 (00:36 +0100)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Thu, 22 Dec 2011 23:36:07 +0000 (00:36 +0100)
examples/dataflow.py [new file with mode: 0644]

diff --git a/examples/dataflow.py b/examples/dataflow.py
new file mode 100644 (file)
index 0000000..31aed2e
--- /dev/null
@@ -0,0 +1,6 @@
+from migen.fhdl import verilog 
+from migen.flow.ala import *
+
+act = Divider(32)
+frag = act.get_control_fragment() + act.get_process_fragment()
+print(verilog.Convert(frag))