integration/soc: Generate RAM_INIT config defined when ram is initialized.

This commit is contained in:
Florent Kermarrec 2022-03-24 11:54:50 +01:00
parent ef6d450820
commit d3f3f658cb

View file

@ -855,6 +855,8 @@ class SoC(Module):
colorer("added", color="green"),
self.bus.regions[name]))
setattr(self.submodules, name, ram)
if contents != []:
self.add_config(f"{name}_INIT", 1)
def add_rom(self, name, origin, size, contents=[], mode="r"):
self.add_ram(name, origin, size, contents, mode=mode)