From d919f90cf6eb615b524fa0e74c5a9b15096603aa Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Thu, 31 May 2018 09:32:22 +0200 Subject: [PATCH] core: use bits_for(n) instead of max=n on Mux (fix case with only one group of signals) --- litescope/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litescope/core.py b/litescope/core.py index 522eaf5..a2d8c89 100644 --- a/litescope/core.py +++ b/litescope/core.py @@ -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") cases = {}