soc_core: use add_rom
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 10 Feb 2020 16:43:29 +0000 (17:43 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 10 Feb 2020 16:43:29 +0000 (17:43 +0100)
litex/soc/integration/soc_core.py

index 12560f081cb6115fdcff3b40515cea52613fdbc4..25a10d25237ef415d4c507791b07c1b45f5b00dd 100644 (file)
@@ -147,8 +147,7 @@ class SoCCore(LiteXSoC):
 
         # Add integrated ROM
         if integrated_rom_size:
-            self.submodules.rom = wishbone.SRAM(integrated_rom_size, read_only=True, init=integrated_rom_init)
-            self.register_rom(self.rom.bus, integrated_rom_size)
+            self.add_rom("rom", self.cpu.reset_address, integrated_rom_size, integrated_rom_init)
 
         # Add integrated SRAM
         if integrated_sram_size: