From be20fbabe4513f5f8cc768274bf5bbc286ac26ec Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Sat, 28 Mar 2015 23:18:08 +0100 Subject: [PATCH] soc: limit main_ram_size to 256MB (we should modify mem_map to allow larger memories, this was the probably ARTIQ runtime issue....!!) --- misoclib/soc/sdram.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/misoclib/soc/sdram.py b/misoclib/soc/sdram.py index 4a8dd901b..72f82f78e 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):