From 3481d45c9b46437d152753369272e73b7cb29d99 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Tue, 9 Oct 2018 14:24:39 +0200 Subject: [PATCH] core/multiplexer: fix rank_decoder width --- litedram/core/multiplexer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litedram/core/multiplexer.py b/litedram/core/multiplexer.py index 63b65e3..4d0af23 100644 --- a/litedram/core/multiplexer.py +++ b/litedram/core/multiplexer.py @@ -105,7 +105,7 @@ class _Steerer(Module): # FIXME: add dynamic drive for multi-rank (will be needed for high frequencies) self.comb += phase.odt.eq(Replicate(Signal(reset=1), nranks)) if rankbits: - rank_decoder = Decoder(rankbits) + rank_decoder = Decoder(nranks) self.submodules += rank_decoder self.comb += rank_decoder.i.eq((Array(cmd.ba[-rankbits:] for cmd in commands)[sel])) self.sync += phase.cs_n.eq(~rank_decoder.o)