Merge pull request #1890 from rtucker85/fix_csr_merge
Fixes for errors when attempting import of Sub-SoCs .json
This commit is contained in:
commit
677443cef7
|
@ -138,8 +138,8 @@ class Builder:
|
||||||
def add_software_library(self, name):
|
def add_software_library(self, name):
|
||||||
self.software_libraries.append(name)
|
self.software_libraries.append(name)
|
||||||
|
|
||||||
def add_json(self, filename, name="", origin=0):
|
def add_json(self, filename, origin=0, name=""):
|
||||||
self.jsons.append((filename, name, origin))
|
self.jsons.append((filename, origin, name))
|
||||||
|
|
||||||
def _get_json_mem_regions(self):
|
def _get_json_mem_regions(self):
|
||||||
mem_regions = {}
|
mem_regions = {}
|
||||||
|
|
|
@ -129,7 +129,7 @@ def get_linker_output_format(cpu):
|
||||||
def get_linker_regions(regions):
|
def get_linker_regions(regions):
|
||||||
r = "MEMORY {\n"
|
r = "MEMORY {\n"
|
||||||
for name, region in regions.items():
|
for name, region in regions.items():
|
||||||
r += f"\t{name} : ORIGIN = 0x{region.origin:08x}, LENGTH = 0x{region.length:08x}\n"
|
r += f"\t{name} : ORIGIN = 0x{region.origin:08x}, LENGTH = 0x{region.size:08x}\n"
|
||||||
r += "}\n"
|
r += "}\n"
|
||||||
return r
|
return r
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue