From 7388684232bad6bfbc2dca8b9e7f557c245d01aa Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Wed, 29 Jun 2022 11:19:21 +0200 Subject: [PATCH] integration/export/get_memory_x: Replace spi_flash with rom. Even when ROM is stored in SPI Flash, ROM regions has to be created. --- litex/soc/integration/export.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litex/soc/integration/export.py b/litex/soc/integration/export.py index b9def3137..3fae21e44 100644 --- a/litex/soc/integration/export.py +++ b/litex/soc/integration/export.py @@ -603,8 +603,8 @@ def get_csr_svd(soc, vendor="litex", name="soc", description=None): def get_memory_x(soc): r = get_linker_regions(soc.mem_regions) r += '\n' - r += 'REGION_ALIAS("REGION_TEXT", spiflash);\n' - r += 'REGION_ALIAS("REGION_RODATA", spiflash);\n' + r += 'REGION_ALIAS("REGION_TEXT", rom);\n' + r += 'REGION_ALIAS("REGION_RODATA", rom);\n' r += 'REGION_ALIAS("REGION_DATA", sram);\n' r += 'REGION_ALIAS("REGION_BSS", sram);\n' r += 'REGION_ALIAS("REGION_HEAP", sram);\n'