Fix design_hierarchy handling of $paramod cells
authorJannis Harder <me@jix.one>
Thu, 31 Mar 2022 13:51:58 +0000 (15:51 +0200)
committerJannis Harder <me@jix.one>
Thu, 31 Mar 2022 13:51:58 +0000 (15:51 +0200)
sbysrc/sby_design.py

index dc183504596ac403a6c902bfba49eb4b61ad39d8..d18d6d9bbc5a315abe45da1d8b1b335e299232f8 100644 (file)
@@ -108,7 +108,7 @@ def design_hierarchy(filename):
         cells = design_json["modules"][module_name]["cells"]
         for cell_name, cell in cells.items():
             sub_hierarchy=f"{hierarchy}/{instance_name}" if hierarchy else instance_name
-            if cell["type"][0] != '$':
+            if cell["type"][0] != '$' or cell["type"].startswith("$paramod"):
                 mod.submodules[cell_name] = make_mod_hier(cell_name, cell["type"], hierarchy=sub_hierarchy)
             if cell["type"] in ["$assume", "$assert", "$cover", "$live"]:
                 try: