Merge pull request #1121 from gregdavill/dram-rank-fix

soc.intergration.dram: Use nranks in capacity calc
This commit is contained in:
enjoy-digital 2021-12-06 10:33:09 +01:00 committed by GitHub
commit cdaf8af555
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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