core: use bits_for(n) instead of max=n on Mux (fix case with only one group of signals)
This commit is contained in:
parent
6289e81b81
commit
d919f90cf6
|
@ -122,7 +122,7 @@ class _Mux(Module, AutoCSR):
|
||||||
|
|
||||||
# # #
|
# # #
|
||||||
|
|
||||||
value = Signal(max=n)
|
value = Signal(bits_for(n))
|
||||||
self.specials += MultiReg(self.value.storage, value, "scope")
|
self.specials += MultiReg(self.value.storage, value, "scope")
|
||||||
|
|
||||||
cases = {}
|
cases = {}
|
||||||
|
|
Loading…
Reference in New Issue