mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
Merge pull request #1121 from gregdavill/dram-rank-fix
soc.intergration.dram: Use nranks in capacity calc
This commit is contained in:
commit
cdaf8af555
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue