mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
integration/soc: Generate RAM_INIT config defined when ram is initialized.
This commit is contained in:
parent
ef6d450820
commit
d3f3f658cb
1 changed files with 2 additions and 0 deletions
|
@ -855,6 +855,8 @@ class SoC(Module):
|
||||||
colorer("added", color="green"),
|
colorer("added", color="green"),
|
||||||
self.bus.regions[name]))
|
self.bus.regions[name]))
|
||||||
setattr(self.submodules, name, ram)
|
setattr(self.submodules, name, ram)
|
||||||
|
if contents != []:
|
||||||
|
self.add_config(f"{name}_INIT", 1)
|
||||||
|
|
||||||
def add_rom(self, name, origin, size, contents=[], mode="r"):
|
def add_rom(self, name, origin, size, contents=[], mode="r"):
|
||||||
self.add_ram(name, origin, size, contents, mode=mode)
|
self.add_ram(name, origin, size, contents, mode=mode)
|
||||||
|
|
Loading…
Reference in a new issue