From: Florent Kermarrec Date: Sat, 28 Mar 2015 22:18:08 +0000 (+0100) Subject: soc: limit main_ram_size to 256MB (we should modify mem_map to allow larger memories... X-Git-Tag: 24jan2021_ls180~2421 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=be20fbabe4513f5f8cc768274bf5bbc286ac26ec;p=litex.git soc: limit main_ram_size to 256MB (we should modify mem_map to allow larger memories, this was the probably ARTIQ runtime issue....!!) --- diff --git a/misoclib/soc/sdram.py b/misoclib/soc/sdram.py index 4a8dd901..72f82f78 100644 --- a/misoclib/soc/sdram.py +++ b/misoclib/soc/sdram.py @@ -41,6 +41,8 @@ class SDRAMSoC(SoC): main_ram_size = 2**(phy.module.geom_settings.bankbits+ phy.module.geom_settings.rowbits+ phy.module.geom_settings.colbits)*sdram_width//8 + # XXX: Limit main_ram_size to 256MB, we should modify mem_map to allow larger memories. + main_ram_size = min(main_ram_size, 256*1024*1024) # LASMICON frontend if isinstance(self.sdram_controller_settings, LASMIconSettings):