core/multiplexer: fix rank_decoder width

This commit is contained in:
Florent Kermarrec 2018-10-09 14:24:39 +02:00
parent 3b5a1ff906
commit 3481d45c9b
1 changed files with 1 additions and 1 deletions

View File

@ -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)