Skip to content

Commit

Permalink
genlib/roundrobin: fix n==1 case (correctly)
Browse files Browse the repository at this point in the history
  • Loading branch information
jordens authored and Sebastien Bourdeauducq committed Jul 26, 2013
1 parent b8ff2f2 commit 6e11954
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion migen/genlib/roundrobin.py
Expand Up @@ -5,7 +5,7 @@
class RoundRobin(Module):
def __init__(self, n, switch_policy=SP_WITHDRAW):
self.request = Signal(n)
self.grant = Signal(max=max(1, n))
self.grant = Signal(max=max(2, n))
self.switch_policy = switch_policy
if self.switch_policy == SP_CE:
self.ce = Signal()
Expand Down

0 comments on commit 6e11954

Please sign in to comment.