mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
soc_sdram: limit main_ram to 512MB for now
Otherwise breaks linux-on-litex-vexriscv for targets with 1GB of ram, could be removed when mem_map will be reworked on linux-on-litex-vexriscv.
This commit is contained in:
parent
ccbf141850
commit
68a503174c
1 changed files with 1 additions and 0 deletions
|
@ -69,6 +69,7 @@ class SoCSDRAM(SoCCore):
|
|||
main_ram_size = 2**(geom_settings.bankbits +
|
||||
geom_settings.rowbits +
|
||||
geom_settings.colbits)*phy.settings.databits//8
|
||||
main_ram_size = min(main_ram_size, 0x20000000) # FIXME: limit to 512MB for now
|
||||
self.config["L2_SIZE"] = self.l2_size
|
||||
|
||||
# add a Wishbone interface to the DRAM
|
||||
|
|
Loading…
Reference in a new issue