soc.intergration.dram: Use nranks in capacity calc

This ensures that dual ranked memory appears with the correct capacity
This commit is contained in:
Greg Davill 2021-12-05 15:34:24 +10:30
parent d9c44c46ab
commit 4679b86314
1 changed files with 1 additions and 1 deletions

View File

@ -1301,7 +1301,7 @@ class LiteXSoC(SoC):
# Compute/Check SDRAM size.
sdram_size = 2**(module.geom_settings.bankbits +
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:
sdram_size = min(sdram_size, size)