core: use bits_for(n) instead of max=n on Mux (fix case with only one group of signals)

This commit is contained in:
Florent Kermarrec 2018-05-31 09:32:22 +02:00
parent 6289e81b81
commit d919f90cf6
1 changed files with 1 additions and 1 deletions

View File

@ -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 = {}