Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 6e1195415e29958a430f379584a1366d53f07bca 1 parent b8ff2f2
Robert Jordens jordens authored sbourdeauducq committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  migen/genlib/roundrobin.py
2  migen/genlib/roundrobin.py
View
@@ -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()
Please sign in to comment.
Something went wrong with that request. Please try again.