flow/plumbing: Combinator/Splitter should not inherit CombinatorialActor
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Sun, 17 Jun 2012 11:45:18 +0000 (13:45 +0200)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Sun, 17 Jun 2012 11:45:18 +0000 (13:45 +0200)
examples/dataflow/fibonacci.py
migen/flow/plumbing.py

index f5800067405517cf559ce2478bc6d0c72439c45a..709cfe4997f95be2742531269be696d5110e1d7e 100644 (file)
@@ -1,5 +1,3 @@
-import sys
-
 from migen.flow.ala import *
 from migen.flow.network import *
 from migen.flow import plumbing
index 9d5736f498a3b7945408d8a578b0f08686902012..8a6de4d459b3455adffaf529ec4bf98ef2dec11b 100644 (file)
@@ -14,7 +14,7 @@ class Buffer(PipelinedActor):
                sync = [If(self.pipe_ce, Cat(*sigs_q).eq(Cat(*sigs_d)))]
                return Fragment(sync=sync)
 
-class Combinator(CombinatorialActor):
+class Combinator(Actor):
        def __init__(self, layout, subrecords):
                source = Record(layout)
                subrecords = [source.subrecord(*subr) for subr in subrecords]
@@ -32,7 +32,7 @@ class Combinator(CombinatorialActor):
                comb += [sink.ack.eq(source.ack & source.stb) for sink in sinks]
                return Fragment(comb)
 
-class Splitter(CombinatorialActor):
+class Splitter(Actor):
        def __init__(self, layout, subrecords):
                sink = Record(layout)
                subr = []