soc_sdram: allow main_ram_size > 256MB (limitation no longer exists)
This commit is contained in:
parent
b8d45af5c3
commit
2da59b29e2
|
@ -66,11 +66,9 @@ class SoCSDRAM(SoCCore):
|
||||||
self.submodules.sdram = ControllerInjector(
|
self.submodules.sdram = ControllerInjector(
|
||||||
phy, geom_settings, timing_settings, **kwargs)
|
phy, geom_settings, timing_settings, **kwargs)
|
||||||
|
|
||||||
# TODO: modify mem_map to allow larger memories.
|
|
||||||
main_ram_size = 2**(geom_settings.bankbits +
|
main_ram_size = 2**(geom_settings.bankbits +
|
||||||
geom_settings.rowbits +
|
geom_settings.rowbits +
|
||||||
geom_settings.colbits)*phy.settings.databits//8
|
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)
|
self.add_constant("L2_SIZE", self.l2_size)
|
||||||
|
|
||||||
# add a Wishbone interface to the DRAM
|
# add a Wishbone interface to the DRAM
|
||||||
|
|
Loading…
Reference in New Issue