soc.intergration.dram: Use nranks in capacity calc
This ensures that dual ranked memory appears with the correct capacity
This commit is contained in:
parent
d9c44c46ab
commit
4679b86314
|
@ -1301,7 +1301,7 @@ class LiteXSoC(SoC):
|
||||||
# Compute/Check SDRAM size.
|
# Compute/Check SDRAM size.
|
||||||
sdram_size = 2**(module.geom_settings.bankbits +
|
sdram_size = 2**(module.geom_settings.bankbits +
|
||||||
module.geom_settings.rowbits +
|
module.geom_settings.rowbits +
|
||||||
module.geom_settings.colbits)*phy.settings.databits//8
|
module.geom_settings.colbits)*phy.settings.nranks*phy.settings.databits//8
|
||||||
if size is not None:
|
if size is not None:
|
||||||
sdram_size = min(sdram_size, size)
|
sdram_size = min(sdram_size, size)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue