SoCSDRAM: set default max_sdram_size to 1GB (maximum we can map with current mem_map)
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Fri, 17 Jan 2020 11:45:23 +0000 (12:45 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Fri, 17 Jan 2020 11:45:23 +0000 (12:45 +0100)
litex/soc/integration/soc_sdram.py

index 8c66b39b33c717c83339f924c25fb140597896e8..47bd64bd889b69c269057b0277f1a01120a76ef7 100644 (file)
@@ -4,6 +4,7 @@
 # License: BSD
 
 from math import log2
+import inspect
 
 from migen import *
 from migen.genlib.record import *
@@ -138,8 +139,8 @@ def soc_sdram_args(parser):
                         help="Minimum L2 cache datawidth (default=128)")
 
     # SDRAM
-    parser.add_argument("--max-sdram-size", default=None,
-                        help="Maximum SDRAM size mapped to the SoC (default=None))")
+    parser.add_argument("--max-sdram-size", default=0x40000000,
+                        help="Maximum SDRAM size mapped to the SoC (default=1GB))")
 
 def soc_sdram_argdict(args):
     r = soc_core_argdict(args)