projects
/
litex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0649ded
)
soc: limit main_ram_size to 256MB (we should modify mem_map to allow larger memories...
author
Florent Kermarrec
<florent@enjoy-digital.fr>
Sat, 28 Mar 2015 22:18:08 +0000
(23:18 +0100)
committer
Florent Kermarrec
<florent@enjoy-digital.fr>
Sat, 28 Mar 2015 22:35:44 +0000
(23:35 +0100)
misoclib/soc/sdram.py
patch
|
blob
|
history
diff --git
a/misoclib/soc/sdram.py
b/misoclib/soc/sdram.py
index 4a8dd901be79767be415da53c74b114efb428991..72f82f78e5b8c2be956afdf24f1a0cbb44e7d97a 100644
(file)
--- 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):