Permalink
Browse files

control.For -> misc.IntSequence

  • Loading branch information...
1 parent 8142c4f commit 1edaec0d758c5e6853ce4685f711779fa43d5745 @sbourdeauducq sbourdeauducq committed Jun 22, 2012
Showing with 3 additions and 3 deletions.
  1. +2 −2 examples/dataflow/{control.py → misc.py}
  2. +1 −1 migen/actorlib/{control.py → misc.py}
@@ -1,5 +1,5 @@
from migen.flow.network import *
-from migen.actorlib import control
+from migen.actorlib import misc
from migen.actorlib.sim import *
from migen.sim.generic import Simulator
from migen.sim.icarus import Runner
@@ -18,7 +18,7 @@ def sink_gen():
def main():
source = ActorNode(SimActor(source_gen(), ("source", Source, [("value", BV(32))])))
- loop = ActorNode(control.For(32))
+ loop = ActorNode(misc.IntSequence(32))
sink = ActorNode(SimActor(sink_gen(), ("sink", Sink, [("value", BV(32))])))
g = DataFlowGraph()
g.add_connection(source, loop)
@@ -4,7 +4,7 @@
from migen.flow.actor import *
# Generates integers from start to maximum-1
-class For(Actor):
+class IntSequence(Actor):
def __init__(self, nbits, step=1):
self.nbits = nbits
self.step = step

0 comments on commit 1edaec0

Please sign in to comment.