soc/integration/cpu_interface: fix banner in get_mem_header
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Wed, 24 Apr 2019 20:44:37 +0000 (22:44 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Wed, 24 Apr 2019 20:44:37 +0000 (22:44 +0200)
litex/soc/integration/cpu_interface.py

index 99b569776c0188511cc7a05ac50772404e91c296..d8020a8923b087bb577409c470b00f971a0eed80 100644 (file)
@@ -72,7 +72,7 @@ def get_linker_regions(regions):
 
 def get_mem_header(regions, flash_boot_address):
     r = generated_banner("//")
-    r = "#ifndef __GENERATED_MEM_H\n#define __GENERATED_MEM_H\n\n"
+    r += "#ifndef __GENERATED_MEM_H\n#define __GENERATED_MEM_H\n\n"
     for name, base, size in regions:
         r += "#define {name}_BASE 0x{base:08x}\n#define {name}_SIZE 0x{size:08x}\n\n".format(name=name.upper(), base=base, size=size)
     if flash_boot_address is not None: