soc/integration/soc_sdram: always generate L2_SIZE constant
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Wed, 27 Apr 2016 10:34:18 +0000 (12:34 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Wed, 27 Apr 2016 10:34:18 +0000 (12:34 +0200)
litex/soc/integration/soc_sdram.py

index c0594f11d9b0615efbbb173e893c9429f8a4f63e..da1914143188d266c48e856b65b9d27400ae266d 100644 (file)
@@ -68,8 +68,7 @@ class SoCSDRAM(SoCCore):
                             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)
-        if self.l2_size:
-            self.add_constant("L2_SIZE", self.l2_size)
+        self.add_constant("L2_SIZE", self.l2_size)
 
         # add a Wishbone interface to the DRAM
         wb_sdram = wishbone.Interface()