diff --git a/examples/dataflow/control.py b/examples/dataflow/misc.py similarity index 90% rename from examples/dataflow/control.py rename to examples/dataflow/misc.py index 8819250ef..0aa0854b1 100644 --- a/examples/dataflow/control.py +++ b/examples/dataflow/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) diff --git a/migen/actorlib/control.py b/migen/actorlib/misc.py similarity index 98% rename from migen/actorlib/control.py rename to migen/actorlib/misc.py index 0d562cc0b..60b18ac13 100644 --- a/migen/actorlib/control.py +++ b/migen/actorlib/misc.py @@ -4,7 +4,7 @@ from migen.corelogic.fsm import * 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