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):
|
||||
self.software_libraries.append(name)
|
||||
|
||||
def add_json(self, filename, name="", origin=0):
|
||||
self.jsons.append((filename, name, origin))
|
||||
def add_json(self, filename, origin=0, name=""):
|
||||
self.jsons.append((filename, origin, name))
|
||||
|
||||
def _get_json_mem_regions(self):
|
||||
mem_regions = {}
|
||||
|
|
|
@ -129,7 +129,7 @@ def get_linker_output_format(cpu):
|
|||
def get_linker_regions(regions):
|
||||
r = "MEMORY {\n"
|
||||
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"
|
||||
return r
|
||||
|
||||
|
|
Loading…
Reference in New Issue