flow.plumbing: make argument order consistent
authorRobert Jordens <jordens@gmail.com>
Sat, 19 Jul 2014 05:18:48 +0000 (23:18 -0600)
committerSebastien Bourdeauducq <sb@m-labs.hk>
Sat, 19 Jul 2014 20:29:50 +0000 (14:29 -0600)
migen/flow/plumbing.py

index 5c48af3d758e9323c653148939cf5a9f997e44aa..cb8abf417dd86f1c185132126fef0245e72957ea 100644 (file)
@@ -53,7 +53,7 @@ class Splitter(Module):
                        self.comb += s.stb.eq(self.sink.stb & ~already_acked[n])
 
 class Multiplexer(Module):
-       def __init__(self, n, layout):
+       def __init__(self, layout, n):
                self.source = Source(layout)
                sinks = []
                for i in range(n):