soc_sdram: allow main_ram_size > 256MB (limitation no longer exists)
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 27 Jun 2019 21:32:23 +0000 (23:32 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Fri, 28 Jun 2019 20:10:25 +0000 (22:10 +0200)
litex/soc/integration/soc_sdram.py

index 144a93b67523140fbeb56d208e3769fd9c0291dc..3e95c0c791fef36f778707e3984d1c9f92fe02cf 100644 (file)
@@ -66,11 +66,9 @@ class SoCSDRAM(SoCCore):
         self.submodules.sdram = ControllerInjector(
             phy, geom_settings, timing_settings, **kwargs)
 
-        # TODO: modify mem_map to allow larger memories.
         main_ram_size = 2**(geom_settings.bankbits +
                             geom_settings.rowbits +
                             geom_settings.colbits)*phy.settings.databits//8
-        main_ram_size = min(main_ram_size, 256*1024*1024)
         self.add_constant("L2_SIZE", self.l2_size)
 
         # add a Wishbone interface to the DRAM