From 1edaec0d758c5e6853ce4685f711779fa43d5745 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Fri, 22 Jun 2012 15:01:47 +0200 Subject: [PATCH] control.For -> misc.IntSequence --- examples/dataflow/{control.py => misc.py} | 4 ++-- migen/actorlib/{control.py => misc.py} | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename examples/dataflow/{control.py => misc.py} (90%) rename migen/actorlib/{control.py => misc.py} (98%) 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 8819250e..0aa0854b 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 0d562cc0..60b18ac1 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 -- 2.30.2