diff --git a/tools/oneclick/prestudy/YAML/mm_menu.py b/tools/oneclick/prestudy/YAML/mm_menu.py index a565da47b869dd081f0b88f7d2568674d6ad309f..1d4073d6fe3674cab427f78937f5756765649508 100755 --- a/tools/oneclick/prestudy/YAML/mm_menu.py +++ b/tools/oneclick/prestudy/YAML/mm_menu.py @@ -56,7 +56,8 @@ def main(): def show_menu(): """ show main menu """ menu = [] - menu.append("OneClick menu") + menu.append("------------------------") + menu.append("- OneClick MM menu -") menu.append("------------------------") menu.append("1 show config file overview") menu.append("2 generate system-rom") diff --git a/tools/oneclick/prestudy/YAML/py_mm_lib/system_rom.py b/tools/oneclick/prestudy/YAML/py_mm_lib/system_rom.py index 1dab7a45aaba43ad1583c07605aa51d781d4c8bd..126380a389f5c132ff360535484d9ea4fca54b7c 100644 --- a/tools/oneclick/prestudy/YAML/py_mm_lib/system_rom.py +++ b/tools/oneclick/prestudy/YAML/py_mm_lib/system_rom.py @@ -70,8 +70,8 @@ class SystemRom(object): for name in slave_order: peripheral = peripherals[name] for key, val in peripheral.rams.items(): - width = int(val['width']) - depth = int(val['depth']) + width = int(val.width) + depth = int(val.depth) n_words = int(ceil(float(width) / self.word_size)) n_addresses = n_words * depth self.mm_reg_list.append([key, reg_addr, n_words, depth]) @@ -85,7 +85,8 @@ class SystemRom(object): self.mm_reg_list.append([key, reg_addr, n_words, depth]) reg_addr += n_addresses ''' - print(self.mm_reg_list) + for i in self.mm_reg_list: + print(i) def generate_reg(self):