corelogic/roundrobin: fix request width
This commit is contained in:
parent
70e97e0456
commit
31c722f993
|
@ -5,7 +5,7 @@ from migen.fhdl.structure import *
|
||||||
class RoundRobin:
|
class RoundRobin:
|
||||||
def __init__(self, n, switch_policy=SP_WITHDRAW):
|
def __init__(self, n, switch_policy=SP_WITHDRAW):
|
||||||
self.n = n
|
self.n = n
|
||||||
self.request = Signal(max=self.n)
|
self.request = Signal(nbits=self.n)
|
||||||
self.grant = Signal(max=self.n)
|
self.grant = Signal(max=self.n)
|
||||||
self.switch_policy = switch_policy
|
self.switch_policy = switch_policy
|
||||||
if self.switch_policy == SP_CE:
|
if self.switch_policy == SP_CE:
|
||||||
|
|
Loading…
Reference in New Issue