corelogic/roundrobin: fix request width
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Thu, 29 Nov 2012 22:47:08 +0000 (23:47 +0100)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Thu, 29 Nov 2012 22:47:08 +0000 (23:47 +0100)
migen/corelogic/roundrobin.py

index 4b7546554b08be8397ffe5aa2558da21f1b8fdac..298c7d166aaba9aadda6df98b6337c36824a3b3f 100644 (file)
@@ -5,7 +5,7 @@ from migen.fhdl.structure import *
 class RoundRobin:
        def __init__(self, n, switch_policy=SP_WITHDRAW):
                self.n = n
-               self.request = Signal(max=self.n)
+               self.request = Signal(nbits=self.n)
                self.grant = Signal(max=self.n)
                self.switch_policy = switch_policy
                if self.switch_policy == SP_CE: