Add new SocRegion mode "x" (executable)
Defaults: SoCRegion/SoCIORegion/SoCCSRRegion: RW ROMs: RX RAMs: RWX
This commit is contained in:
parent
37360587e3
commit
76c0754d1e
|
@ -871,7 +871,7 @@ class SoC(Module):
|
|||
colorer("added", color="green")))
|
||||
setattr(self.submodules, name, SoCController(**kwargs))
|
||||
|
||||
def add_ram(self, name, origin, size, contents=[], mode="rw"):
|
||||
def add_ram(self, name, origin, size, contents=[], mode="rwx"):
|
||||
ram_cls = {
|
||||
"wishbone": wishbone.SRAM,
|
||||
"axi-lite": axi.AXILiteSRAM,
|
||||
|
@ -894,7 +894,7 @@ class SoC(Module):
|
|||
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="rx"):
|
||||
self.add_ram(name, origin, size, contents, mode=mode)
|
||||
|
||||
def init_rom(self, name, contents=[], auto_size=True):
|
||||
|
|
|
@ -78,7 +78,7 @@ class SoCCore(LiteXSoC):
|
|||
|
||||
# ROM parameters
|
||||
integrated_rom_size = 0,
|
||||
integrated_rom_mode = "r",
|
||||
integrated_rom_mode = "rx",
|
||||
integrated_rom_init = [],
|
||||
|
||||
# SRAM parameters
|
||||
|
|
Loading…
Reference in New Issue