mirror of
https://github.com/enjoy-digital/litedram.git
synced 2025-01-04 09:52:25 -05:00
core/multiplexer: fix rank_decoder width
This commit is contained in:
parent
3b5a1ff906
commit
3481d45c9b
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue