Browse files

genlib/roundrobin: fix n==1 case (correctly)

  • Loading branch information...
1 parent b8ff2f2 commit 6e1195415e29958a430f379584a1366d53f07bca @jordens jordens committed with sbourdeauducq Jul 26, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 migen/genlib/roundrobin.py
View
2 migen/genlib/roundrobin.py
@@ -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()

0 comments on commit 6e11954

Please sign in to comment.